Making O-ring groves in different part locations G54-G59 and trying to loop that cut to get to my desired depths. So I thought that I could write a sub program to accomplish that and just give it a new part location every time I ran a new o-ring groove. The program will loop a full circle to the start point then give an invalid I,J or K in G02 or G03. Can someone take a look at this and give me some hints? I have a HAAS TM2P.