MAXΒΆ

The IEC Operators and additional, norm-extending \ functions Maximum function. Returns the greater of the two values.

IN0, IN1 and OUT can be any type of variable.

Example in IL:

LD 90
MAX 30
MAX 40
MAX 77
ST Var1 (* Result is 90 *)

Example in ST:

Var1:=MAX(30,40); (* Result is 40 *)
Var1:=MAX(40,MAX(90,30)); (* Result is 90 *)

Example in FBD:

../_images/f1e69237648f94800a317d315fb71209