Hello, I appreciate the feedback, thank you. My program does not use a camera or any other input device; it only relies on a contact tool and distance measurements. I should have clarified this when I mentioned inspection. We detect the presence of an O-ring using a contact tool: if the tool detects contact, it moves on; if not, it measures the distance to 49.5. If the distance is 49.5, it indicates that there is no O-ring, and the process moves to the next step, dropping the plug without the O-ring. From this point, the cycle restarts with the plug being picked up for another inspection, and so on.
So how do I transition from the drop point back to the pick-up move so the program can resume by picking up the part again?