
The Function Block ROL is a Bit-Roll Operator to the left.
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).
Warning: Note that Antcas Control tries to convert values into a string during transmission, which can lead to unwanted results under certain circumstances. See Function Blocks for Type Conversions.
The second input defines the number of positions for the left shift. Each position corresponds to a multiplication by two.
The input defines the 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.
The output returns the calculated result.