
The Function Block BW_LIMIT limits the bit range.
All data types can be used at the input. The bits at the input are shifted to the left by the number of positions of the input N. The deleted characters are inserted again at the beginning (rotated).
Note: Note that Antcas Control tries to convert values into a string when transmitting them. This can sometimes lead to unwanted results. See Function Blocks for Type Conversions.
The input defines the lower bit length as an integer. The maximum length is 64 bits and the minimum 0 bit. If the input is not defined or the value equals NULL, 0 is assumed. All larger bits are cut off. If the input is greater than the input MAX, 0 is returned.
The input defines the upper bit length as an integer. The maximum length is 64 bits and the minimum 1 bit. If the input is not defined or the value equals NULL, 64 is assumed. All larger bits are cut off. If the input is smaller than the input MIN, 0 is returned.
The output returns the calculated result.