12.8 Counter Function Module
12.8.1 What Is the Counter Function Module?
12-54
Pulse Counting
Pulse counting is used to read the pulse A/B input signals and increment (forward) or decre-
ment (reverse) the count.
A time graph that illustrates pulse counting for different operating modes is provided below.
The above graph is described in the following table.
Item
Description
Current count
The values n1 to n7 (count for each scan) are given in sequence in IL
04
(Current Count).
Count preset 1
The count is preset at position p1. Therefore, the count is forced to the preset
value (p2).
Maximum overflow
When the count reaches the maximum value (p3), it is automatically reset to the
minimum value (p4).
Minimum overflow
When the count reaches the minimum value (p5), it is automatically reset to the
maximum value (p6).
Count preset 2
The count is preset at position p7. Therefore, the count is forced to the preset
value (p8).
n1
n2
n
3
n4
n5
n6
p2
p8
n7
n1
n2
n
3
n4
n5
n6
n7
T
s
0
(+)
(-)
p2
p1
p7
p8
p
3
p6
p4
p5
Time (
s
)
T
s
=
S
can time (
s
)
Counting prohibited.
Counting prohibition
relea
s
ed.
Counting
prohibited.
Counting prohibition
relea
s
ed.
Count pre
s
et 2
Count pre
s
et 1
-2,147,48
3
,648 (min.)
2,147,48
3
,647 (max.)
Count pre
s
et data
Current count
Count r
egi
s
ter value for the counter