hexagon logo

Loop Control

I'm making a program that is capable checking 6 parts, 2 columns, 3 parts per column. I currently have a loop with in a loop in order to move to the next column. I have it so the operator inputs the number of parts and depending on that the program with only check whatever that number is. The issue I've run into is that for any number of parts that require it go to the next column I cant figure out how to get it to only check for a couple of parts. I can make it only check for 1, 2 or 3 parts but once it goes to 4+ parts it enters the next column and will proceed to check as if there were 6 parts. Basically, the 2nd column or the second loop only gets triggered for 4+ parts and once its triggered I cant control it to only check 4 or 5, it always will check for 6. Does my poor explanation make sense? Any ideas? My band aid solution is on probe miss go to end of program.
Parents Reply Children
No Data