164
FEND
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program Example
(1) The following program uses the CJ instruction.
[Ladder Mode]
[List Mode]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4200
The FEND instruction was executed after the execution of the FOR
instruction, and before the execution of the NEXT instruction.
4211
The FEND instruction was executed after the execution of the CALL,
FCALL, ECALL, or EFCALL instruction, and before the execution of the
RET instruction.
4221
The FEND instruction was executed before the execution of the IRET
instruction in an interrupt program.
4230
The FEND instruction was executed between the CHKCIR and
CHKEND instructions.
4231
The FEND instruction was executed between the IX and IXEND
instructions.
W
hen XB is ON
,
the program jumps to
label P23 and the steps that follow P23
are executed.
Executed when XB is OFF.
Indicates the termination of the sequence
program to be executed when XB is OFF.
Step
Instruction
Device