Redundant instruction
This is a redundant instruction. It is replaced by: LIMIT
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:
Input
The area where the lower limit is stored or the lower limit data
The area where the upper limit is stored or the upper limit data
The area where the input value is stored or the input value data
Output
The area where the output value data is stored
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 -2147483648 or 16#80000000 for the lower limit s1_Min. To perform lower limit control only, set 2147483647 or 16#7FFFFFFF the upper limit s2_Max.
if the value at s1_Min > s2_Max
if the value at s1_Min > s2_Max
if the result of processing is between the upper and lower limits.