CNC Programming Workbook Mill-Generic-lesson-10
CNC Programming Workbook Mill-Generic-lesson-10
WORKBOOK
LESSON-10
CUTTER COMPENSATION
LESSON-10 - G40, G41, & G42 CUTTER COMPENSATION
Cutter Compensation is used to offset the center of the cutter and move the cutter either to
the left or right the distance of the cutter radius. When cutting angled geometry, substantial
computations are required to determine the center of the cutter. Using Cutter Compensation, you
can program the part as if the center of the cutter will be travelling along the geometry.
G41 will action cutter compensation left. The tool is moved to the left of the programmed path to
compensate for the radius of the tool. A Dnn must also be programmed to select the correct tool
size from the DIAMETER/RADIUS offset display register.
G42 will action cutter compensation right. The tool is moved to the right of the programmed path
to compensate for the size of the tool.
G41
G41
G41 Left of the Line G42 Right of the Line
G41 : Tool is moved to the left of the profile (e.g. Outside Profile shown as above)
G42 : Tool is moved to the right of the profile (e.g. Inside Profile shown as above)
Lesson 10 - 2
LESSON-10 - G40, G41, & G42 CUTTER COMPENSATION
The Cutter Compensation (G41) will reflect the actual part geometry (O, P1, P2..) instead of Cutter
Centers (Point B,C,D & E)
Lesson 10 - 3
LESSON-10 - CNC - PART #13
Lesson 10 - 4
LESSON-10 - CNC - PART #13
The Machining Process
Ø.750” Endmill - Tool # 5
Machine the profile and pocket using cutter compensation
0.750” diameter end mill Spindle Speed = 2100 Feed rate = 25 IPM
Ø.375” Spot Drill - Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Ø.201” Drill - Tool # 8
0.201” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Ø.25”-20 UNC Tap - Tool # 9
0.250-20 UNC Tap Spindle Speed = 1000 Feed rate = 50 IPM
Lesson 10 - 5
LESSON-10 - CNC - PART #13
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the lower left corner of the part
• WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE TWO HOLES
G90 X Y
1
2
Lesson 10 - 6
LESSON-10 - CNC - PART #13
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART - CONTOUR
X0Y0 is at the lower left of the part
Lesson 10 - 7
LESSON-10 - CNC - PART #13
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART - POCKET
X0Y0 is at the lower left of the part
Lesson 10 - 8
TAPPING CANNED CYCLE G84
This G84 code is used for tapping pre-drilled holes. When the bottom of the hole is reached the
spindle rotates in the reverse direction and retracts from the hole to the R-plane at the
programmed feed rate.
After the G84 tapping operation is completed, either a G98 or G99 command controls the return
height — G99 returns the tool to the R-plane; G98 returns the tool to the initial height.
The feed rate and the spindle speed calculation for the tapping cycle are important since there is a
direct relationship between the spindle speed and the lead of the tap.
For Example Feed Calculation:
Spindle Speed = 1000 RPM
¼-20 UNC Tap Lead = 1/20 = 0.05
Feed rate = 0.05 x 1000 = 50 Inchers Per Minute
Lesson 10 - 9
LESSON-10 - CNC - PART #13
CREATE THE PROGRAM TO MACHINE THE PART
The Machining Process
Ø.750” Endmill - Tool # 5
Machine the profile and pocket using cutter compensation
0.750” diameter end mill Spindle Speed = 2100 Feed rate = 25 IPM
Ø.375” Spot Drill - Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Ø.201” Drill - Tool # 8
0.201” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Ø.25”-20 UNC Tap - Tool # 9
0.201” diameter Drill Spindle Speed = 1000 Feed rate = 50 IPM
%
O888
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
Lesson 10 - 10
LESSON-10 - CNC - PART #13 - Continued
Lesson 10 - 11
LESSON-10 - CNC - PART #14
Lesson 10 - 12
LESSON-10 - CNC - PART #14
The Machining Process
Ø.750” Endmill - Tool # 5
Machine the profile and pocket using cutter compensation
0.750” diameter end mill Spindle Speed = 2100 Feed rate = 25 IPM
Ø.375” Spot Drill - Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Ø.201” Drill - Tool # 8
0.201” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Ø.25”-20 UNC Tap - Tool # 9
0.201” diameter Drill Spindle Speed = 1000 Feed rate = 50 IPM
Lesson 10 - 13
LESSON-10 - CNC - PART #14
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the lower left of the part
• WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE TWO HOLES
G90 X Y
1
2
Lesson 10 - 14
LESSON-10 - CNC - PART #14
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART - CONTOUR
X0Y0 is at the lower left of the part
Lesson 10 - 15
LESSON-10 - CNC - PART #14
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART - POCKET
X0Y0 is at the lower left of the part
Lesson 10 - 16
LESSON-10 - CNC - PART #14
CREATE THE PROGRAM TO MACHINE THE PART
The Machining Process
Ø.750” Endmill - Tool # 5
Machine the profile and pocket using cutter compensation
0.750” diameter end mill Spindle Speed = 2100 Feed rate = 25 IPM
Ø.375” Spot Drill - Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Ø.201” Drill - Tool # 8
0.201” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Ø.25”-20 UNC Tap - Tool # 9
0.201” diameter Drill Spindle Speed = 1000 Feed rate = 50 IPM
%
O003
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
Lesson 10 - 17
LESSON-10 - CNC - PART #14 - Continued
Lesson 10 - 18