DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming 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. EI X1 Y0 Enabled interrupt DI Disabled interrupt EI Enabled interrupt M0 Y1 FEND I 101 Interrupt subroutine A M1 Y2 IRET I 201 Interrupt subroutine B IRET 3-50