Limit, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 478

L-force | PLC Designer
IEC Operators and additional norm extending functions
476
DMS 3.2 EN 02/2011 TD29
9.5.3
MIN
PLC Designer IEC operator: Minimum function. Returns the lesser of the two values.
OUT := MIN(IN0, IN1)
IN0, IN1 and OUT can be any type of variable.
Example in IL:
LD 90
MIN 30
MIN 40
MIN 77
ST Var1 (* Result is 30 *)
Example in ST:
Var1:=MIN(90,30); (* Result is 30 *);
Var1:=MIN(MIN(90,30),40); (* Result is 30 *);
Example in FBD:
9.5.4
LIMIT
PLC Designer IEC operator: Limiting
OUT := LIMIT(Min, IN, Max) means:
OUT := MIN (MAX (IN, Min), Max)
Max is the upper and Min the lower limit for the result. Should the value IN exceed the
upper limit Max, LIMIT will return Max. Should IN fall below Min, the result will be
Min.
IN and OUT can be any type of variable.