beautypg.com

Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 254

background image

Bit Shifts

Chapter 14

14Ć2

Figure 14.1

BIT SHIFT LEFT/RIGHT Operation

32

400

401

16 15 14 13 12 11 10 9

8

7

6

5

4

3

2

1

L

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

L

17

48

402

L

33

64

403

L

49

80

404

L

65

96

405

L

81

112

406

L

97

128

407

L

113

127

L

L

L

L

L

L

L

66

67

128ĆBit Shift Register

(Starting at Location 400)

(A.)

Input Bit A

Bit one of

Bit Shift Register

L

123

Output Bit A

32

400

401

16 15 14 13 12 11 10 9

8

7

6

5

4

3

2

1

L

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

R

17

48

402

R

33

64

403

R

49

80

404

R

65

96

405

R

81

112

406

R

97

128

407

R

113

127

R

R

R

R

R

R

R

66

67

128ĆBit Shift Register

(Starting at Location 400)

(B.)

Output Bit A

Bit one of

Bit Shift Register

R

123

Input Bit A