bluenoser337
Member
I am hoping to accomplish this in a CompactLogix. I know there is enough memory. It's the method that I haven't figured out yet. I have parts moving past on a conveyor at about 1 part every 3-4 seconds. There are sensors to measure the length, height, and width. I have a user defined data type tag set up where the measured L,W,H get written, and then transferred to an array of the same data type, up to 10,000 parts per day (the array is 10,000 elements). So far, so good. The issue is how to get all possible combinations out of "storage" and count the totals. For example, 4"x18"x10" appears in the array 95 times out of the 10,000. I have to come up with some code to "extract" this info and sort it. I know this has typically been done in a PC application in the past, but I want to accomplish it in the PLC. The line can keep running if the PC goes down, this way and there are other advantages, too. I also considered feeding the different values into the bytes of a 10,000 element DINT array. I'm thinking that might be easier to "query"...but I haven't spent any time on it yet. 00000000|00001010|00010010|00000100 would equal 0,10,18,4 left to right. Wondering if anyone has done anything similar, or if there are any suggestions. Thanks in advance! RB