STATISTICS_REAL (FB)¶
FUNCTION_BLOCK STATISTICS_REAL
Calculates minimum, maximum, and average of an input value
The calculation is done over time and can be reset in order to begin a fresh caluclation/statistic.
- InOut:
Scope
Name
Type
Initial
Comment
Input
INREALInput value
RESETBOOLTRUE:AVGset to 0,MNandMXto minimum and maximum possible real valuesOutput
MNREAL3.402823466E+38
Minimum value
MXREAL-3.402823466E+38
Maximum value
AVGREALAverage value