Professional Documents
Culture Documents
1st - T - Lect No.6 - CAM - Length Offest
1st - T - Lect No.6 - CAM - Length Offest
2
Tool length offset
• If more than one tool is being used, the first tool is set to zero on all
axis (XYZ). As the X and Y axis are set at the center of the cutter
they will be the same for all subsequent cutters.
• The Z axis zero point will however be different for each tool, being
dependent on the tool length.
Tool length offset
To make life easier the first tool is given an offset (or length) of zero
and subsequent tools are given a positive or negative offset based on
the difference in length from tool No. 1.
Tool length offset
Lets bring the first tool into contact with the work
This means that tool No. 1 has been set to a tool length
of 0
Tool length offset
Now tool 2 is brought into position. Its height is now
compared with Tool No. 1 and the tool length offset
entered in the tool data file. In this case it is -5.5, in other
words the tool No. 2 is 5.5 mm lower than tool No. 1 when
it is in contact with the work.
Tool length offset
Finally the third tool is brought into contact with the work
H= -30 mm
T05 M06
T05 new tool
length G43 H05
Radius G41 H35
Tool compensation G-Codes
Offset memory Type C
T05 M06
length T05 new tool
G43 H05
G41 D05
Radius
Example II
Solve the following with auto. tool compensation using
tool of 20 mm diameter at depth 10 mm, S2000, and
F10
Point X Y
1 0 0 3 4
2 0 100
3 50 170 5
4 140 170 2
5 190 120
6 190 40 6
7 150 0
1 7
Example II
Solve the following with auto. tool compensation using
tool of 20 mm diameter at depth 10 mm, S2000, and
F10
Absolute cord. N10 G90 G98
XY plane N20 G17
comp. off N30 G40
Metric units N40 G21 3 4
w.p. floating(0) N50 G54
Go to above 1 N60 G0 X-20 Y-20 Z20
Tool changing N70 T1 M6 G43 H1
1000rmp&feed N80 S1000 F10 M3 5
Dwn to depth 10 at (0) N90 G01 Z-10
2
Ramp Linear to (1) G41 D01 X0 Y0
18
2.Manual tool compensation
calculated
Original
profile
Offset
profile
(2,4)
(6.5,2)
(0,0) (6,0)
Manual tool compensation is time consuming and
feature.
solution.
Example No.1
Write a CNC program to mill the outline of the following
part using 0.5” end mill. The machine doesn't
5 1
Dim in inch
Solution Tool change Point
P0
Y
ΔY 2 ΔY
ΔX P2 P3 ΔX
4
ΔY ΔY
P4ΔX P5 ΔX
P1 1
P6
ΔY 5 X ΔY 1 Z
ΔX ΔX
XC = YC =
point X Y ΔX ΔY
X+ΔX Y+ΔY
1 0 0 -0.25 -0.25 -0.25 -0.25
2 0 4 -0.25 0.25 -0.25 4.25
3 2 4 0.25 0.25 2.25 4.25
4 2 1 0.25 0.25 2.25 1.25
5 5 1 0.25 0.25 5.25 1.25
6 5 0 0.25 -0.25 5.25 -0.25
ΔX : the cutter location shift in X direction
ΔY : the cutter location shift in Y direction
N050 Y4.25
N060 X2.25
N070 Y1.25
N080 X5.25
N090 Y-0.25
N100 X-0.25
N110 Z0.5
N130 M30
The tool path is regenerated according to
tool’s diameter
ΔX and ΔY are determined depending on the case
of the intersections of two surfaces.
Case No.1 : Two Perpendicular Surfaces
ΔX = ΔY = rc ΔY
ΔX
ΔY = rc ΔX
α
2/ α
ΔX = rc / tan(α/2) rc ΔY
α
Case No.3 : one vertical and other inclined
ΔX = rc
ΔY = rc / tan(α/2)
ΔX = rc
ΔY = rc / tan(α/2)
Example No.2
Write a CNC program to mill the outline of the following
part using 0.5” end mill. The machine doesn't
support the tool compensation option.
Dim in inch
Thick. = 1”
XC = YC =
point X Y ΔX ΔY
X+ΔX Y+ΔY
1 0 0 -0.25 -0.25 -0.25 -0.25
2 0 5 -0.25 0.25 -0.25 5.25
3 2 5 .09 0.25 2.09 5.25
4 5 2.48 0.25 0.116 5.25 2.6
5 5 0 0.25 -0.25 5.25 -0.25
G code Program
N010 G20 G90
N060 X2.09
N080 Y-0.25
N090 X-0.25
N100 Z1
N130 M30
Case No.5 : Line with arc
All Dim.
are in inch
point X Y ΔX ΔY XC YC I J