I want to cut a square pc out of a thin pc of aluminum and am trying to learn how to use the gcode repeat command. This is the code I have:
S1500 M3 S500
M98P1 L5
M30
O1
G1 Z-1
G1 Y-25
G1 X25
G1 Y0
G1 X0
M99
I need to go down 5 steps total, each repeat I want to go down Z-1, but it will only go down on the first run since it will make the machine/dro at Z-1. I need to trick the machine into thinking it is back at Z0 and then go down another 1 step during the repeats. What am I missing in this code ?