
Simple example
2.4 Create program
STEP 7 Basic V10.5
Getting Started, 12/2009, A5E02651459-01
47
10. Enter the name "OFF" in the operand placeholder of the "Negated coil" instruction and
define the corresponding tag.
11. Click the "Save project" button on the toolbar to save the project.
Result
You have programmed a pushbutton switch for switching the example machine on and off.
The actuation of the pushbutton switch has the following effects:
● When the pushbutton switch is pressed once, the "ON_OFF_Switch" tag is set to the
signal state "1".
– The power is relayed and the "ON" tag is set to the signal state "1" by the "Output coil"
instruction.
– The machine is switched on.
– The "OFF" tag supplies the signal state "0" and has no further effect.
● When the pushbutton switch is pressed a second time, the "ON_OFF_Switch" tag is set to
the signal state "0".
– The current flow is interrupted and the "OFF" tag is set to the signal state "1" by the
"Negated coil" instruction.
– The machine is switched off.
– The "ON" tag supplies the signal state "0" and has no further effect.
Comentários a estes Manuais