I am trying to set up a subroutine to drill a small hole at each location in a set of coordinates. Below is a sample of how I've set it up. Then I run the G-code, the Z comes down, goes up, then fails to continue with the program.
What am I doing wrong? Please rewrite it correctly so that I can understand and learn from my mistakes.
Thanks,
Charlie
G90 G20
G0 X0.0 Y0.0 Z.1
M98 P1
X0.5 Y0.0
M98 P1
X1.0 Y0.0
M98 P1
M2
O1
G1 F30 Z-.2
G0 Z.1
M99