278
DI, EI, IMASK
6.6
Program Execution Control Instructions
When the Basic model QCPU is used
: Interrupt mask data or head number of the devices where the interrupt mask data is stored (BIN 16 bits)
Function
DI
(1) Disables the execution of an interrupt program until the EI instruction has been executed, even if a start cause for the
interrupt program occurs.
(2) 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.
DI
Interrupt disable
EI
Interrupt enable
IMASK
Interrupt program mask
6.6.1
DI, EI, IMASK
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Basic
Process
High
performance
Redundant Universal
LCPU
IMASK
DI
EI
Sequence program
S
IMASK
DI
EI
S
S
Sequence
program
D
I
Sequence
program
EI
I
n
FEN
D
I
nterrupt
programs
E
ven
i
f
a
cause
of
i
nterrupt
occurs
dur
i
ng
the
execut
i
on
of
the
sequence
program
between
the
D
I
and
EI i
nstruct
i
ons
,
execut
i
on
of
the
i
nterrupt
program
i
s
suspended
unt
il
the
process
i
ng
of
the
sequence
program
i
s
comp
l
eted
.