20ć7 – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual
Page 317

Bit Shift Registers
Chapter 20
20-7
To program a Bit Shift Right instruction:
The prompt SHIFT REGISTER 12 appears in the lower left hand corner of
the screen.
EN
BIT SHIFT LEFT
COUNTER ADDR:
NUMBER OF BITS:
FILE:
INPUT:
OUTPUT:
001
110-110
010/00
010/00
DN
020
10
030
17
030
15
030
13
The format that appears and the technique for insertion of numbers, will be
identical to that for Bit Shift Left except that the title will read Bit
Shift Right.
The instruction should look like Figure 20.5:
Figure 20.5
Bit Shift Right Example Rung
EN
BIT SHIFT LEFT
COUNTER ADDR:
NUMBER OF BITS:
FILE:
INPUT:
OUTPUT:
001
110-110
010/00
010/00
DN
020
10
030
17
030
15
030
See chapter 19 for the procedure for using the data monitor. Note that
bit 00 is the right side bit on the file display and bit 17 is on the left.
This is a condition instruction that examines a user bit in a bit shift register,
such as shown in Figure 20.1 or Figure 20.4, for an Off (0) condition. The
instruction can be used alone or in conjunction with other condition
instructions to affect the rung decision.
Examine Off Bit Shift