The Rotate function moves the bits in an integer to the left or to the right.

Operand A: contains the value to be rotated.
Operand B: contains the number of bits to be rotated.
Operand C: contains the resulting value.
Operand D: shows the status of the final bit in the integer after the operation.

The Rotate function may be performed on values contained in the following operands:
The functions are located under the Logic menu on the Ladder toolbar.