Percentage failures for AB 1500

Keithsoccer

Member
Join Date
Sep 2013
Location
New Jersey
Posts
2
Any ideas on best way to sample pass / fail counts over 100 or 1000 pass fails so I can monitor percentage failure rates on a reject conveyor system and display it on my hmi ... Bring next result into a fifo or something and push oldest out and work out percentage of fifo passes ...Any ideas appreciated
 
Hi Keith

I have done this using 2 counters (or an add instruction) 1 for good parts and 1 for bad parts. I use a cpt instruction then to do the math for the batch.
for the last 1000 parts I would let the counters count until the good reached 1000 and then count down the bad until it's zero or I get a bad part where I would add 1. The good would stay at 1000 untill the batch Is over or the shift or whatever you what to use to reset it.


Donnchadh
 
Welcome to the forum! I've done it a lot on RSLogix 5000 PLC's, but not on an old ML1500. Although the concept would be the same.

Set yourself up an array, then each time a sample is taken do the following:
1. Check for good/bad. If good, do nothing; if bad, add 1 to a counter or integer
2. Check if the FIFO is full (.DN bit set). If not, skip step 3 and go straight to step 4
3. Unload the FIFO and check the unloaded value. If it represents a good sample do nothing; if it represents a bad sample subtract one from your counter/integer (as this bad sample is now no longer within the last 100 samples and shouldn't be counted any more)
4. Load the FIFO with your latest sample result
5. Do a simple calculation comparing your counter/integer value with the total number of samples that you're comparing (i.e. 100 or 1000) to work out the percentage good/bad
6. Attach electric cattle prod to sampling operator and trigger if sampling success rate drops below 75%
7. Profit!

(steps 6 and 7 optional. Especially step 7)

Hope that gets you started!
 

Similar Topics

Hello PLC experts, I have a question for those of you familiar with studio 5k. A moisture analyzer was added to the PLC as a REAL data type tag...
Replies
15
Views
5,230
Hi Guys, I was assigned a task to use the percentage setpoint on the HMI to have an output equivalent to 4-20ma using GE Fanuc 9070. If you have...
Replies
4
Views
2,242
Disclaimer: This might be simple - about to have my first grandkid any day now so I'm up late with my daughter and VERY sleepy during the day so...
Replies
7
Views
1,612
Hello, I want to find some documentation/standard on accepted percentage of no responses/timeouts. i.e. is 1/100 1/1,000 1/10,000 1/100,000. I had...
Replies
3
Views
2,595
Hello all, I need a little help. I have a process that automatically changes a tag value if conditions are met. I have been tasked with keeping...
Replies
14
Views
3,135
Back
Top Bottom