Allen-Bradley Logix5000 Reference Manual page 405

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Example 1:
array_dint[0]
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
Before shift
array_dint[0]
After shift
Example 2:
31
array_dint[0]
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
31
array_dint[1]
0
.UL bit
When enabled, the BSL instruction starts at bit 0 in array_dint[0]. The instruction unloads array_dint[0].9 into the .UL bit, shifts the remaining bits, and loads input_1 into array_dint[0].0. The values in the remaining bits (10...31) are invalid.
When enabled, the BSL instruction starts at bit 0 in array_dint[0]. The instruction unloads array_dint[1].25 into the .UL bit, shifts the remaining bits, and loads input_1 into array_dint[0].0. The values in the remaining bits (31...26 in array_dint[1]) are invalid. Note how array_dint[0].31 shifts across words to array_dint[1].0.
These bits shift left
0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
These bits shift left
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Array (File)/Shift Instructions (BSL, BSR, FFL, FFU, LFL, LFU)
9 8 7 6 5 4 3 2 1 0
These bits shift left
0
.UL bit
9 8 7 6 5 4 3 2 1 0
0 1 1 1 1 0 0 0 0 1
Chapter 9
1
input_1
0
1
input_1
0
405

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents