163
FEND
1
2
3
4
5
6
7
8
5.6
T
er
minat
ion Instr
uctions
5.6.1
F
END
5.6
Termination Instructions
Function
(1) The FEND instruction is used in cases where the CJ instruction or other instructions are used to cause a branch in the
sequence program operations, and in cases where the main routine program is to be split from a subroutine program or
an interrupt program.
(2) Execution of the FEND instruction will cause the CPU module to terminate the program it was executing.
(3) Even sequence programs following the FEND instruction can be displayed in ladder display at a peripheral device.
(Peripheral devices continue to display ladders until encountering the END instruction.)
FEND
Main routine program end
5.6.1
FEND
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Basic
Process
High
performance
Redundant Universal
LCPU
FEND
FEND
C
J
FEN
D
FEN
D
EN
D
0
P
(
a
) W
hen
the
C
J i
nstruct
i
on
i
s
used
CA
LL
FEN
D
I
nterrupt
program
EN
D
P
P
I
P
Operat
i
on
performed
when
the
C
J
i
nstruct
i
on
i
s
not
executed
Ma
i
n
rout
i
ne
program
Ma
i
n
rout
i
ne
program
Ma
i
n
rout
i
ne
program
Ma
i
n
rout
i
ne
program
Subrout
i
ne
program
J
ump
caused
b
y
the
C
J i
nstruct
i
on
Operat
i
on
performed
when
the
C
J
i
nstruct
i
on
i
s
executed
(
b
) W
hen
there
are
subrout
i
ne
and
i
nterrupt
programs