
Program blocks
5.8 Counter and summation blocks
RTU303xC
302
Operating Instructions, 06/2019, C79000-G8976-C382-06
5.8.3
Frequency calculation
Function
Each time it is run through the block forms the difference of the current value at the "Counter
value" input and the value from the previous run through.
This difference divided by the time (s) between the current and last run through produces the
current "Frequency" that is output in Hz (1/s).
The output "Value valid" is set to 1 as soon as the block has been run through twice and the
difference could be calculated once.
Via the "Reset" input parameter, the output parameters are reset to 0.
The block performs the calculation in each basic cycle.
Parameters
Parameters
Tag type / range of
values
Description
Input parameters
En
Enable parameter, see section Often used parameters
(Page 252).
Reset
True / False
Digital input / output /
bit memory
STATUS_ERROR
Resets the two outputs to 0 on a positive edge (0
→
1).
With the setting "True", the outputs remain permanently
at 0.
Counter value
Analog input / bit
memory
Event counter / usage
meter
Counter input. Can, for example, be the output of the
"Counter" block.
For information on processing see above.
Output parameters
Frequency
Analog memory bit
•
Configured as a
floating-point
number:
3.402823 e-38 ..
3.402823 e+38
•
Configured as a
counter:
0 .. 4294967295
Tag in which the calculated frequency value is output.