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

MAX function

MAX(x,y). Returns the greater of the two specified values.

Syntax:

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

Example:

VAR
   T63; T64; T17; (* Temporary values *)
END_VAR;
T63 := .5;
T64 := 15.803;
T17 := MAX(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 MAX(T63,T64), which is 15.803.