beautypg.com

6 circular rotate bits right on transition (rr) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 197

background image

9Ć23

9.6

Circular Rotate Bits Right on Transition (RR)

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.
When EN transitions from false to 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 rotated bits 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 only when EN transitions from false to

true.