Chapter 9
Array (File)/Shift Instructions (BSL, BSR, FFL, FFU, LFL, LFU)
Bit Shift Right (BSR)
Mnemonic
Data Type
.EN
BOOL
.DN
BOOL
.UL
BOOL
.ER
BOOL
.LEN
DINT
406
The BSR instruction shifts the specified bits within the Array one position right.
Operands:
Relay Ladder
Operand
Array
Control
Source bit
Length
CONTROL Structure
Description
The enable bit indicates that the BSR instruction is enabled.
The done bit is set to indicate that bits shifted one position to the right.
The unload bit is the instruction's output. The .UL bit stores the status of the bit that was
shifted out of the range of bits.
The error bit is set when .LEN < 0.
The length specifies the number of array bits to shift.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
DINT
Array tag
CONTROL
Tag
BOOL
Tag
DINT
Immediate
Description
Array to modify
Specify the element where to begin the shift
Do not use CONTROL.POS in the subscript
Control structure for the operation
Bit to load
Number of bits in the array to shift