O00018 ; :Letter O and a five digit program number
(CNC LATHE PROGRAM EXAMPLE) ; :Comment statement between parenthesis N1 (Rough O.D.) ; :First operation G28 ; :Return to machine zero for a tool change, cancel tool offset T101 (O.D. TOOL x .031 TNR) ; :Select tool 1 with offset 1 G50 S2600 ; :Set spindle speed max. clamp 2600 RPM G97 S414 M03 ; :Cancel CSS, 415 spindle speed, on forward G54 G00 X3.6 Z0.1 MO8 ; :Work offset, rapid X, Z axes, coolant on G96 S390 ; :CSS on at 390 SFM, coolant on G00 Z0.005 ; :Rapid to .005 from the end of part G01 X-0.063 F0.005 ; :Rough face end of part G00 X3.6 Z0.1 ; :Rapid to start point above part G71 P10 Q20 U0.01 W0.005 D0.1 F0.01 ;:Rough turning G71 canned cycle using the path defined :between N10 thru N20, leaving .010 stock on the X-axis :diameters, .005 stock on the linear faces, with 0.1 depth :of cut each pass, feeding .010 per revolution. N10 G42 G00 X0.82 ; :N10 is the starting block called by the P block in the G71 G01 Z0. F0.004 ; :line that difines in it the geometery to rough out. 19 JANUARY 2005 PROGRAMMING