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
IN
INT
Input value
RESET
BOOL
TRUE
:AVG
set to 0,MN
andMX
to minimum and maximum possible integer valuesOutput
MN
INT
32767
Minimum value
MX
INT
-32768
Maximum value
AVG
INT
Average value