The Shift function moves the bits in an integer to the left or to the right. Note that any bit shifted out cannot be recovered.
Shift Right

Operand A: contains the value to be shifted.
Operand B: contains the number of bits to be shifted (one or more).
Operand C: contains the resulting value.
Operand D: shows the status of the final (last) bit in the integer after the operation.

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