CNC Project MIME2650 Summer 2020
CNC Project MIME2650 Summer 2020
%
O02002 (SubProgram Pocket);
G90 G01 Y-2.5 (This is the first move of the G150 Pocket Canned Cycle);
X.5 (2) ; (The next 5 lines outline the parameters of the pocket.)
Y-3.5 (3) ;
X3.5 (4) ;
Y-.5 (5) ;
X2. (6) ;
M99 (End of subprogram return to the Main Program);
%
When you add a subprogram to your main program you just enter down two or three lines and
start the subprogram like the example above. So both the main and subprograms are
essentially in the same O0205 address.
Assignment
For this assignment, you are asked to write a G-Code program for the part drawing below. The
workpiece measures 4” x 4” x 5/8” thick. We will use Work Offset G57, where the X0.0, Y0.0,
and Z 0.0 coordinates are in the upper left corner of the part drawing shown below. The part
has a pocket that is 0.375” deep with ¼” radius corners and four ¼” holes at locations shown
on the drawing. See if you can modify the sample program above to machine the part below.
There are four ¼” holes that must be drilled as well. Tool changes start with M06 and the T#.
Available tooling in the Haas milling machine:
• T1 #4 Center Drill
• T2 5/16” Drill
• T3 ¾” x 60Degree Chamfer Tool
• T4 3/8-16 Plug Tap
• T5 ¼” NC Drill
• T6 1/8” Ball Nose End Mill
• T7 ¼” Ball Nose End Mill
• T8 ½” Flat bottom End Mill Cutter
• T9 Empty Space No Tool
• T10 1/8” Jobber Drill