Application of Delta Automation Technology in the Transformation of Track Engineering Welding Machine (4)

5 software design

PLC system configuration and ladder diagram programming, man-machine interface with screen editing Screen Editor programming (Sersion 1.05.7), the two parts work together.

5.1 PLC programming

The PLC program adopts the modular method, and divides the control program into different logic blocks according to functions, that is, subprograms. In the main program (OB1), different logic blocks can be called according to the conditions. The main program is simple and clear, and the debugging is convenient. Blocks are conditional calls, so CPU utilization is high and communication with the human-machine interface is reliable.

5.2 touch screen programming

(1) Set module parameters: The system control area is 8 words long. Communication settings: 1 human machine station number 0; 2PLC preset station number 2; 3 communication port RS-485; 4 stop bit 1Bits; 5 baud rate 9600; 6 parity Even.

(2) Synchronize the internal clock of the PLC with the clock of the human-machine by using the screen macro, create a so-called system screen, and place the <system time and date> button. The macro of the screen and the macro of the screen close macro are as follows:

SETB (2@V490.0) / / system screen open macro V490.0=1
END
CLRB (2@V490.0) / / system screen close macro 490.0 = 0
END
On the system screen, you can adjust the clock inside the human machine at any time (we do not use it for the week), and cooperate with the PLC clock to write the command to complete the clock synchronization.
$100=GETSYSTEMTIME
(2@V236) =$100 //year (2@V238) =$101 //month (2@V240) =$102 //day (2@V242) =$104 //hour (2@V244) =$105 //minute (2@V246) =$106 //seconds END

(3) Historical trend curve: system pressure and scale displacement share buffer No.1, read PLC address 2@1000; value unit 4 (word); sampling period 1000 ms; sampling point 111; trigger source PLC; record time date Yes ;

Oxygen flow and acetylene flow share the No. 2 buffer, read PLC address 2@1008; value unit 4 (word); sampling period 1000 ms; sampling point 111; trigger source PLC; record time date Yes.

6 Conclusion

The automatic control of the rail pressure welding equipment is applied to the destructive drop weight test of fifteen rail joints in one time, and the pass rate is 100%. After more than one thousand welding operations on the actual line, the pass rate is 100%, and the user's response is good. Intelligent mobile rail pressure welding equipment based on Delta's automation technology platform has been certified by road bureau technology.

Previous page

Ring Alnico Magnets

Alnico Magnet,Sintered Alnico Magnet,Ring Alnico Magnets

Haoqi Magnetic Materials Co., Ltd. , http://www.sh-magnet.com