Limit, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 1059

Advertising
background image

L-force | PLC Designer

Programming Reference

DMS 4.1 EN 03/2011 TD29

1057

Example in FBD:

MIN
IEC Selection 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: ( 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:

LIMIT
IEC Selection 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.

Advertising