
The Function Block ROR is a Bit-Roll-Operator to the right.
All data types can be used at the input. The bits at the input are shifted to the right by the number of positions of the input N. The deleted characters are inserted again at the end (rotated).
Warning: Note that Antcas Control tries to convert values into a string when transmitting them. This can lead to unwanted results in some cases. See Function Blocks for Type Conversions.
The second input defines the number of positions for the right 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.