Note
The IN1, IN2, and OUT parameters must be the same data type.
Parameter
IN1, IN2
OUT
ENO status
Limit instruction
You use the Limit instruction to test if the value of parameter IN is inside the value range
specified by parameters MIN and MAX. The OUT value is clamped at the MIN or MAX
value, if the IN value is outside this range.
Click below the box name and select a data type from the drop-down menu.
Note
The MIN, IN, MAX, and OUT parameters must be the same data type.
Parameter
MIN, IN, and MAX
OUT
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02
Data type
SInt, Int, DInt, USInt, UInt, UDInt, Real,
Constant
SInt, Int, DInt, USInt, UInt, UDInt, Real
Description
1
No error
0
For Real data type only:
One or both inputs is not a Real number (NaN).
The resulting OUT is +/- INF (infinity).
If the value of parameter IN is inside specified range, then the value of IN
is stored in parameter OUT.
If the value of parameter IN is outside of the specified range, then the
OUT value is the value of parameter MIN (if the IN value is less than the
MIN value) or the value of parameter MAX (if the IN value is greater than
the MAX value).
Data type
SInt, Int, DInt, USInt, UInt, UDInt, Real, Constant
SInt, Int, DInt, USInt, UInt, UDInt, Real
Programming instructions
6.1 Basic instructions
Description
Math operation inputs
Math operation output
Description
Math operation inputs
Math operation output
117