This article is still the practice of FC programming with parameters, this implementation function:
A total of 4 motors, each motor requires Y-buck start. Start, press the Start button, M1 Motor start, and then every 10s start one, and finally M1 to M4 four motor all start. When the stop button is pressed, M4 first stop, after 10s after the M3 stop, after 10s M2 stop, and then 10SM1 motor stop. At the same time any motor start, the control power of the contactor and the Y-mode contactor connected to the power supply 6s, the Y-type contactor disconnect, 1s after the contactor action connected.
The implementation code of this requirement program is as follows:
1. Symbol table
2. The function block writing code is as follows
3. The main program is written as follows
This program code can be downloaded here.
Siemens PLC Learning note 18-(with parameter FC Programming II)