![Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual Download Page 390](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114390.webp)
388
8 APPLICATION INSTRUCTION
8.3 Program Execution Control Instruction
• 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 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.
A: Sequence 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)
(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
(6): EI, which is the counterpart of [DI K2]
(7): EI, which is the counterpart of [DI K3]
• When multiple DI instructions are executed (when interrupts with a priority higher than the currently disabled priority are specified and disabled)
A: Scan execution type 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 multiple DI instructions are executed (when interrupts with a priority lower than the currently disabled priority are specified and disabled)
A: Scan execution type program
(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)
A
A
A
A
A
(6)
(7)
EI
DI K2
DI K3
EI
EI
(3)
(1)
(2)
(1)
(2)
t
A
EI
DI K3
DI K2
EI
EI
(1)
(2)
(1)
(3)
t
A
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......