"NC" or "G" Code
(For the Group's Lab Specimen)
% Start of program
O0123 Program number
T3 M6 S800 Get tool in slot T3, set spindle to 800 RPM
G00 G90 X0.50 Y0.75 Rapid move in absolute coordinates to (0.5, 0.75)
G91 G43 Z0. H3 M3 Incremental coordinates set home position taking Tool length (stored in register H3) into account and start spindle in forward rotation
G92 Z0.1 M8 Reset Z coordinate to 0.1 and start coolant
G90 G01 Z-0.4 F3. Drill first hole at a feedrate of 3 in./min.
G01 Z0.1 Return to clearance plane
G00 X5.5 Rapid move to (5.5, 0.75)
G01 Z-0.4 F3. Drill second hole at a feedrate of 3 in./min.
G01 Z0.1 Return to clearance plane
G00 Y3.25 Rapid move to (5.5, 3.25)
G01 Z-0.4 F3. Drill third hole at a feedrate of 3 in./min.
G01 Z0.1 Return to clearance plane
G00 X0.5 Rapid move to (0.5, 3.25)
G01 Z-0.4 F3. Drill fourth hole at a feedrate of 3 in./min.
G01 Z0.1 Return to clearance plane
G00 X1.4875 Y2. Rapid move to (1.4875, 2.0)
G01 Z-0.05 F3. Drill to depth of .05 inches at a feedrate of 3 in./min.
G02 X4.1525 Y2. R1.5125 Cut clockwise to (4.5125, 2.0) along radius 1.5125
G02 X1.4875 Y2. R1.5125 Cut clockwise to (1.4875, 2.0) along radius 1.5125
G01 X1.5125 Y2. Cut to (1.5125, 2.0)
G02 X4.4875 Y2. R1.4875 Cut clockwise to (4.4875, 2.0) along radius 1.4875
G02 X1.5125 Y2. R1.4875 Cut clockwise to (1.5125, 2.0) along radius 1.4875
G01 X1.4375 Y1.0875 Cut to (1.4375, 1.0875)
G01 Y2.5625 Cut to (1.4375, 2.5625)
G01 X4.9125 Cut to (4.9125, 2.5625)
G01 Y1.4375 Cut to (4.9125, 1.4375)
G01 X1.0875 Cut to (1.0875, 1.4375)
G01 Y2. Cut to (1.0875, 2.0)
G01 X4.9125 Cut to (4.9125, 2.0)
G01 Y1.71875 Cut to (4.9125, 1.71875)
G01 X1.0875 Cut to (1.0875, 1.71875)
G01 Y2.28125 Cut to (1.0875, 2.28125)
G01 X4.9125 Cut to (4.9125, 2.28125)
G01 Z0.1 M9 Move to clearance plane, stop coolant
G91 G28 Z0. Y0. M19 Change to incremental coordinates, move to reference point, stop spindle
M30 Stop program
% End of program
  • Introduction to CAD/CAM
  • Computer Numerical Control
  • Analysis of Generated Parts
  • Back to Project 5 Homepage