A weird thing happened today. I used the code and experimented with it by changing some parameters and it was working well, but suddenly it didn't work. I had run the code 20 or so times, then when it got to the line G1 Z-1 F10 (move to radius of hole) it stopped and would not go to the next line, even though I had not changed anything on that line, and it had been working fine.
I checked some other files with similar Z and X movements and they all worked.
Any ideas as to why this happened?
Best regards
Peter