instruward
Member
CompactLogix PLCs
I'm tasked with getting a box packing machine to MSG (ethernet) another plc that handles a diverter gate/reject conveyor.
My issue is when the packer decides a box should be rejected, the time is variable from when it gets to the diverter gate. The easiest solution maybe to give the operator a way to adjust the timing as needed...
So far I have 2 proxes I can use, one to count the box as it leaves the packer reject area and one prox before the diverter gate. I was trying to use counters to track the reject boxes. But I am realizing what I have done won't work if there are several rejects in a row, or some variety. It's possible for 10 boxes to be between the two proxes.
My latest attempt, I've discovered I can't use a counter's accumulated value as an array index because it's type DINT instead of INT.
tl;dr I'm looking for advice tracking rejected boxes with 2 photoeyes. I've only been attempting to use counters.
I'm tasked with getting a box packing machine to MSG (ethernet) another plc that handles a diverter gate/reject conveyor.
My issue is when the packer decides a box should be rejected, the time is variable from when it gets to the diverter gate. The easiest solution maybe to give the operator a way to adjust the timing as needed...
So far I have 2 proxes I can use, one to count the box as it leaves the packer reject area and one prox before the diverter gate. I was trying to use counters to track the reject boxes. But I am realizing what I have done won't work if there are several rejects in a row, or some variety. It's possible for 10 boxes to be between the two proxes.
My latest attempt, I've discovered I can't use a counter's accumulated value as an array index because it's type DINT instead of INT.
tl;dr I'm looking for advice tracking rejected boxes with 2 photoeyes. I've only been attempting to use counters.