Job
Valid range
Writing
pulse duration
*
0 ... 510ms
*) Only even values allowed. Odd values are automatically rounded.
As soon as during a count process an edge 0-1 is recognized at the "Latch" input of a
counter, the recent counter value is stored in the according latch register.
You may access the latch register via
LATCHVAL
of the SFB 47.
A just in
LATCHVAL
loaded value remains after a STOP-RUN transition.
6.6.3 Counter - Functions
You may count forward and backwards and choose between the following counter func-
tions:
n
Count endless, e.g. distance measuring with incremental encoder
n
Count once, e.g. count to a maximum limit
n
Count periodic, e.g. count with repeated counter process
In the operating modes "Count once" and "Count periodic" you may define a counter
range as start and end value via the parameterization. For every counter additional
parameterizable functions are available like gate function, comparison, hysteresis and
process interrupt.
Via the parameterization you have the opportunity to define a main counting direction for
every counter. If "none" is chosen, the complete counting range is available:
Limits
Valid value range
Lower count limit
-2 147 483 648 (-2
31
)
Upper count limit
+2 147 483 647 (2
31
-1)
Main counting direction forward
Upper restriction of the count range. The counter counts 0 res.
load value
in positive
direction until the parameterized
end value
-1 and jumps then back to the load value with
the next following encoder pulse.
Main counting direction backwards
Lower restriction of the count range. The counter counts from the parameterized start-
res.
load value
in negative direction to the parameterized
end value
+1 and jumps then
back to the start value with the next following encoder pulse.
If the HW gate is enabled, only the HW gate may be influenced by the gate functions. An
opening and closing of the SW gate aborts or interrupts the count process.
Abort count process
The count process starts after closing and restart of the gate beginning with the
load
value
.
Interrupt count process
The count process continuous after closing and restart of the gate beginning with the last
recent counter value.
Latch function
Overview
Main counting direction
Gate function abort/inter-
rupt
VIPA System 300S
+
Deployment I/O periphery
Counter > Counter - Functions
HB140 | CPU-SC | 313-5BF23 | en | 19-01
116