Selection Instructions
878
Part III FP Instructions
F285_LIMT
16-bit data upper and lower limit control
If the input value at s3_In < s1_Min, the lower limit at input s1_Min is returned at
output d.
If the input value at s3_In > s2_Max, the upper limit at input s2_Max is returned
at output d.
If the input value at s2_Max s3_In s1_Min, the input value s3_In is returned
unchanged at output d.
If you want to control the output value solely via the upper value s2_Max, set -32768 or 16#8000
for the lower limit s1_Min. To perform lower limit control only, set 32767 or 16#7FFF for the upper
limit s2_Max.
[s2]
[s1]
Output value d
Input value s3
Lower limit s1
Upper limit s2
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
PLC types
Availability of F285_LIMT (see page 1323)
Variable Data type Function
s1_Min the area where the lower limit is stored or the lower limit data
s2_Max the area where the upper limit is stored or the upper limit
data
s3_In the area where the input value is stored or the input value
data
d
ANY16
the area where the output value data is stored
Description
The function compares the input value at input s3_In with a lower and an upper limit. The lower
limit is specified at input s1_Min, and the upper limit at input s2_Max. The result of the function is
returned at output d as follows.
Data types