(Repeats through all punches) #100 = 0 M98 P1000 L[#500] M30 (Go to Punch position routine) O1000 G90 G00 X[#[501 + #100]] Y[#[501 + #100 + 1]] M98 P1001 #100 = #100 + 2 M99 % (Punch action routine) O1001 M220 S0 D1000 (turn on output and wait) M221 S0 (turn off output) M99 %