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