CNC Milling
CNC Milling
Milling only:
Retract from the depth (along Z-axis only) after the radius offset has been
canceled
Make sure the cutter radius offset corresponds to the work plane selected
END MILLS
P3
P4
G91 G01 X0 Y0
X50.0 (with P1 as previous origin) to P2
P1 P2 X20.0 Y35.0 (with P2 as previous origin) to P3
X-25.0
(with P3 as previous origin) to P4; On P3 mark X,Y axis,
so, X will be –ve value from P3 to P4
X-45.0 Y45.0
(with P4 as previous origin) to P5; On P4 mark X,Y axis,
so, X will be –ve value & Y will be +ve value from P4 to P5
Y-80.0
(with P5 as previous origin) to P1; On P5 mark X,Y axis,
so, X will be zero & Y will be - ve value from P5 to P1
M30
CNC Mill G02 G03 Circular Interpolation Programming Example
CNC mill program to ONLY show the use of
• G02 Circular Interpolation CW
• G03 Circular Interpolation CCW
(Without using end mill diameter/offset G41 or G42/ Plane selection G17)
Cutter/end mill
Part origin
Y -20
x -20
N15 C0 (C is used for rotary table) This block may be skipped / A simple CNC mill can also run this program
N35 G42 X0 Y0 (Applying cutter compensation RIGHT (ACW) from part origin)
N45 Y30
N50 X0
N55 Y0
N70 Y100
N75 M30
G41: Left cutter
radius
compensation
i.e. cutter path
shall be 0.250”
shift from
programmed
path/contour
automatically.
Slot size: 3”× 2”
1”
4”
1” 2” 5”
(0,0,0) 3”
5”
%
:1001
N5 G90 G20 (Absolute coordinates and inch)
N10 M06 T3 (Tool change and Tool #3)
N15 M03 S1200 (Spindle on CW at 1200 rpm0
N20 G00 X1 Y1 (Rapid move to (X1, Y1))
N25 Z0.125 (Rapid move to Z0.125)
N30 G01 Z-0.125 F5 (Feed into part 0.125 at 5 ipm)
N35 X4 F20 (Feed across to 4 in. at 20 ipm)
N40 Y3 (Feed up 3 in.)
N45 X1 (Feed back 4 in.)
N50 Y1 (Feed down 3 in.)
N55 G00 Z1 (Rapid out to Z)
N60 X0 Y0 (Rapid to home position)
N65 M05 (Turns spindle off)
N70 M30 (End of program)
Example with cutter compensation LEFT (G41)
P3 P4
P2 C1 C2
P5
P7
P6
P9 P1
P8
P1 to P2
P2 to P3 (Destination point)
P3 to P4 ( Y is unchanged)
P4 to P5 ( X is unchanged)
P5 to P6 (Destination point)
P6 to P7
P7 to P8 ( X is unchanged)
P8 to P9 ( Y is zero)
Start point (-0.625, -0.625)
Cutter at Safe height -
- at start point
Cutter path without Compensation (here G41)
+X
-Y
N20 Z5
N25 G01 Z0
N30 Z-5
N35 G42 X0 Y0
N40 X40 Y0 U5
N60 X0 Y50 U6
N65 X0 Y0