User manual

6 Detailed descriptions of I/O modules | Digital counter module UR20-1CNT-100-1DO
340 1432790000/08/12.2015Manual u-remote
Setting up the counter
To start a counting process at least the signal mode needs
to be parameterised and a rising ank at the bit QX8.2 (“Set
SW gate”) of the control word is required.
You can dene the counter functions by parameterising: the
counting mode, a primary direction (counting up or down),
the counting behaviour and the hardware gate‘s function
(input „gate“). In addition you can parameterise output set-
ting options (comparison function, hysteresis) as well as
producing a process alarm (see section „additional counter
features").
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 (–2
31
)
Upper count limit +2 147 483 647 (2
31 
– 1)
Counter functions
Counting mode
Depending on the application you can chose the counting
mode:
Endless counting, e.g. for position detection with a rotary
encoder
1-time counting with or without primary direction, e.g. for
counting products up to a maximum limit
Periodic counting with or without primary direction, e.g.
repeated identical pick-and-place operations
For both counting modes “1-time counting” and “periodic
counting” you can parameterise 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 dene 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 parameterised
end value. Starting from 0, a set value or a parameterised
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 paramete-
rised end value. Starting from 0, a set value or a parameter-
ised 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
The counter is activated and deactivated using an internal
gate. If the hardware gate (HW gate) is deactivated in the
parameters, the internal gate is identical to the software gate
(SWgate).
With activated hardware gate, there is a logic AND connec-
tion of SW gate and HW gate, so that the gate functions ope-
rate exclusively on the HW gate. In this case, opening and
closing of the SW gate has an interrupting effect only.
The software gate is activated using a 0-1 edge at the bit
“Set SW gate” in the control word and deactivated with a
0-1 edge at the bit “Reset SW gate” in the control word (see
table “Process data outputs”).
Counting behaviour: cancel/interrupt counting
You can parameterise the counting behaviour after a new
gate start: Using “Interrupt counting”, the counter continues
from the last counting value. Using “Cancel counting”, count-
ing starts again from the load value.