beautypg.com

5 circular rotate bits right (ror) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 193

background image

9Ć19

9.5

Circular Rotate Bits Right (ROR)

Use this instruction to rotate all the bits within a variable a specified number of bit

positions to the right. The bits that are rotated out of the least significant bit positions

are rotated back into the most significant bit positions.
While EN is true, the following occurs:
D the number of least significant bits of In specified in N are moved from In
D the remaining bits shift right
D the bits rotated from the least significant bits of In are filled into the most significant

bit positions of In

The specified number of bits are rotated right every program scan while the instruction

is true.