You are on page 1of 6

Part Programing

Rules
• N-WORD =sequence number
• G-Word = Preparatory word
• Coordinates
• F- Word = Feed-rate
• S-Word = Spindle speed
• T- word =Tool selection
• M word = miscellaneous command
Example 01
1
2
10 dia., 6 holes

P3 P4
P2

100
125 P6 P5
60 P1
40
25
P0
40
100
125
160
200
225
NC part program code Comments

N001 G21 G90 G92 X0 Y0 Z010.0; Define origin of axes.

N002 G00 X040.0 Y025.0; Rapid move to first hole location.

N003 G01 G95 Z-20.0 F0.06 S3183 M03; Drill first hole.

N004 G01 Z010.0; Retract drill from hole.

N005 G00 Y100.0; Rapid move to second hole location.

N006 G01 G95 Z-20.0 F0.06; Drill second hole.

N007 G01 Z010.0; Retract drill from hole.

N008 G00 X100.0; Rapid move to third hole location.

N009 G01 G95 Z-20.0 F0.06; Drill third hole.

N010 G01 Z010.0; Retract drill from hole.

N011 G00 X160.0; Rapid move to fourth hole location.

N012 G01 G95 Z-20.0 F0.06; Drill fourth hole.

N013 G01 Z010.0; Retract drill from hole.

N014 G00 X125.0 Y060.0; Rapid move to fifth hole location.

N015 G01 G95 Z-20.0 F0.06; Drill fifth hole.

N016 G01 Z010.0; Retract drill from hole.

N017 G00 X200.0 Y040.0; Rapid move to sixth hole location.

N018 G01 G95 Z-20.0 F0.06; Drill sixth hole.

N019 G01 Z010.0; Retract drill from hole.

N020 G00 X0 Y0 M05; Rapid move to target point, stop spindle rotation.

N021 M30; End of program, stop machine.

You might also like