IEC operator⮫ “Overview”: Maximum function. Returns the greater of the two values.
OUT := MAX(IN0, IN1)
IN0, IN1 and OUT can be any type of variable.
Example in ST:
Var1:=MAX(30,40); (* Result is 40 *) Var1:=MAX(40,MAX(90,30)); (* Result is 90 *)
Example in FBD:
