/
End Main Routine Program
End Main Routine Program
End Main Routine Program: END
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
END | S | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | - | - | - |
Functions
Used to end main routine program.
When the END instruction is enabled, PLC goes back to 0 Step after operating the execution of the PEND instruction (Timer, Counter, Check, and etc.) and execute the operation again.
Example – A program using the JMP instruction
When M01 is ON, it will jump to Step 8 and execute the operation after the JME 1 step.
Notice how Y30 and Y31 are OFF due to the JMP instruction even though M10 and M11 are ON.
Y30 and Y31 will be ON when M01 gets OFF and deactivates the JMP instruction.
Notice how Y30 and Y31 are ON and have the value of 1 in the memory monitor.
, multiple selections available,
Related content
Jump Between Rungs
Jump Between Rungs
More like this
End Main Routine Program Conditionally
End Main Routine Program Conditionally
More like this
Sequence Program 정지 : STOP
Sequence Program 정지 : STOP
More like this
분기 명령 - PLC-S/PLC-S PRO
분기 명령 - PLC-S/PLC-S PRO
More like this
Stop Sequence Program STOP
Stop Sequence Program STOP
More like this
조건에 대한 Main Routine Program 종료 : CEND, CENDP
조건에 대한 Main Routine Program 종료 : CEND, CENDP
More like this