PLC Pie Guy
Member
Hey Folks.
Using RSL5K on V21
I'm working on a little project here. Proving to be a bit of a challenge.
I have a production line that is an approx 3 hour trip for our product start to finish.
The line is broken into many sections. I want to track the product on our line and determine where and when the breaks in product occur. I want to be able to represent the time left until a break and the duration the break will be on the HMI screen.
What I have so far is a BSL instruction that is say 2016 bits long, or 63 DINT words.
This is to represent the entire length of one section of conveyor. I know the speed in feet per minute and there is a photoeye looking across the conveyor at the entry.
If the speed is 80 FPM, then my BSL will get fired every 1.3 Seconds and depending on the state of the photo eye, the BSL will carry the bits through to illustrate where on the belt the product is. This works very well for a visual on the HMI. However, I want to get the time between true bits (duration of break in product) and time until the next section of say 10 or more untrue bits. (Time until break in production)
I know that each bit represents 1 foot of conveyor and the FPM. So if I have 100 untrue bits coming through the BSL array in a row, I want to be able to say, that I have a 75 second gap coming in 10 minutes,, sort of thing.
Any thoughts on how I what the expression might look like that could pull that out of my BSL knowing what my conveyor speed is? The math makes sense to me, just how to examine a group of bits in a word and how many untrue bits between the groups is what Im struggling with.
Any advice would be appreciated.
Using RSL5K on V21
I'm working on a little project here. Proving to be a bit of a challenge.
I have a production line that is an approx 3 hour trip for our product start to finish.
The line is broken into many sections. I want to track the product on our line and determine where and when the breaks in product occur. I want to be able to represent the time left until a break and the duration the break will be on the HMI screen.
What I have so far is a BSL instruction that is say 2016 bits long, or 63 DINT words.
This is to represent the entire length of one section of conveyor. I know the speed in feet per minute and there is a photoeye looking across the conveyor at the entry.
If the speed is 80 FPM, then my BSL will get fired every 1.3 Seconds and depending on the state of the photo eye, the BSL will carry the bits through to illustrate where on the belt the product is. This works very well for a visual on the HMI. However, I want to get the time between true bits (duration of break in product) and time until the next section of say 10 or more untrue bits. (Time until break in production)
I know that each bit represents 1 foot of conveyor and the FPM. So if I have 100 untrue bits coming through the BSL array in a row, I want to be able to say, that I have a 75 second gap coming in 10 minutes,, sort of thing.
Any thoughts on how I what the expression might look like that could pull that out of my BSL knowing what my conveyor speed is? The math makes sense to me, just how to examine a group of bits in a word and how many untrue bits between the groups is what Im struggling with.
Any advice would be appreciated.