165
END
1
2
3
4
5
6
7
8
5.6
T
er
minat
ion Instr
uctions
5.6.2
E
ND
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:
END
Sequence program 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
Ma
i
n
rout
i
ne
program
I
nterrupt
program
FEN
D
EN
D
Ma
i
n
sequence
program
area
Subrout
i
ne
program
(FEN
D
i
nstruct
i
on
i
s
necessar
y.)
(EN
D
i
nstruct
i
on
i
s
necessar
y.)