STATISTICS_INT (FB)¶
FUNCTION_BLOCK STATISTICS_INT
Calculates minimum, maximum, and average of an input value
The calculation is done over time and can be reset in order to start a fresh caluclation/statistic.
- InOut:
Scope
Name
Type
Initial
Comment
Input
ININTInput value
RESETBOOLTRUE:AVGset to 0,MNandMXto minimum and maximum possible integer valuesOutput
MNINT32767
Minimum value
MXINT-32768
Maximum value
AVGINTAverage value