3. Instruction Set
3-51
execute DI instruction. After this, X0 will be reset as falling-edge when EI is executed again.
Program example:
During the PLC operation, the program scans the instructions between EI and DI, if X1 or X2 are
ON, the subroutine A or B will be interruptted. When IRET is reached, the main program will
resume.
I 101
I 201
Disabled interrupt
Enabled interrupt
Enabled interrupt
Interrupt subroutine A
Interrupt subroutine B
X1 Y0
EI
DI
EI
FEND
M0 Y1
IRET
M1 Y2
IRET