User Manual
Section 5
GFK-2958L
May 2021
Detailed Description of I/O Modules
215
Counting Range, Count Limits
The maximum count limits are predetermined by the register size and cannot be changed.
Maximum Counting Range
Limit
Value
Lower count limit
–
2 147 483 648 (
–
231)
Upper count limit
+2 147 483 647 (231
–
1)
5.16.9
Counter Functions
Counting Mode
Depending on the application you can chose the counting mode:
•
Endless counting, for example, for position detection with a rotary encoder
•
1-time counting with or without primary direction, for example, for counting products
up to a maximum limit
•
Periodic counting with or without primary direction, for example, repeated identical
pick-and-place operations
For both counting modes 1-time counting and periodic counting you can parameterize the
counting range with load value and end value.
Via bit QX8.5 of the control word you can load a set value into the counting value. You can
define the set value in the second double word of the process data outputs.
Counting Direction
No primary direction
The entire counting range is available when using a counting mode without primary
direction.
Primary Direction Up
The counting range is limited at the top by a parameterized end value. Starting from 0, a set
value or a parameterized load value, the counter counts until the end value -1 and is reset
to the load value with the next encoder pulse.
Primary Direction Down
The counting range is limited at the bottom by a parameterized end value. Starting from 0,
a set value or a parameterized load value, the counter counts until the end value +1 and is
reset to the load value with the next encoder input.
Gate Function: Activate / Deactivate Counter