5-56
STOP
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.
• The STOP instruction was executed before the execution of the RET instruction and after
the execution of the CALL/FCALL/ECALL/EFCALL/XCALL instruction.
(Error code: 4211)
• The STOP instruction was executed before the execution of the NEXT instruction and
after the execution of the FOR instruction. (Error code: 4200)
• The STOP instruction was executed during an interrupt program prior to the execution of
the IRET instruction. (Error code: 4221)
• The STOP instruction was executed within the CHKCIR to CHKEND instruction loop.
(Error code: 4230)
• The STOP instruction was executed within the IX to IXEND instruction loop.
(Error code: 4231)
• The STOP instruction was executed during the fixed scan execution type program.
(For the Universal model QCPU only) (Error code: 4223)
Program Example
(1) The following program stops the CPU module when X8 goes ON.
[Ladder Mode]
[List Mode]
Stops the programmable controller when X8 goes ON.
Sequence program
Step
Instruction
Device