Skip to main content

Disable Interrupt Program

Instruction Parameters

Supported PLC Series

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S

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.

Examples