Moving average (event-oriented)
Function
This module returns a moving average.
The average is determined by this function:
Value=(old value * (P-1) + IV) / P
The value is recalculated every time a telegram is received. If no value has as yet been calculated then the incoming value is used as the average.
Inputs
| Type |
Initial value |
Description |
| Input 1 |
0 |
Input value (IV) |
| Input 2 |
0 |
Number of events (P) |
| Input 3 |
0 |
Reset, when the value is not equal to zero. The result is thereby set to zero |
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: 9065
Similar functions