Median Value Select (MVS)
Selects the median value between three process variables.

Parameter values for the MVS function block:
Parameter | Data Type | Description |
---|---|---|
PV1 | REAL | Uses any REAL value. Infinity or Not a Number (NaN) values are not supported by this input. |
PV2 | REAL | Uses any REAL value. Infinity or Not a Number (NaN) values are not supported by this input. |
PV3 | REAL | Uses any REAL value. Infinity or Not a Number (NaN) values are not supported by this input. |
DEVIATION | REAL | Maximum deviation between PV1, PV2, and PV3. Infinity or Not a Number (NaN) values are not supported by this input. |
OUT | REAL | Mean value when the deviation between PV1, PV2, and PV3 is less than DEVIATION. Median value when the deviation between PV1, PV2, and PV3 is greater than DEVIATION. |
LIMIT | BOOL | FALSE when the deviation between PV1, PV2, and PV3 is less than DEVIATION. TRUE when the deviation between PV1, PV2, and PV3 is greater than DEVIATION. |
When an overflow error occurs during the execution of the function block, OUT is set to the median value, LIMIT to TRUE and the
ERRSTAT
Overflow error counter increments.Function Block Diagram Example

Structured Text Example
MVS(PlantA, PlantB, PlantC, 1.5); Value := MVS.OUT; Dev := MVS.LIMIT;
Provide Feedback