
The Function Block LIMIT limits a value based on a range.
The input defines the number to be limited. If a boolean value is applied at the input, it will be converted into a number. The value TRUE corresponds to a 1. The value FALSE, NULL corresponds to 0.
The input defines the lower limit as a number of the range to be limited. This value must necessarily be smaller than the input MAX, otherwise the result at the output Q will always be the value at the input MAX.
The input defines the upper limit as a number of the range to be limited. This value must necessarily be greater than the input MIN, otherwise the result at the output Q will always be the value at the input MAX.
If the input IN is within the range between the input values MIN and MAX, the input IN is passed to the output. Otherwise, it is limited by the values of the inputs MIN and MAX.