5 SEQUENCE INSTRUCTIONS
5.6 Termination Instructions
179
5
Sequence program end
END
• Indicates termination of programs, including main routine program, subroutine program, and interrupt programs.
• Execution of the END instruction will cause the CPU module to terminate the program that was being executed.
• The END instruction cannot be used during the execution of the main sequence program. If it is necessary to perform END
processing during the execution of a program, use the FEND instruction.
• When programming in the ladder mode of a programming tool, it is not necessary to input the END instruction.
• The use of the END and FEND instructions is broken down as follows for main routine programs, subroutine programs, and
interrupt programs:
Setting
data
Internal device R, ZR J\ U\G Zn Constant Others
Bit Word Bit Word
Basic
Process
High
performance
Redundant
Universal
LCPU
Main routine program
Interrupt program
FEND
END
Main sequence
program area
Subroutine program
(FEND instruction is necessary.)
(END instruction is necessary.)