The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

Supported Data Registers

MXYKLFTCSZRQD@DConstant
n

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1
CarryF11.2

Number of Steps

Steps
2

Operands

OperandDescription
nThe only operand.
Entries are only constants.
This is the Interrupt Program ID number.

The value range is 0 ~ 14.

Notice

Instruction Behavior

The DI instruction behaves as follows:

  • The Interrupt Program with the ID, n, will be disabled until the EI instruction is executed again.
  • Once the EI instruction is executed after the execution of the DI instruction, the status changes from disabled to enabled.
  • After the execution of the DI instruction, the disabled interrupt program, n, is ignored, including in the event of an interrupt.
  • When the CPU has switched from STOP to RUN mode, all interrupt programs are disabled by the DI instruction.
    • To use general interrupt programs, execute the GEI instruction.

Ladder Diagram Examples

DI

The DI instruction disables an interrupt program with the ID, n.

The DI instruction disables an interrupt program with the ID, n.

This is the periodic interrupt program for the ID 1.

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.

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.

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.

Since the DI instruction is executing the periodic interrupt program with the ID 1, the data register, D1, is NOT increasing.