2 circular rotate bits left (rol) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 181

Advertising
background image

9Ć7

9.2

Circular Rotate Bits Left (ROL)

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

positions to the left. The bits are rotated out of the most significant bit positions and are

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

bit positions of In.

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

true.

Advertising