klm
  •  klm
  • 70.75848% (Friendly)
  • Advanced Member Topic Starter
2020-04-29T16:24:35Z
Greetings-

Well I've spent almost 2 weeks trying to get this clear in my head.

I'm trying to figure-out the BSR (Bit-Shift-Right)(or Left) Fucntion.

I've gone over the following:

1. AB Intr Set Man.

2. I searched the forums on various PLC web-sites like: PLC.net, Mr PLC etc.

3. And whatever I could find doing a google search ...



After trying out some of the posted Ladder-logic examples and reading explanations about BSR(L) from the web-sites I clicked on .... I still can't seem to "nail this concept down"

So I'm asking for your help - can anyone explain how this (BSR) function works and give a small example ? Please! ! !

Thanks for the help

BTW - I have a SLC 5/03, RSLogix 500 Software.

K-
Zackbo
2020-04-29T16:25:27Z
I'm not as familiar with A/B's bit shift function, but overall, a shift register function takes a 16-bit or 32-bit register, and moves the individual bits either right or left, with an overflow on both sides. If you are familiar, a 16-bit register usually represents an integer, but it is most fundamentally comprised of 16.......well.......bits! A bit being a boolean data point with a value of 1 or 0, on or off, true or false.

A bit shift function shifts all the bits to the right or left. IOW, if I used a BSR with an input value of '1' and a shift value of '1' on a register with the value of "0100010000010001", it would be "1010001000001000". This function is used a lot in walking beam applications, in keeping up with the location of parts. Each bit equals a part, and you can keep up with empty walking locations and flag parts that have failed some type of quality inspection.
Guest
2020-04-29T16:26:13Z
K-

Have you viewed our video in the instruction set samples? It should explain what you need.

Russell
klm
  •  klm
  • 70.75848% (Friendly)
  • Advanced Member Topic Starter
2020-04-29T16:26:58Z
Thanks to Zackbo and Russell. I appreciated the explanation and I'll go check-out the Video -



Thanks again-

Klm
Guest
2020-04-29T16:27:49Z


If you have any questions on the points in the videos please post them here.

Russell
Users browsing this topic