Sliding average (event)
Contents

1.Description

This module sends a sliding average. The average is determined with the following function: Value=(old value * (P-1) + IV) / P. The value is recalculated with each newly arriving telegram. If no value is present yet, the first arriving value is used as average value.

2.Inputs

No.NameInitialisationDescription
1E1 Value0
Input value (IV)
2E2 Events0
Number of events (P)
3E3 Reset0
Reset when value is not equal to zero. The result is set to zero

3.Outputs

No.NameInitialisationSBCDescription
1A1 MV0s
Average (result)
2A2 Valid0s
Sends a 1 as soon as there is a valid value. The value is valid as soon as the number of values that have arrived is equal to the number of periods.
s = send, sbc = send by change

4.Other

Recalculation during start:Yes
Module is retentive:Yes
Internal designation:9065
Category:Math. functions

5.Similar functions

Curve funct. (2 points)
Curve funct. (4 points)
Random generator
Minimum value (continuous)
Minimum value (comparative)
Maximum value (continuous)
Maximum value (comparative)
Exponential function
Natural logarithm
Summation
Sliding average (cyclical)
Root
x to the power of y
Logarithm (Base 10)
Absolute value