BSL shift register problem

prlja

Member
Join Date
Nov 2012
Location
Chicago
Posts
12
Hello everyone,

I am tracking multiple products and I'm using BSL instruction for each product.
Products are loaded in trays which are 5 positions apart. I need to know how to start each shift register from different bit, for example product 1 loads into
B3:0/0 and it's length is 44
Second product needs to be 5 trays delayed so I need to start at B3:3/5, length 39
Third product needs to start at B3:6/10, length 34
I understand BSL instructions only permit word level addressing. What is the best way to work around this problem ?
I'm using RSLogix 500 and 5/05 CPU.

Any help would be appreciated
Thanks
 
Two possibilities come to mind.

a. Inject the desired bit into a given position within a word with a MVM instruction.

2. I believe these processors also have indirect bit addressing, which might be useful to accomplish the same thing.
 
Don't try to save some leftover bits in a word to start another shift register. Start it fresh from another word.

For multiple product status, which is updated at different stations I prefer to work around a group of words [tracking bits in that word] and use copy/move instructions to shift the data.

Regards
 
chavak +1

Especially tracking with multiple entries and exits along the same conveyer

one word (16 bits on the SLC platform) per station each bit represents a different product (entry and/or exit station)
 

Similar Topics

Good Morning , I appreciate your help on a previous post.Your advice helped me understand more. My next question involves the same project...
Replies
8
Views
3,550
I am experimenting with the BSL instruction in LogixPro and have run into a problem. The goal of my program is as follows: track bad products...
Replies
14
Views
13,756
Hi all, I am trying to convert RSLogix 5000 program to Step7. I need to bit shift left my array of double integers for tracking the product on...
Replies
2
Views
519
I’m working on a conveyor project for work. We’re trying to install a few diverts to carry product directly to one of two trailer doors. I have...
Replies
5
Views
1,050
Hello friends, When I trigger once for an application, I want to shift the 15th bit in the word address by 10 bit , so; 1000 0000 0000 0000 ->...
Replies
3
Views
1,669
Back
Top Bottom