334
7 APPLICATION INSTRUCTION
7.3 Program execution control instruction
• When the DI instruction is executed in an interrupt program
(1) Interrupt-enabled section for all priority
(2) Interrupt-disabled section for the priority 3 or lower (interrupt-enabled section for the priority 2 or higher)
(3) Interrupt-disabled section for the priority 2 or lower (interrupt-enabled section for the priority 1 or higher)
• When the DI instruction without an argument is executed
(1) Interrupt-enabled section for all priority
(2) Interrupt-disabled section for the priority 1 or lower (where all the interrupts are disabled)
(3) Because interrupts are disabled with the DI instruction without an argument, interrupts with all the priorities are enabled by executing the EI instruction
once.
• When the DI instructions with and without an argument are executed (Execution order is DI instruction with an argument  DI instruction without an
argument)
(1) Interrupt-enabled section for all priority
(2) Interrupt-disabled section for the priority 2 or lower (interrupt-enabled section for the priority 1 or higher)
(3) Interrupt-disabled section for the priority 1 or lower (where all the interrupts are disabled)
• When the DI instructions with and without an argument are executed (Execution order is DI instruction without an argument  DI instruction with an
argument)
(1) Interrupt-enabled section for all priority
(2) Interrupt-disabled section for the priority 1 or lower (where all the interrupts are disabled)
Error code
(SD0/SD8067)
Description
3405 The value specified by (s) is other than the following.
1 to 3
3362 Nesting of the DI instruction exceeds 16 levels.
EIEI
DI K2
DI K3
EI IRET
(3)(1) (2) (1)(2)
Time
Scan execution type
program
Interrupt Program
EI DIDI DI EI
(1) (2) (1)
(3)
Time
Scan execution type
program
EIEIDIEI DI K2 EI
(1) (3)
(1)(2)(2)
DI
Time
Scan execution type
program
DI
EI
EI
DI K2
(1)
(2)
(1)
DI EI
Time
Scan execution type
program