MIN
PROGRAM MIN_DEMO
VAR
REAL1,REAL2,REAL3: REAL;
END_VAR
REAL3:= MIN(IN1:=REAL1, IN2:=REAL2);
END_PROGRAM
Returns the minimum value from all the inputs. The number of inputs may be 2 and higher.
Input | Type | Description |
---|---|---|
IN1 | ANY_ELEMENTARY | Input value |
IN2 | ANY_ELEMENTARY | Input value |
Output | Type | Description |
---|---|---|
=> | ANY_ELEMENTARY | Output value |