Program Execution Control Instructions; Program Execution Control Instructions; Interrupt Disable, Interrupt Enable, Interrupt Program Mask - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

6.6

Program Execution Control Instructions

Interrupt disable, interrupt enable, interrupt program mask

DI, EI, IMASK
High
Basic
Process
Redundant Universal
performance
■When the Basic model QCPU is used
DI
IMASK
EI
(S): Interrupt mask data or head number of the devices where the interrupt mask data is stored (BIN 16 bits)
Setting
Internal device
data
Bit
Word
(S)
Processing details
■DI
• Disables the execution of an interrupt program until the EI instruction has been executed, even if a start cause for the
interrupt program occurs.
• A DI state is entered when power is turned ON or when the CPU module is reset.
■EI
• The EI instruction is used to clear the interrupt disable state resulting from the execution of the DI instruction, and to create
a state in which the interrupt program designated by the interrupt pointer number certified by the IMASK instruction can be
executed.
• When the IMASK instruction is not executed, I32 to I47 are disabled.
Sequence program
Sequence program
In
Interrupt programs
LCPU
R, ZR
J\
Bit
DI
Even if a cause of interrupt occurs during
the execution of the sequence program
between the DI and EI instructions, execution
EI
of the interrupt program is suspended until
the processing of the sequence program
FEND
is completed.
Sequence program
IMASK
U\G
Zn
Word

6.6 Program Execution Control Instructions

DI
S
EI
Constant
Others
6 BASIC INSTRUCTIONS
325
6

Advertisement

Table of Contents
loading

Table of Contents