165
END
1
2
3
4
5
6
7
8
5.6 Termination Instructions
5.6.2 END
Function
(1) 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.
(2) 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.
(3) When programming in the ladder mode of a peripheral device, it is not necessary to input the END instruction.
(4) The use of the END and FEND instructions is broken down as follows for main routine programs, subroutine programs,
and interrupt programs:
5.6.2 END Sequen ce progra m end
5.6.2
END
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn Constants Other
Bit Word Bit Word
–– ––
Basic
Process
High
performance
Redundant
Universal
LCPU
END
END
Sequence program
END
0
Main routine program
Interrupt program
FEND
END
Main sequence
program area
Subroutine program
(FEND instruction is necessary.)
(END instruction is necessary.)