Chapter 9
Array (File)/Shift Instructions (BSL, BSR, FFL, FFU, LFL, LFU)
Bit Shift Left (BSL)
Mnemonic
Data Type
.EN
BOOL
.DN
BOOL
.UL
BOOL
.ER
BOOL
.LEN
DINT
402
The BSL instruction shifts the specified bits within the Array one position left.
Operands:
Relay Ladder
Operand
Array
Control
Source bit
Length
CONTROL Structure
Description
The enable bit indicates that the BSL instruction is enabled.
The done bit is set to indicate that bits shifted one position to the left.
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