Low Value Select (LVS)

Selects the lowest value between two process variables.
OUT = Min(PV1, PV2)
lvs_block
Parameter values for the LVS function block:
Parameter
Data Type
Description
PV1
REAL
Uses any REAL value
PV2
REAL
Uses any REAL value
OUT
REAL
Lowest REAL value between PV1 and PV2
SEL
BOOL
FALSE when PV1 is the lowest value.
TRUE when PV2 is the lowest value.
When PV1 or PV2 is infinity or Not a Number (NaN) value, OUT sets to PV1, SEL to FALSE and the
ERRSTAT
Param error counter increments.
Function Block Diagram Example
lvs_fbdexample
Structured Text Example
LVS(Process1, Process2); OutValue := LVS.OUT; Result := LVS.SEL;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal