6 - 100 6 - 100
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.6 Program Execution Control Instructions
6.6.1 Interrupt disable/enable instructions, interrupt program mask
(DI, EI, IMASK)
(1) When Basic model QCPU is used
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S
[Instruction Symbol] [Execution Condition]
IMASK
DI
EI
Sequence program
S
IMASK
DI
EI
[Set Data]
Set Data Meaning Data Type
S
Interrupt mask data or head number of device where interrupt mask data
is being stored
BIN 16 bits
[Functions]
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 system has been reset.
EI
(1) 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.
(2) Be sure to execute the EI instruction before executing a periodic program.
Even though an interrupt condition might
be generated between the DI and EI
instructions, the interrupt program will be
held until the entire cycle from DI to EI
has been processed.
Sequence program
DI
Sequence program
EI
In
FEND
Interrupt program
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com