332
7 APPLICATION INSTRUCTION
7.3 Program execution control instruction
Disabling the interrupt program with specified priority or lower
DI
This instruction disables the execution of the interrupt program with a priority specified by (s) or lower until the EI instruction is
executed, even if the interrupt cause occurs.
■Descriptions, ranges, and data types
■Applicable devices
• This instruction disables the execution of the interrupt program of the interrupt pointer number with an interrupt priority
specified by (s) or lower.
Ladder diagram Structured text
ENO:=DI(EN,s);
Operand Description Range Data type Data type (label)
(s) Priority for disabling interrupts 1 to 3 16-bit unsigned binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s)
(1) Interrupt-disabled section for the priority 3 or lower
(Interrupt-enabled section for the priority 2 or higher)
(2) Can be executed because of the priority 2.
(3) Cannot be executed because of the priority 3.
2
3
I No.
I01
I02
I01
I02
DI K3
FEND
IRET
IRET
(3)
(2)
(1)
Interrupt priority setting
Priority
Sequence program
Interrupt Program
Interrupt Program