Mitsubishi MELSEC-Q/L Programming Manual page 166

Table of Contents

Advertisement

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.
Error
code
The FEND instruction was executed after the execution of the FOR
4200
instruction, and before the execution of the NEXT instruction.
The FEND instruction was executed after the execution of the CALL,
4211
FCALL, ECALL, or EFCALL instruction, and before the execution of the
RET instruction.
The FEND instruction was executed before the execution of the IRET
4221
instruction in an interrupt program.
The FEND instruction was executed between the CHKCIR and
4230
CHKEND instructions.
The FEND instruction was executed between the IX and IXEND
4231
instructions.
Program Example
(1) The following program uses the CJ instruction.
[Ladder Mode]
[List Mode]
Instruction
Step
164
Error details
When 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.
Device
Q00J/
Q00/
QnH
QnPH QnPRH
Q01
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents