If the output should not start at the value 0, you can specify a different start value using the
function parameter "Initial value".
With the "Direction" function parameter you specify the count direction:
● Incremental (forwards)
● Decremental (backwards)
The current total counted value is output at the "Counted value" output as an unsigned 32-bit
value.
Using the function parameter "Turn on threshold", the value for the counted value can be
configured and when it is overshot or undershot, the output "Counter status" is set.
Parameters
Parameters
Input parameters
En
Trigger
Reset
Function parameters
Initial value
Turn on threshold
Direction
RTU303xC
Operating Instructions, 06/2019, C79000-G8976-C382-06
Tag type / range of
Description
values
Enable parameter, see section Often used parameters
(Page 252).
Digital input / output /
Counter input
bit memory
The block counts the positive edges (0 → 1) at the input
STATUS_ERROR
and outputs the total (including the Initial value) at the
output.
Inverted parameter:
The block counts the negative edges (1 → 0) at the input
and outputs the total (including the Initial value) at the
output.
True / False
Resets the counter to 0 or the Initial value on a positive
edge (0 → 1).
Digital input / output /
bit memory
With the setting "True" the counter is continuously reset
and the output remains permanently set to 0 or the initial
STATUS_ERROR
value.
With the setting "Input unused" or "False", the count is
not reset.
0 .. 4294967295
Start value
0 .. 4294967295
Threshold value for the counted value. Switches the
"Counter status" output depending on the count direction.
•
•
Decremental
•
•
Incremental
•
•
5.8 Counter and summation blocks
Incremental counting: If "Turn on threshold" is
reached (exceeded), the "Counter status" output is
set to 1.
Decremental counting: If "Turn on threshold" is
reached (undershot), the "Counter status" output is
set to 1.
Count down
Count up
Program blocks
299