Example - Ladder Diagram
DI
The DI instruction disables an interrupt program with the ID, n.
Ladder Diagram Example
This is the periodic interrupt program for the ID 1.
When the contact, M1.0, is powered ON (1), the data register, D1, increases with the INCP instruction since the periodic interrupt program is being executed in the main scan program.
This is the program for the ID 0, or main program.
When the contact, M0.1 is powered OFF (0), the DI instruction is not executing the periodic interrupt program with the ID 1 to disable it.
When the contact, M0.1 is powered ON (1), the DI instruction executes the periodic interrupt program with the ID 1 to disable it.
Since the DI instruction is executing the periodic interrupt program with the ID 1, the data register, D1, is NOT increasing.