SIS function blocks > SIS Math Blocks > Logic Solver Calculation function block > Expressions in DeltaV SIS Software > Functions in Logic Solver Expressions

MIN function

MIN(x,y). Returns the smaller of the two specified values.

Syntax:

'external reference' := MIN(Integer value, Integer Value); 
'external reference' := MIN(Real value, Real Value);  

Example:

VAR
   T63; T64; T17; (* Temporary values *)
END_VAR;
T63 := .5;
T64 := 15.803;
T17 := MIN(T63, T64);

The above example shows T63 set to the value of .5 and T64 set to the value of 15.803. T17 is set to the result of MIN(T63,T64), which is .5.