beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 192

background image

9Ć18

9.4.3

Example of a Shift Right Instruction

When switch1 transitions from false to true,

the bits shift right, moving the original

value of bit 0 into OUT. Then, the state of

switch2 is read, and that value is shifted

into bit 15 of the variable batch. In this

example, switch2 is true, so 1 is shifted

into bit 15.