Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
6-139
IRET
1
2
3
4
4
6
7
8
6
.6 Progr
am Execution Contr
ol I
nstr
uctions
6
.6.2 Recovery from interr
upt pr
ograms (IR
E
T
)
6.6.2  
Recovery from interrupt programs (IRET)
IRET
Function
(1) Indicates the completion of interrupt program processing.
(2) Returns to sequence program processing following the execution of the IRET instruction.
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.
 • There is no pointer corresponding to the interrupt number.
(Error code: 4220)
 • The IRET instruction was executed before the interrupt program is executed.
(Error code: 4223)
 • The END, FEND, GOEND, or STOP instruction has been executed after the generation of 
an interrupt and prior to the execution of the IRET instruction.
(Error code: 4221)
 • The IRET instruction was executed during the fixed scan execution type program. 
(For the Universal model QCPU only)
(Error code: 4223)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Basic
Process
High
performance
Redundant Universal
IRET
I
IRET
**