Bit shift right (bsr), Operation, Entering the instruction – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual
Page 230

Chapter 13
Using Application Specific Instructions
13–4
Operation
The operation of the BSL instruction is shown in the figure below. The
screens shown above the figure are the condensed screens that appear after
instruction entry is complete.
P 0 0 9
B S L
F I L E
# B 1
0 0 0 0 H
P 0 0 9
B S L
R 0 3
L
5 8
P
0
P 0 0 9
B S L
B I T
I / 5
0
If you wish to shift more than one bit per scan, you must create a loop in
your application using the JMP, LBL, and CTU instructions.
When the rung goes from false-to-true, the controller sets the enable bit (EN
bit 15) and the data block is shifted to the right (to a lower bit number) one
bit position. The specified bit at the bit address is shifted into the last bit
position. The first bit is shifted out of the array and stored in the unload bit
(UL bit 10). The shift is completed immediately.
For wraparound operation, set the bit address to the first bit of the array or to
the UL bit.
Entering the Instruction
You enter the instruction from within the program monitor functional area.
19 18 17 16
35 34 33
51 50 49 48
67 66 65 64
32
23 22 21 20
39 38 37
55 54 53 52
71 70 69 68
36
27 26 25 24
43 42 41
59 58 57 56
73 72
40
31 30 29 28
47 46 45
63 62 61 60
44
RESERVED
58 Bit Array #B1
Source Bit
I0/5
Unload Bit
(R3/10)
Data block is shifted one bit at a
time from bit B/16 to bit B/73.
(DN)
BSR
BIT SHIFT RIGHT
File
#B3:2
Control
R6:4
Bit Address
I:0/6
Length
38
(EN)
Execution Times (
µ
sec) when:
False
True
53.34+3.98 x
position value
19.80
Ladder representation:
Bit Shift Right (BSR)