Documente Academic
Documente Profesional
Documente Cultură
1 of 1
http://plcguide.mrplc.com/menu.shtml
Menu
Command Index
Basic Instructions
Timer & Counter
Compare
Data
Math
Register and Sequencer
Program Control
Communication
Programming References
Example Programs
PLC GuestBook
Links
Down Loads
Send Comments
2001-2006
All Rights Reserved
Your IP Address is: 117.222.1.67
02-07-2013 16:03
1 of 3
http://plcguide.mrplc.com/regsequ/bsr.html
The BSR command loads data into a bit array one bit at a time.
The data is shifted through the array, then unloaded one bit at a
time. An example for the use of this instruction might be for
tracking bottles through a bottling line where each bottle
constitutes a bit.
The wraparound operation is completed when the position of the bit address to the last bit of the array or to the
UL bit, whichever applies.
Instruction Parameters
Several parameters must be set when programming this instruction. A definition and explanation is
given for each parameter below.
File - The file indicator number must be used in the bit array address. The array must start at a 16-bit
boundary.
Control - The control address stores the binstruction's status bits, the size of the array, and the bit
pointer.
Bit Address - The location of the bit which will be added to the array.
02-07-2013 16:03
2 of 3
http://plcguide.mrplc.com/regsequ/bsr.html
Length - The total number of bits to be shifted by the BSR. Bits located to the right of the last bit in the
array, up to the next word boundary cannot be used.
Programming Problem
Develop a process using the BSR command.
An example of the BSR process is given and this example corresponds with the ladder logic. The enable bit ,
operated by sensor #2, loads a bit into the register sequetially. Sensor #1 labels the bit that is loaded with a
high or low signal corresponding to the contents of the bottle. If the bottle is full, a high signal is stored in the
shift register while a low signal is stored in the shift register if the bottle is empty. The Process Illustration
shows an example of this process where the shift register, shown below the illustration, corresponds with the
volume of fluid in the bottles directly above the shift register.The enable bit then loads, labels, and stores more
bits corresponding with the assembly line. An example of this ongoing process is shown in the Process
Assembly Line. The order of ongoing shifts are labeled from the left to the right in numerical order. The empty
bottle "low signal" can be observed moving towards the ejector during the sequence of shifts. At the time
when the empty bottle "low signal" reaches the output sensor, a low signal registers in the ejector bit. This low
signal is passed through the ejector bit switch shown in the ladder logic and a single pulse is sent through that
rung. The pulse triggers the ejector and ejects the bottle.
LADDER LOGIC
PROCESS ILLUSTRATION
02-07-2013 16:03
3 of 3
http://plcguide.mrplc.com/regsequ/bsr.html
02-07-2013 16:03