4 shift right (sr) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 189

Advertising
background image

9Ć15

9.4

Shift Right (SR)

Use this instruction to shift all the bits in a variable to the right and load either a 1 or 0

into the most significant bit position for each falseĆtrue transition of the enable input.
When EN transitions from false to true, the bits of In are shifted one position to the right.

The value of the least significant bit is moved to OUT, and the value of BIT is shifted into

the most significant bit position of In.

Advertising