
Program blocks
5.7 Blocks for analog value functions
RTU303xC
Operating Instructions, 06/2019, C79000-G8976-C382-06
295
Parameters
Range of values
Description
Distance
Analog memory bit
Configured as a float-
ing-point number:
±3.402823e-38 ..
±3.38
Configured as a
counter:
0 .. 4294967295
Calculation of the distance between the last known posi-
tion and the setpoint position in meters
Error
Digital output / bit
memory
Error display:
0: Values at the "Latitude" and "Longitude" input signals
are permitted and the GPS position is not older than that
specified in the "Max. age of last position" parameter.
1: Values at the "Latitude" and "Longitude" input signals
are not permitted and the GPS position is older than that
specified in the "Max. age of last position" parameter.
5.7.10
Statistics
Function
The block performs statistical calculations (functions) for a configurable analog signal. The
statistical calculation is performed on a configurable value set of up to 256 values of the
signal.
Up to two functions for the input signal can be used per block from 9 possible statistical
functions.
A maximum of 8 blocks of this type can be configured. A total of 768 values can be
configured for all blocks of this type.
With the maximum number of blocks, a total of 16 calculations can be performed for 8
analog signals.
The block uses a shift register which stores the read values of the analog signal. The values
are stored in the shift register with the same data type as the original signal at the "Input".
Floating-point numbers at the input are stored as floating-point numbers, integer counter
values are stored as such.
In each cycle, the block reads a value of the analog signal at the input, stores it in the shift
register and uses it for the calculation.
If the "Retentivity" option of the block is disabled, the shift register is cleared when the RTU
is restarted or after the configuration has been changed. If this option is enabled, both the
values in the shift register and the output values from the last block pass are applied.
With every edge transition 0 → 1 at the "Trigger" input, the v
alue created at that moment at
the "Input" is included in the shift register. As long as the shift register is not completely filled,
the number of values in the shift register increases. If the shift register contains the
configured "Number of values", the oldest value in the shift register is deleted with each new
value recorded (FiFo principle).