G90 G80 G40 ;set's Mach to proper mode G91.1 ;set's Mach to proper mode M98 P10 L8 ; Subrutine Call,"P" set's file name to "O10", "L" set's repeat 8 times G00 x0 y0 z0 a0 M30 ; end & rewind G-code % ; end of G-code o10 ; G-code 8 spacing 45 deg G91 ; set's INC mode moves g01 z-0.2500 f10 G00 z0.2500 g00 A45 ; equal spaces in 360 deg. turn G90 ; set's ABS mode moves m99 ; return to repeat O10 8 times % ; end of G-code ; some other examples ; o14;-----------------------------11 tooth Ang. Gear g91 g01 z-.0 f10 g01 z-.05 g01 x-.5 y0 z0 a32.727272 f100; A axis 11 equal spaces 360 turn g01 z-.05 g00 x.5 y0 z0 a-32.727272 g01 z.1 g00 a32.727272 G90 m99 % o12;-----------------------------11 tooth Strt. Gear g91 g01 z-.0 f59 g01 z-.05 f59 g01 x-.5 y0 z0 g01 z-.05 f59 g00 x.5 y0 z0 g01 z.1 f50 g00 a32.727272; A axis 11 equal spaces 360 turn m99 %