Tool offsets
8.8 Tool radius compensation (G40, G41, G42)
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
8-25
N10 G0 Z100 ;Retract to tool change point
N20 G17 T1 M6 ;Change tool
N30 G0 X0 Y0 Z1 M3 S300 D1 ;Call tool offset values, ;select length
compensation
N40 Z-7 F500 ;Tool infeed
N50 G41 X20 Y20 ;Activate tool radius compensation, tool
;operates on left-hand side of contour
N60 Y40 ;Mill contour
N70 X40 Y70
N80 X80 Y50
N90 Y20
N100 X20
N110 G40 G0 Z100 M30 ;Retract tool, end of program
Example 1 turning
Z
X
Ø 20
Ø 100
20
20
1
N20 T1 D1
N30 G0 X100 Z20
N40 G42 X20 Z1
N50 G1 Z-20 F0.2
Only tool length compensation is activated in block N20. X100 Z20 is approached without
compensation in block N30.
In block N40, the radius compensation is activated, point X20/Z1 is approached with
compensation.