Bit Shift Instruction Help....

JoseM

Member
Join Date
Jul 2011
Location
Texas
Posts
381
I have this bottling system that uses a SLC 5/04. The PLC code is using a "Bit Shift" instruction to monitor the position of the container on such machine. I looked at the program and there is an array of about 80 elements that monitor the location of the container.

I will like to know if is possible to monitor such array and determine when the last container have left the last filling station. In other words, when there are no more containers in process in the filling station.
 
I have this bottling system that uses a SLC 5/04. The PLC code is using a "Bit Shift" instruction to monitor the position of the container on such machine.

So far so good.

JoseM said:
I looked at the program and there is an array of about 80 elements that monitor the location of the container.

So the BSL length or the range of it's bit array you are concerned with is 80 bits long?

JoseM said:
I will like to know if is possible to monitor such array and determine when the last container have left the last filling station. In other words, when there are no more containers in process in the filling station.

Yes, assuming a 1 in the array represents a bottle, when all 80 bits are off then you're empty. You could put 80 XIC instructions in series, but what I would do is use EQU (MEQ if required for partial words) and whittle 'er down to about 5 or 6 of those in series to an OTE "Fill Station Empty"
 
I was thinking about maybe using a "CPT" instruction to add all the registers that compose the array use for the Bit Shift.

Then I could use an "EQU" instruction to turn ON an "OTE" when the value is equal to zero.
 
I would go with Okie's suggestion. It is more obvious, and will scan faster. It will only Scan the Rung as far as the first EQU Instruction that fails, and then move on. The CPT will have to Add all the Words for a result.

Stu....
 
So, what I need to add is five MEQ instructions in series to scan the array?

You would only need an MEQ if the some of the Bits in one of the Words was used for something else, and you needed to exclude those Bits. 80 Bits should be exactly 5 Words, so 5 EQU Instructions should work fine in this case.

Stu.....
 

Similar Topics

Hi, I need some help write a PLC instruction. I am using Proficy Machine Edition 6.5. Our indexing rotating table has 3 nests that are equally...
Replies
15
Views
3,971
I am having trouble figuring out how to track a product using a BSL instruction. The way that I have it set up is: I have an infeed eye that...
Replies
10
Views
2,742
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,762
Hi All. I have a very specific question about tracking using an encoder and bitshift register. We would like to use a Compact or Control Logix PLC...
Replies
40
Views
1,723
Hello. I've been using the answers in this forum for a while now, so thank you. Usually I can find the answer I'm looking for with a basic...
Replies
8
Views
752
Back
Top Bottom