31.6.6.1 Explanation of the EXIT Instruction

An EXIT instruction can be used only in the MAIN program. After this instruction is executed, the program jumps to END.

After the instruction has been executed, processing of instructions between EXIT and END is not performed. This instruction jumps to the END label in the same way as a jump instruction.

Program Example

When the switch is turned ON, the EXIT instruction at the end of the rung will run. Therefore, processing of instructions between EXIT and END is not performed.