L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 477
Advertising
L-force | PLC Designer
IEC Operators and additional norm extending functions
DMS 3.2 EN 02/2011 TD29
475
Example in FBD:
Note!
Note that an expression occurring ahead of IN1 or IN2 will not be processed if IN0 is
TRUE.
9.5.2
MAX
PLC Designer IEC operator: 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 IL:
LD 90
MAX 30
MAY 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:
Advertising