Installation manual
Publication 1747-RM001G-EN-P - November 2008
Application Specific Instructions 7-5
Use BSR
When the rung goes from false-to-true, the enable bit (EN bit 15) is set and
the data block is shifted to the right (to a lower bit number) one bit position.
The specified bit at the bit address is shifted into the last bit position. The first
bit is shifted out of the array and stored in the unload bit (UL bit 10) in the
status byte of the control element. The shift is completed immediately.
For wraparound operation, set the position of the bit address to the first bit of
the array or to the UL bit, whichever applies.
The figure below illustrates how the Bit Shift Right instruction works.
If you wish to shift more than one bit per scan, you must create a loop in your
application using the JMP, LBL, and CTU instructions.
Sequencer Instructions
Overview
The following general information applies to sequencer instructions.
Effects on Index Register S:24
The value present in the index register S:24 is overwritten when the sequencer
instruction is true. The index register value will equal the position value of the
instruction.
(EN)
(DN)
BSR
BIT SHIFT RIGHT
File #B3:2
Control R6:15
Bit Address I:23/06
Length 32
Data block is shifted one bit at a time
from bit 69 to bit 32.
Source Bit
I:23/06
32 Bit Array
#B3:2
Unload Bit
(R6:15/10)
47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
INVALID 696867666564