
The Function Block INRANGE checks whether a number is within a range.
The input defines the number to be checked. 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 minimum value as a number of the range to be checked. This value must necessarily be smaller than the input MAX, otherwise the result at the output Q is always false.
The input defines the maximum value as a number of the range to be checked. This value must necessarily be greater than the input MIN, otherwise the result at the output Q is always false.
If the input IN lies within the range between the input values MIN and MAX or if the value is equal to the input values MIN and MAX, the output is true. Otherwise it is false.