ID-Mobile Global Guide
246
Moving average
Symbol
Inputs
Input
Type
Range[DIM]
Function
Input
A
Any
Input value
Outputs
Output
Type
Range[DIM]
Function
Output
A
Same as input
Floating average of the
input value
Description
The function calculates average of N last samples of the input value. The rate of sampling is
adjustable.
Typical usage of this function is filtering of a value (quantity) whose instantaneous value
fluctuates rapidly around it's mean, which is changing slower. Using a filered value may
avoid problems with further processing of the value e.g. in other PLC blocks or in a
supervisory system.
Example of such value can be genset power at a gas engine operating in parallel to mains
mode. Even if the mean value is constant, the instantaneous value may fluctuate rapidly due
to misfiring.
1. Rename the output.
2. The number of consequent samples N is given as 2
exp weight
. I.e. adjust 3 for 8
samples, 4 for 16 samples, 5 for 32 samples etc...
3. Adjust the sampling rate.
Note:
The inputs are assigned to their sources in the sheet by
dragging a wire
from the
input to the source.