EasyManua.ls Logo

Allen-Bradley Logix5000

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 409
Array (File)/Shift Instructions (BSL, BSR, FFL, FFU, LFL, LFU) Chapter 9
Example 1: When enabled, the BSR instruction starts at bit 9 in array_dint[0]. The
instruction unloads array_dint[0].0 into the .UL bit, shifts the remaining bits
right, and loads input_1 into array_dint[0].9. The values in the remaining bits
(10…31) are invalid.
Example 2: When enabled, the BSR instruction starts at bit 25 in array_dint[1]. The
instruction unloads array_dint[0].0 into the .UL bit, shifts the remaining bits
right, and loads input_1 into array_dint[1].25. The values in the remaining bits
(31…26 in dint_array[1]) are invalid. Note how array_dint[1].0 shifts across
words into array_dint[0].31.
9876543210
array_dint[0]
Before shift
11110000111100001111000011110000
9876543210
array_dint[0]
After shift
1001111000
These bits shift right
0
.UL bit
1
input_1
31 0
array_dint[0] 11110000111100001111000011110000
31 0
array_dint[1] 00111100001111000011110000
These bits shift right
0
.UL bit
These bits shift right
1
input_1

Table of Contents

Other manuals for Allen-Bradley Logix5000

Related product manuals