LGF_StoreMinMax (FB / V3.0.1)


Author: Siemens Digital Industries

Short description

This function reads-in a value of a variable at each call and outputs the maximum and minimum value that has been read in since the first call.
The evaluation can be reset if necessary. The block supports the data type LReal.

Block Interface

LGF_StoreMinMax (FB)
LReal  value minValue  LReal
    
Bool  reset maxValue  LReal
    
   

Input parameter

IdentifierData typeDefault valueDescription
valueLReal0.0Value to be compared with min/max
resetBoolfalseTRUE: The min/max history is reset and the evaluation starts over again.

Output parameter

IdentifierData typeDescription
minValueLRealMinimum value since first call or `reset`.
maxValueLRealMaximum values since first call or `reset`.

Change log

Version & DateChange description
01.00.00Siemens Industry Online Support
19.08.2015First released version
01.00.01Siemens Industry Online Support
02.01.2017Upgrade: TIA Portal V14 Update 1
Code optimization
01.00.02Siemens Industry Online Support
17.08.2018Upgrade: TIA V15 Update 2
01.00.03Siemens Industry Online Support
23.11.2018Upgrade: TIA V15.1
01.00.04Simatic Systems Support
09.10.2019Regions, comments and constants are added
03.00.00Simatic Systems Support
23.04.2020Set version to V3.0.0, harmonize the version of the whole library
03.00.01Simatic Systems Support
04.02.2021Insert documentation