
6.1 Interrupt Instructions
KV-300
KV-10/80
3-271
1
6
Chapter 6 Interrupts, High-speed Counters, Positioning Control
6.1.2 Interrupt Instructions
DI: Interrupt Disabled Disables execution of interrupt.
EI: Interrupt Enabled Enables execution of interrupt.
Key operations
Operand
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 instruc-
tion.
Therefore, once EI is executed, interrupt is enabled until it is disabled by DI.
With the KV, any interrupt is disabled when the operation is started.
DI instruction disables execution of interrupt. Use this instruction to temporarily
disable interrupt.
EI instruction enables the execution of interrupt. Use this instruction to release
interrupt disabled by DI instruction.
During execution of an interrupt, any other interrupt is disabled.To execute another
interrupt during execution of the previous interrupt, include EI instruction in this first
interrupt. Interrupts can be nested up to 8 levels by executing EI in each interrupt
routine.
Note 1: Generation of up to 8 levels of interrupt nesting or up to 8 individual inter-
rupts can be stored while interrupt is disabled. These interrupts are executed after EI
has been executed.
Note 2: Generation of INT CTC is erased from the storage when RES CTC is
executed.
:
DI
AND
8
FNC
RES
0
:
EI
SET
1
FNC
ORL
3
ORL
3
AND
8
ENT
R-SRCH
RES
0
FNC
SET
1
FNC
ENT
R-SRCH
1000
EI
1000
DI
Line No. Instruction Operand
0000 LD 1000
0001 EI
: :
0021 LDB 1000
0022 DI
::
DI / EI
KVNKA Chap 06.p65 08.3.11, 0:10 PM271
Comentários a estes Manuais