1 interrupt instructions, Int: interrupt reti: return interrupt, Visual kv series – KEYENCE Visual KV Series User Manual
Page 216

3.1 Interrupt Instructions
3-192
Visual KV
Series
3
Chapter 3 Interrupts
FUN
FUN
LDB
4
RES
0
ENT
Operand
R-SRCH
ENT
R-SRCH
ENT
R-SRCH
ENT
R-SRCH
ANL
2
ORL
3
3.1
Interrupt Instructions
This section describes the INT, RETI, DI, and EI instructions used for interrupt
processing.
INT: Interrupt
RETI: Return Interrupt
Executes interrupt between INT and RETI
instructions at rising or falling edge of input
specified by operand.
Represents termination of interrupts.
FUN
FUN
LDB
4
RES
0
ANL
2
ORL
3
RETI
INT
nnnn
0500
0000
T000
0500
#00020
T000
a)
0000
Normal
input
Example
Coding for normal input
Coding for interrupt input
Description
•
Example a) shows a normal input and is used when input relay 0000 turns ON
longer than the input time constant (10 ms).
•
Example b) is used when input relay 0000 turns ON shorter than the scan time.
Operands
0000 to 0003
CTC0 to CTC3
Key operation
(Input ON time: 10 µs min.)
(Input ON time: 10 ms min.)
Interrupt
input
Line No.
Instruction
Operand
0000
LD
0000
0001
OR
0500
0002
TMR
00 #00020
0003
ANB
T000
0004
OUT
0500
Line No.
Instruction
Operand
0000
LD
2008
0001
EI
0002
LD
2002
0003
HSP
0000
0004
LD
1000
0005
OR
0500
0006
TMR
000 #00020
0007
OUT
0500
0008
LD
T0
0009
RES
1000
0010
END
0011
INT
0000
0012
LD
2002
0013
OUT
1000
0014
RETI
0015
ENDH
1000
0500
#00020
T000
1000
2002
b)
0000
2008
EI
END
INT
0000
HSP
0000
RETI
ENDH
2002
T0
1000
(RES)
KVNKA Chap 03.p65
08.3.11, 0:05 PM
192