Moving average (cyclic)
Help / Logic / Moving average (cyclic) / Inputs / Outputs / End of text
Function
This module returns a moving average.
The average is determined by this function:
Value = (old value * (P-1) + IV) / P
The value is calculated in cycles after each period has expired
Inputs
Type Initial value Description
Input 1 0 Input value (IV)
Input 2 0 Number of periods (P)
Input 3 0 Reset, when the value is not equal to zero.
The result is thereby set to zero
Input 4 0 Duration of a period in seconds
Outputs
Output 1 (send) 0 Average (result)
Output 2 (send) 0 Sends 1 as soon as there is a valid value. The value is valid as soon as the number of the received values is the same as the number of periods.
Commands
HS Commands (Output 1) - The commands assigned here are run when the value of output telegram at output 1 is not equal to zero.
HS Commands (Output 2) - see above
Other
Telegram interval - Can be changed.
Recalculated on start Yes  
Module is retentive Yes  
Internal designation: 9067
Similar functions
Moving average (event-oriented), Maximum value, Minimum value

Help / Logic / Moving average (cyclic) / Inputs / Outputs / Beginning of text