
7 APPLICATION INSTRUCTION
7.3 Program execution control instruction
333
7
• By executing the EI instruction, the interrupt with the priority disabled by the counterpart DI instruction is enabled. However,
when interrupts are disabled only with the DI instruction without an argument, interrupts with all the priorities are enabled by
executing the EI instruction once.
• Interrupts (requests) that are generated after the DI instruction are processed after the EI instruction is executed.
• When multiple DI instructions are executed and the argument has a priority higher than the currently disabled priority,
interrupts with a priority lower than that of the argument are disabled.
• When multiple DI instructions are executed and the argument has a priority lower than the currently disabled priority, the
interrupt disabled state is not changed.
• The DI instruction can be nested in up to 16 levels.
• The interrupt priority of the interrupt pointer can be set with parameters. (
MELSEC iQ-F FX5 Series User's Manual
[Application])
• The interrupt-disabled priority can be checked with SD758 (interrupt-disabling priority setting value).
• The following shows the interrupt-disabled section when the DI or EI instruction is executed.
(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)
(4) Interrupt-disabled section for the priority 3 or lower
(Interrupt-enabled section for the priority 2 or higher)
(5) Interrupt-enabled section for all priority
• When multiple DI instructions are executed (when interrupts with a priority higher than the currently disabled priority are specified and disabled)
(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 multiple DI instructions are executed (when interrupts with a priority lower than the currently disabled priority are specified and disabled)
(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) Because interrupts with the priority 2 or lower are already disabled, the interrupt-disabling priority is not changed.
EI
DI K2
DI K3
EI
EI
(3)
(1)
(2)
(5)
(4)
Sequence program
Sequence program
Sequence program
Sequence program
Sequence program
EI, which is the
counterpart of [DI K2]
EI, which is the
counterpart of [DI K3]
EI
DI K2
DI K3
EI
EI
(3)
(1)
(2)
(1)
(2)
Time
Scan execution type
program
EI
DI K3
DI K2
EI
EI
(1)
(2)
(1)
(3)
Time
Scan execution type
program
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......