Professional Documents
Culture Documents
NC Machining Technique09
NC Machining Technique09
Zhang Lin
Cellphone:15150618185
Email: zhanglin05@nuaa.edu.cn
College of Mechanical and Electrical Engineering
2020/10/14 1
Syllabus
2020/10/14 2
Chapter 9 – Tool Radius Compensation
KEY TERMS:
☆ Diameter offset
☆ Vertex
☆ Tangent
☆ Tool radius compensation
2020/10/14 3
Chapter 9 – Tool Radius Compensation
LEARNING OBJECTIVES:
After reading this chapter, you should be able to
2020/10/14 4
Chapter 9 – Tool Radius Compensation
2020/10/14 5
Chapter 9 – Tool Radius Compensation
2020/10/14 6
Chapter 9 – Tool Radius Compensation
2020/10/14 7
Chapter 9 – Tool Radius Compensation
2020/10/14 8
Chapter 9 – Tool Radius Compensation
2020/10/14 9
Chapter 9 – Tool Radius Compensation
2020/10/14 10
Chapter 9 – Tool Radius Compensation
Figure 9-2
Several calculations may be
needed to find the cutter
location when a line
intersects an arc.
2020/10/14 11
Chapter 9 – Tool Radius Compensation
2020/10/14 12
Chapter 9 – Tool Radius Compensation
2020/10/14 13
Chapter 9 – Tool Radius Compensation
Figure 9-3 Reference points can be found by creating and then solving a
triangle on the workpiece
2020/10/14 14
Chapter 9 – Tool Radius Compensation
2020/10/14 15
Chapter 9 – Tool Radius Compensation
2020/10/14 16
Chapter 9 – Tool Radius Compensation
2020/10/14 17
Chapter 9 – Tool Radius Compensation
2020/10/14 18
Chapter 9 – Tool Radius Compensation
2020/10/14 19
Chapter 9 – Tool Radius Compensation
2020/10/14 20
Chapter 9 – Tool Radius Compensation
2020/10/14 21
Chapter 9 – Tool Radius Compensation
Figure 9-5 A workpiece with one angular feature requires the tool be
positioned tangent to the feature to be machined.
2020/10/14 22
Chapter 9 – Tool Radius Compensation
2020/10/14 23
Chapter 9 – Tool Radius Compensation
2020/10/14 24
Chapter 9 – Tool Radius Compensation
2020/10/14 25
Chapter 9 – Tool Radius Compensation
2020/10/14 26
Chapter 9 – Tool Radius Compensation
2020/10/14 27
Chapter 9 – Tool Radius Compensation
2020/10/14 28
Chapter 9 – Tool Radius Compensation
2020/10/14 29
Chapter 9 – Tool Radius Compensation
2020/10/14 30
Chapter 9 – Tool Radius Compensation
2020/10/14 31
Chapter 9 – Tool Radius Compensation
2020/10/14 32
Chapter 9 – Tool Radius Compensation
2020/10/14 33
Chapter 9 – Tool Radius Compensation
2020/10/14 34
Chapter 9 – Tool Radius Compensation
2020/10/14 35
Chapter 9 – Tool Radius Compensation
2020/10/14 36
Chapter 9 – Tool Radius Compensation
0.500
sin 60
Z
0.500
0.866
Z
Z 0.577
2020/10/14 37
Chapter 9 – Tool Radius Compensation
2020/10/14 38
Chapter 9 – Tool Radius Compensation
2020/10/14 39
Chapter 9 – Tool Radius Compensation
2020/10/14 40
Chapter 9 – Tool Radius Compensation
2020/10/14 41
Chapter 9 – Tool Radius Compensation
2020/10/14 42
Chapter 9 – Tool Radius Compensation
Then we solve the leg that runs between the vertex and
point of tangency (labeled Z in the drawing):
1.00
tan 52.5
Z
1.00
1.3032
Z
Z 0.7673
2020/10/14 43
Chapter 9 – Tool Radius Compensation
X-Leg: X
cos 75
0.7673
X 0.1986
y
Y-Leg: sin 75
0.7673
y 0.7412
2020/10/14 44
Chapter 9 – Tool Radius Compensation
2020/10/14 45
Chapter 9 – Tool Radius Compensation
X-Leg: X
cos15
0.75
X 0.7244
y
Y-Leg: sin15
0.75
y 0.1941
2020/10/14 46
Chapter 9 – Tool Radius Compensation
2020/10/14 47
Chapter 9 – Tool Radius Compensation
2020/10/14 48
Chapter 9 – Tool Radius Compensation
2020/10/14 49
Chapter 9 – Tool Radius Compensation
2020/10/14 50
Chapter 9 – Tool Radius Compensation
2020/10/14 51
Chapter 9 – Tool Radius Compensation
2020/10/14 52
Chapter 9 – Tool Radius Compensation
2020/10/14 53
Chapter 9 – Tool Radius Compensation
2020/10/14 54
Chapter 9 – Tool Radius Compensation
Angle α: 0.75
sin
1.50
sin 0.500
30
X 1.2990
2020/10/14 55
Chapter 9 – Tool Radius Compensation
2020/10/14 56
Chapter 9 – Tool Radius Compensation
2020/10/14 57
Chapter 9 – Tool Radius Compensation
2020/10/14 58
Chapter 9 – Tool Radius Compensation
2020/10/14 59
Chapter 9 – Tool Radius Compensation
2020/10/14 60
Chapter 9 – Tool Radius Compensation
2020/10/14 61
Chapter 9 – Tool Radius Compensation
2020/10/14 62
Chapter 9 – Tool Radius Compensation
2020/10/14 63
Chapter 9 – Tool Radius Compensation
Figure 9-13
The decision to use
G41 or G42 will be
determined by the
direction of cut.
2020/10/14 64
Chapter 9 – Tool Radius Compensation
G-code Definition
G41 Compensate left
G42 Compensate right
G40 Cancel compensation
D Diameter offset number (stored in register)
2020/10/14 65
Chapter 9 – Tool Radius Compensation
2020/10/14 66
Chapter 9 – Tool Radius Compensation
Figure 9-14
An example of cutter compensation. The tool is automatically
offset to the left side of the toolpath between P1 and P2.
2020/10/14 67
Chapter 9 – Tool Radius Compensation
2020/10/14 68
Chapter 9 – Tool Radius Compensation
2020/10/14 69
Chapter 9 – Tool Radius Compensation
Figure 9-15
Most controls will automatically roll around the corners when
using cutter compensation.
2020/10/14 70
Chapter 9 – Tool Radius Compensation
☆ Line N130 directs the tool to the lower corner of the workpiece.
Many controls will automatically roll the tool around the corner in
an arc. This prevents excessive travel beyond the workpiece
boundary
☆ Line N140 terminates the automatic compensation
2020/10/14 71
Chapter 9 – Tool Radius Compensation
Figure 9-16
The actual offset amount is dictated by the value that has been
entered in the tool diameter registry. This value is often
manipulated to control the feature size.
2020/10/14 73
Chapter 9 – Tool Radius Compensation
2020/10/14 74
Chapter 9 – Tool Radius Compensation
2020/10/14 75
Chapter 9 – Tool Radius Compensation
2020/10/14 76
Chapter 9 – Tool Radius Compensation
Figure 9-17
Cutter compensation cannot be initiated with circular interpolation (left).
Use a linear move to the start of the arc to initiate compensations and
then program the path to the tangent points (right).
2020/10/14 77
Chapter 9 – Tool Radius Compensation
2020/10/14 78
Chapter 9 – Tool Radius Compensation
Program Code Explanation
Centerline for Profile in Figure 9-12
Example 9-1 Toolpath programmed on
%
O0901 (CHAPTER 9 EX 1)
N10 G20 G40 G49 G54 G80 G90 G98
N20 M06 T05 (.500 END MILL) Tool change sequence
N30 G43 H05
N40 M03 S1200
N50 G00 X-.5 Y-.5 Positioning move
N60 G00 Z.2
N70 G01 Z-.25 F10.0
N80 G01 X.5 Y-.5
N90 G03 X.7165 Y-.375 I0.0 J.25 First arc
N100 G02 X1.799 Y.25 I1. 0825 J-. 625 Second arc
N110 G01 X2.5 Y.25
N120 G01 Z.2
N130 G91 G28 Z2.0
N140 M05
N150 M30
%
2020/10/14 79
Chapter 9 – Tool Radius Compensation
Program Code Explanation
%
Automatic Tool Radius Compensation
Example 9-2 Toolpath programmed with
O0902 (CHAPTER 9 EX 2)
N10 G20 G40 G49 G54 G80 G90 G98
N20 M06 T05 (.500 END MILL) Tool change sequence
N30 G43 H05
N40 M03 S1200
N50 G00 X-.5 Y-.25 Positioning move
N60 G00 Z.2
N70 G01 Z-.25 F10.0
N80 G41 D05 G01 X-0.0 Y-.75 Lead in and invoke compensation
N90 G01 X.5 Y-.75
N100 G03 X.933 Y-.5 I0.0 J.5 First arc
N110 G02 X1.799 Y0.0 I0. 866 J-.500 Second arc
N120 G01 X2.0 Y0.0
N130 G40 G01 X2.5 Y.5 Lead out and cancel compensation
N140 G01 Z.2
N150 G91 G28 Z2.0
N160 M05
N170 M30
2020/10/14 80
%
Chapter 9 – Tool Radius Compensation Program Code Explanation
%
O0903 (CHAPTER 9 EX 3)
N10 G20 G40 G49 G54 G80 G90 G98
Compensation for Profile in Figure 9-20
Example 9-3 Toolpath programmed with Cutter
N20 M06 T05 (.500 END MILL) Tool change sequence
N30 G43 H05
N40 M03 S1200
N50 G00 X.5 Y2.25 Positioning move
N60 G00 Z.2
N70 G01 Z-.25 F10.0
N80 G41 D05 G01 X1.5 Y1.5 Lead in and invoke compensation
N90 G02 X1.5 Y0.0 I0.0 J-.75
N100 G01 X.25 Y0.0
N110 G02 X0.0 Y.25 I0.0 J.25
N120 G01 X0.0 Y1.25
N130 G02 X.25 Y1.5 I.25 J0.0
N140 G01 X1.5 Y1.5
N150 G40 G01 X2.25 Y2.25 Lead out and cancel compensation
N160 G01 Z.2
N170 G91 G28 Z2.0
N180 M05
N190 M30
2020/10/14 81
%
Chapter 9 – Tool Radius Compensation Program Code Explanation
%
O0904 (CHAPTER 9 EX 4)
N10 G20 G40 G49 G54 G80 G90 G98
Finish Pass seen in Figure 9-21
Example 9-4 Toolpath programmed with
N20 M06 T05 (.500 END MILL) Tool change sequence
N30 G43 H05
N40 M03 S1200
N50 G00 X1.5 Y1.0 Positioning move
N60 G00 Z.2
N70 G01 Z-.5 F10.0
N80 G41 D05 X1.0 Y.75 Move to tangent point of arc and invoke compensation
N90 G03 X1.5 Y.25 I.5 J0.0 Arc Lead in under compensation
N100 G01 X2.0 Y.25
N110 G03 X2.0 Y1.75 I0.0 J.75
N120 G01 X1.0 Y1.75
N130 G03 X1.0 Y.25 I0.0 J-.75
N140 G01 X1.5 Y.25
N150 G03 X2.0 Y075 I0.0 J.5 Arc lead out
N160 G40 G01 X1.5 Y1.0 Move back to center and cancel compensation
N170 G01 Z.2
N180 G91 G28 Z2.0
N190 M05
2020/10/14 82
N200 M30
Chapter 9 – Tool Radius Compensation
Figure 9-19
Summary of calculations for Programming Examples 9-1 and 9-2.
2020/10/14 83
Chapter 9 – Tool Radius Compensation
Figure 9-20
Workpiece produced by Programming Example 9-3.
2020/10/14 84
Chapter 9 – Tool Radius Compensation
Figure 9-21
Workpiece produced by Programming Example 9-4.
2020/10/14 85
Chapter 9 – Tool Radius Compensation
Chapter Summary
☆ Manual and automatic tool radius compensation (cutter
compensation) are used to offset the cutting tool in order
to machine the correct features of the workpiece
2020/10/14 86
Chapter 9 – Tool Radius Compensation
Chapter Summary
☆ Automatic compensation allows the operator to control
the size of the features by adjusting the diameter offset
value for the tool in the register. Each tool will have its
own offset number, which is specified the D-word. A
decrease in the offset value will cause the tool to move
closer to the programmed path, and an increase in the
offset value cause the tool to move farther away from the
programmed path
2020/10/14 87
Chapter 9 – Tool Radius Compensation
Chapter Summary
☆ Automatic compensation is invoked with a linear lead-in
move that gives the tool enough room to switch from a
centerline coordinate to tangent coordinates. The length
of this lead-in move must be at least equal to the radius
and at an angle of 90°or greater. Compensation cannot
be initiated with an arc
2020/10/14 88
Chapter 9 – Tool Radius Compensation
Exercises
1. What does it means to manually compensate for the radius of the
cutting tools?
2020/10/14 89
Chapter 9 – Tool Radius Compensation
Exercises
6. Evaluate the following two situations and determine how you
would correct the problem by adjusting the diameter
compensation value.
a) the internal pocket we have just milled is measured and found
to be 0.010 too small.
b) the external pocket we have just milled is measured and
found to be 0.005 too small.
2020/10/14 90