Bit Shift Right (Bsr); Relay Ladder; Control Structure - Allen-Bradley Logix5000 Reference Manual

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents