5 resetting the high-speed counter, Visual kv series, Automatic reset after counting up – KEYENCE Visual KV Series User Manual
Page 238: Reset with the res cth instruction, Reset with the input-enable relay

4.3 Setting and Operation of High-speed Counters
3-214
Visual KV
Series
4
Chapter 4 High-speed Counters
4.3.5
Resetting the High-speed Counter
Reset is an operation used to set the current value of a high-speed counter to "0".
Four types of reset operations are available: reset with input-enable relay, reset with
external input, reset automatically after counting up, and reset with the RES CTH
instruction.
Automatic reset after counting up
Resets the counter value as soon as the preset value matches the current value
(CTC = CTH).
This reset operation is independent of the scan time.
Note: Do not specify the same values for CTC0 and 1 (2 and 3) to automatically
reset the counter with both comparators.
Reset with the RES CTH instruction
Resets the counter by writing a RES CTH instruction to the program.
This reset operation is dependent on the scan time.
*
CTH is reset by the output process of the scan which executes the RES CTH
instruction.
Reset with the input-enable relay
Resets the counter at execution of CTH instruction during the scan after the input-
enable relay is turned OFF.
This reset operation is dependent on the scan time.
*
CTH is reset at execution of the CTH instruction during the scan after the input-
enable relay turns OFF.
CTH
Scan
Execution of CTH instruction
Input-enable relay
for CTH instruction
d
e
e
p
s
-
h
g
i
H
r
e
t
n
u
o
c
d
e
e
p
s
-
h
g
i
H
r
e
t
n
u
o
c
r
o
t
a
r
a
p
m
o
c
.
o
N
y
a
l
e
R
n
o
i
t
a
r
e
p
O
0
H
T
C
0
C
T
C
3
0
1
2
e
r
a
2
1
1
2
d
n
a
3
0
1
2
s
y
a
l
e
r
y
t
il
i
t
u
l
a
i
c
e
p
s
n
e
h
W
s
a
t
e
s
e
r
s
i
e
u
l
a
v
0
H
T
C
t
n
e
r
r
u
c
e
h
t
,
N
O
d
e
n
r
u
t
t
e
s
e
r
p
1
C
T
C
r
o
0
C
T
C
e
h
t
s
e
h
c
t
a
m
t
i
s
a
n
o
o
s
.
e
u
l
a
v
1
C
T
C
2
1
1
2
1
H
T
C
2
C
T
C
3
0
2
2
e
r
a
2
1
2
2
d
n
a
3
0
2
2
s
y
a
l
e
r
y
t
il
i
t
u
l
a
i
c
e
p
s
n
e
h
W
s
a
t
e
s
e
r
s
i
e
u
l
a
v
1
H
T
C
t
n
e
r
r
u
c
e
h
t
,
N
O
d
e
n
r
u
t
t
e
s
e
r
p
3
C
T
C
r
o
2
C
T
C
e
h
t
s
e
h
c
t
a
m
t
i
s
a
n
o
o
s
.
e
u
l
a
v
3
C
T
C
2
1
2
2
CTH
CTH = CTC
CTH is reset when CTH value equals CTC value.
Scan
CTH
Execution of RES CTH instruction
Scan
KVNKA Chap 04_1.p65
08.3.11, 0:06 PM
214