beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 176

background image

9Ć2

Use this instruction:

To:

Circular Rotate Bits Right (ROR)

Rotate a specified number of the least significant

bits into the most significant bit positions while

the instruction is enabled.

Circular Rotate Bits Right on Transition

(RR)

Rotate a specified number of the least significant

bits into the most significant bit positions for

each falseĆtrue transition of the enable bit.
This instruction performs the same operation as

ROR, but it is edgeĆtriggered.

The supported parameters are:
D Boolean arrays
D simple integer and double integer
D elementĆindexed integer and double integer arrays
Rotating Bits Within Boolean Arrays
In a Boolean array, you cannot rotate more bits than the array contains. For example, if

a Boolean array has 5 elements, you cannot rotate 6 elements. The maximum number

of bits that can be rotated in one instruction is 8 bits.