(First Post Here)
Something I want to look into adding to a production process is being able to recognize the same failure (that's in a pattern) and having the machine give an alarm once it sees the pattern occurring. All programming is done on Rockwell devices (Allen Bradley.)
In the simplest way to explain this, we have a rotary table that puts bottle caps/corks on glass bottles. There are 8 "capper heads" that perform this function. Currently, we have a reoccurring issue where the one single capper head continuously holds these caps, doesn't release them, and these caps build up inside it and break the glass bottles. Now, obviously solution here is FIX THE CAPPER HEAD, but clearly, we can't manage that, so I've been asked to create logic to have the machine recognize when this is happening.
Currently a sensor that looks at the caps a little bit after they are placed (to determine if a cap was placed or not) will kick out the failed bottle down the line, but this doesn't cause the program to auto stop itself because the sensor just sees this as a single failed bottle. So, we just run for hours and when this starts happening, we just kick out every 8th bottle until an operator notices it and raises questions.
What would be the most efficient way to structure the new code in order for it to track bottles (in counts of 8) and see if there was a "NG" bottle on every 8th check, or on the same capper head? And if it noticed every 8th bottle failed in a pattern for 3 cycles in a row, it issued an alarm and potentially stopped the machine.
I'm young and only had industry experience for a few years, so structuring ladder logic to hold and track information in this way isn't exactly similar to anything I've done in the past.
Any ideas/recommendations from some long-term automation experts?