5 - 50 5 - 50
MELSEC-Q/QnA
5 SEQUENCE INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
5.7 Other Instructions
5.7.1 Sequence program stop (STOP)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Other
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
U
[Instruction Symbol] [Execution Condition]
Stop input
STOP
STOP
[Functions]
(1) When stop input is turned ON, output Y is reset and the CPU module operations are
terminated.
(The same result will take place if the RUN/STOP (key) switch is turned to the STOP setting.)
(2) Execution of the STOP instruction will cause the value of b4 to b7 of the special register
SD203 to become "3".
SD203
0011
b15 b12to b11 b8to b7 b4to b3 b0to
becomes 3
(3) In order to restart CPU module operations after the execution of the STOP instruction, return
the RUN/STOP key switch, which has been changed from RUN to STOP, back to the RUN
position.
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• A STOP instruction was executed before the execution of the RET instruction and after the
execution of the CALL, ECALL instruction. (Error code: 4211)
• A STOP instruction was executed before the execution of a NEXT instruction and after the
execution of the FOR instruction. (Error code: 4200)
• A STOP instruction was executed during an interrupt program prior to the execution of the
IRET instruction. (Error code: 4221)
• A STOP instruction was executed within the CHKCIR to CHKEND instruction loop.
(Error code: 4230)
• A STOP instruction was executed within the IX to IXEND instruction loop.
(Error code: 4231)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com