Di: interrupt disabled ei: interrupt enabled, Visual kv series – KEYENCE Visual KV Series User Manual
Page 217

3.1 Interrupt Instructions
3-193
Visual KV
Series
1
3
Chapter 3 Interrupts
DI: Interrupt Disabled
EI: Interrupt Enabled
Disables execution of interrupt.
Enables execution of interrupt.
Example
Coding
Description
•
When 1000 is ON, execution of interrupt is enabled.
•
When 1000 is OFF, execution of interrupt is disabled.
•
Interrupts are enabled between EI instruction and DI instruction.
•
Once an EI instruction is executed, an interrupt is enabled until a DI instruction is
executed.
•
Any interrupt is disabled when the Visual KV Series starts operation.
•
The DI instruction disables execution of an interrupt. Use this instruction to
temporarily disable an interrupt.
•
The EI instruction enables execution of an interrupt. Use this instruction to
release an interrupt that was disabled by a DI instruction.
•
To execute another interrupt during execution of the previous interrupt, include EI
instruction in this first interrupt. EI-DI instruction set can be nested to four levels.
Note 1: When any interrupt occurs between DI and EI instructions (interrupt disabled
period), the disabled interrupt is stored (to 8 levels max.). The stored interrupt is
executed as soon as an EI instruction is executed.
Note 2: If an INT CTC instruction is stored before a RES CTC instruction is ex-
ecuted, the stored INT CTC is deleted.
Operands
Key operation
FUN
FUN
RES
0
ORL
3
DI
EI
SET
1
AND
8
1000
EI
DI
1000
FUN
FUN
SET
1
RES
0
AND
8
ORL
3
ENT
R-SRCH
ENT
R-SRCH
Line No.
Instruction
Operand
0000
LD
0000
0001
EI
•
•
•
•
•
•
0021
LDB
1000
0022
DI
•
•
•
•
•
•
KVNKA Chap 03.p65
08.3.11, 0:05 PM
193