CNC Project MIME2650 Summer 2020

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

CNC Project

MIME2650 Summer 2020


In the provided instruction, we used a G83 canned Auto cycle for Peck Drilling. Now we are
introducing you to another Canned Auto cycle “G150”, General Purpose Pocket Milling. The
G150 command has the following parameters to fill in before you can start milling.
G150
 D – Tool radius/diameter offset selection
 F – Feedrate
 I – X-Axis cut Increment (Positive Value)
 J – Y –Axis cut increment (Positive Value)
 K – Finish Pass Amount (Positive Value)
 P – Subprogram number that defines pocket geometry
 Q – Incremental Z-Axis cut depth per pass (Positive Value)
 R – Position of the Rapid R-Plane location
 S – Optional Spindle Speed
 X – X Start Position
 Y – Y Start Position
 Z – Finish Depth of the Pocket
In the drawing above we see that the G57, (Work Offset) is located in the very center of the
part. We will show the tool path in absolute positioning.
A sample Square pocket program would look something like the one below.
Comments inside of the ( ) are for your information only. These comments help the operator
know what is happening on each line of command.
%
O00205 (Square Pocket Example) ;
M06 T8 (Tool #1 is a 1/2” diameter end mill cutter) ;
G57 G00 G90 G17 ; (Work Offset, Rapid moves, Absolute, XY Plane)
X0.Y-1.5 (Start Position) ;
M03 S1500 ; (Spindle on Clockwise Rotation)
G43 H08 ; (Cutter Length Offset for Tool #8)
Z.25 (1/4” above the top of the part) ;
G01 Z.25 F10. ; (Feed down to the surface of the part at 10”/minute)
G150 P02002 Z-.375 Q.1 R.25 J.25 K.01 DO8 G41 F10. (P02002 = SubProgram Address, Z Max
Depth of the pocket, Q = Z amount down each pass, R = Corner Radius, J = Y-Cut incremental, K
= Finish pass, D = Tool Radius offset, G41 = Cutter Compt Left, F = Feed rate) ;
G40 G01 X2. Y-1.5 ; (Cancel Cutter Comp, move to new XY position)
G00 Z2. ; (Rapid the Z to two inches above the part)
G49 Y0. Z0. ; (cancel G43 and send the tool to the new Y&Z locations)
M30 ; (End of Program reset to line #1)
%

%
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

You might also like