Moving Average

The function block takes the value from the input every 'C' seconds and places it in a buffer that has a maximum of 'N' entries. The oldest entry from this buffer is always removed. The average value is calculated from these entries.

Table of Contents


Inputs↑

AbbreviationSummaryDescriptionValue Range
VValueAnalogue input from which the moving average is calculated.∞
RResetDeactivates the averaging function. Output (Avg) is equal to the value at input (V).0/1




Outputs↑

AbbreviationSummaryValue Range
AvgAverage∞




Parameters↑

AbbreviationSummaryDescriptionUnitValue RangeDefault Value
RemRemanence inputRemanence input: If active, the function block retains its previous state after a Miniserver reboot.
The state of the function block is saved:
– When saving to the Miniserver
– At a planned reboot
– Before a backup
– Once per hour
The data is saved on the SD card.
-0/10
CPolling cycleUsed to set the interval at which the value on the input read to then be averaged.s0...∞60
NNumber of readingsNumber of values used for calculating average.-0...100060