2 types of interrupts, Visual kv series – KEYENCE Visual KV Series User Manual
Page 219

3.2 Interrupt Processing
3-195
Visual KV
Series
1
3
Chapter 3 Interrupts
3.2.2
Types of Interrupts
Interrupts can be divided into two types: an interrupt by an external input, and an
interrupt by the high-speed counter comparator. This section describes both of these
interrupt types.
Interrupt by an external input
This interrupt is executed by input relays 0000 through 0003. Use the special utility
relay to specify the polarity of the interrupt factor to a rising or falling edge.
Interrupt by the high-speed counter comparator
This interrupt is executed when the current value of the high-speed counter (CTH)
matches the preset value of the high-speed counter comparator (CTC).
Polarity setting for interrupts by an external input
Turn ON the appropriate special utility relay to specify the interrupt factor to a rising
or falling edge.
The interrupt polarity can be changed as follows by setting special utility relays
2402/2403 (INT0), 2404/2405 (INT1), 2410/2411 (INT2), and 2412/2413 (INT3).
Use SET-RES instructions to turn the special utility relays ON/OFF.
Input capture
Each external interrupt factor is provided with the input capture function. This is a
function which writes the value of the high-speed counter into the data memory
when an interrupt occurs. Without any particular settings, the value of the high-
speed counter is automatically transferred to DM1928 through DM1935 when an
interrupt occurs.
CAUTION
t
p
u
r
r
e
t
n
I
e
p
y
t
y
a
l
e
R
.
o
N
s
u
t
a
t
S
y
a
l
e
R
.
o
N
s
u
t
a
t
S
n
o
i
t
p
i
r
c
s
e
D
0
T
N
I
2
0
4
2
F
F
O
3
0
4
2
F
F
O
.
e
g
d
e
g
n
i
s
i
r
t
a
s
r
u
c
c
o
t
p
u
r
r
e
t
n
I
N
O
F
F
O
F
F
O
N
O
.
e
g
d
e
g
n
il
l
a
f
t
a
s
r
u
c
c
o
t
p
u
r
r
e
t
n
I
N
O
N
O
.
s
e
g
d
e
g
n
il
l
a
f
d
n
a
g
n
i
s
i
r
h
t
o
b
t
a
s
r
u
c
c
o
t
p
u
r
r
e
t
n
I
1
T
N
I
4
0
4
2
F
F
O
5
0
4
2
F
F
O
.
e
g
d
e
g
n
i
s
i
r
t
a
s
r
u
c
c
o
t
p
u
r
r
e
t
n
I
N
O
F
F
O
F
F
O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