Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 312

Advertising
background image

Bit Shift Registers

Chapter 20

20-2

Figure 20.1

How the Processor Shifts a Bit to the Left

16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1

L

32

17

L

48

33

L

64

49

L

80

65

L

96

81

L

112

97

L

128

113

127

123

66

67

17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00

Bit Address

Output Bit B

Word Address

Input BIt A

Bit one of

Bit Shift Register

400

401

402

403

404

405

406

407

10386-I

L

L

L

L

L

L

L

L

Upon false-true-rung transition, input bit A from a particular input word
shifts into the first bit of the bit shift register. Bit 1 moves to the left and
displaces bit 2; bit 2 displaces bit 3; and so on. Each bit displaces the one
to its left until the last bit in the word (bit 16) is reached. Bit 16 displaces
bit 17, which is really bit 1 of the next word (in this example, bit 401/00).
Bumping continues throughout the file until last bit is ejected from the
queue into output bit B.

Advertising