Reset Repeat Loop

The Reset Repeat Loop command forces a Repeat Loop to reset its counter if it's been terminated by an If Input or Feed to Sensor with Safety Distance instruction.

If you simply re-enter the loop again, the next part will only get two holes drilled into it. What you really want is for the loop to reset itself. For this, you must use the Reset Repeat Loop instruction.

For example, if you are drilling holes in parts, and each part gets five holes. The step motor is used to advance the part by 1 inch for each hole.  Therefore, you have a repeat loop with a count of 5. Along comes a bad part, detected after the 3 rd hole is drilled. You exit the loop with 2 counts remaining. Click here to return to programming toolbox page