6 - 109 6 - 109
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.6.2 Recovery from interrupt programs (IRET)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
[Instruction Symbol] [Execution Condition]
IRET
I
IRET
[Functions]
(1) Indicates the completion of interrupt program processing.
(2) Returns to sequence program processing following the execution of the IRET instruction.
[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.
• There is no pointer corresponding to the interrupt number. (Error code: 4220)
• The IRET instruction has been issued prior to the execution of the interrupt program.
(Error code: 4223)
• An END, FEND, GOEND, or STOP instruction as been executed after the generation of an
interrupt and prior to the execution of the IRET instruction. (Error code: 4221)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com