High Value Select (HVS)
Selects the highest value between two process variables.
OUT = Max(PV1, PV2)

Parameter values for the HVS function block:
Parameter | Data Type | Description |
---|---|---|
PV1 | REAL | This input must use any REAL value |
PV2 | REAL | This input must use any REAL value |
OUT | REAL | Highest REAL value between PV1 and PV2 |
SEL | BOOL | FALSE when PV1 is the highest value. TRUE when PV2 is the highest 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

Structured Text Example
HVS(Process1, Process2); OutValue := HVS.OUT; Result := HVS.SEL;
Provide Feedback