|
I use M98 in most of my turning programs for my lathe. The following example calls the sub 5 times, cutting .005" each pass.
G20 (inches)
G91 (incremental)
G18 (xz plane)
M3 S1000 (start spindle 1000 rpm)
M98 P1234 L5 (call sub 5 times)
M5 (stop spindle)
M30 (end program)
O1234
G0 X.005 (cut depth)
G1 Z-2.500 F10 (turning)
G0 X-.005 (backout)
G0 Z2.500 (return to start)
G0 X.005 (back in)
M99 (end sub)
|
|