6 Application Instructions API 00-49 API 05 Explanations: 1. No operand. No contact to drive the instruction is required. 2. EI instruction allows interrupting subroutine in the program, e.g. external interruption, timed interruption, and high-speed counter interruption. 3. In the program, using interruption subroutine between EI and DI instruction is allowed. However, you can choose not to use DI instruction if there is no interruption-disabling section in the program. 4.
When M1050 ~ M1059 are the special auxiliary relays to drive disabling interruption in ES/SA, or M1280 ~ M1299 are the special auxiliary relays to drive disabling interruption in EH/EH2/SV, the corresponding interruptions will not be executed even in the area allowed for interruptions. 5. Pointer for interruption (I) must be placed after FEND instruction. 6. Other interruptions are not allowed during the execution of interruption subroutine. 7. When many interruptions occur, the priority is given to the firstly executed interruption. If several interruptions occur simultaneously, the priority is given to the interruption with the smaller pointer No. 8.
The interruption request occurring between DI and EI instructions that cannot be executed immediately will be memorized and will be executed in the area allowed for interruption. 9. The time interruptions in ES/SA will not be memorized. 10. When using the interruption pointer, DO NOT repeatedly use the high-speed counter driven by the same X input contact. 11. When immediate I/O is required during the interruption, write REF instruction in the program to update the status of I/O. Program Example: During the operation of PLC, when the program scans to the area between EI and DI instructions and X1 = Off→On or X2 = Off→On, interruption subroutine A or B will be executed.
When the subroutine executes to IRET, the program will return to the main program and resumes its execution. DVP-PLC Application Manual 6-10 Mnemonic Function DI Disable Interrupts OP Descriptions Program Steps N/A When the special auxiliary relay M1050 ~ M1059, M1280 ~ M1299 for disabling interruption is driven, the corresponding interruption request will not be executed even in the range allowed for interruptions. DI: 1 step PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS ES EX SS SA SX SC EH SV SV2