
12. Tool Compensation Functions
12.5 Three-dimensional Tool Radius Compensation ; G40/G41,G42
225
(12) Machine coordinate system selection
(a) For the absolute command, all axes will be temporarily canceled at the commanded
coordinate position.
D1=10.
G90 ;
N1 G41 D1 X-10. Y-20. Z-10. I-5.
J-5. K-5. ;
N2 X-30. Y-30. Z-20. ;
N3 X-50. Y-20. Z-10. ;
N4 G53 Y0 ;
N1( -10.000, -20.000, -10.000 )
N1( -15.773, -25.773, -15.773 )
N2( -30.000, -30.000, -20.000 )
N2( -35.773, -35.773, -25.773 )
N3( -50.000, -20.000, -10.000 )
N3( -55.773, -25.773, -15.773 )
N4( -50.000, 0.000, -10.000 )
N4( -50.000, 0.000, -10.000 )
*Upper:
Program position
Lower:
Position after compensation
Program path
Path after compensation
Program path
Path after
compensation
X
X
Y
Z
-50. -30.
-20.
-10.
-30.
-20.
-10.
-20.
(b) For the incremental command, the axis will move by the amount obtained by subtracting
each axis vector from the incremental movement amount.
(The compensation amount is temporarily canceled.)
D1=10.
G91 ;
N1 G41 D1 X-10. Y-20. Z-10. I-5.
J-5. K-5. ;
N2 X-20. Y-10. Z-10. ;
N3 X-20. Y10. Z10. ;
N4 G53 Y20. ;
N1( -10.000, -20.000, -10.000 )
N1( -15.773, -25.773, -15.773 )
N2( -30.000, -30.000, -20.000 )
N2( -35.773, -35.773, -25.773 )
N3( -50.000, -20.000, -10.000 )
N3( -55.773, -25.773, -15.773 )
N4( -50.000, 0.000, -10.000 )
N4( -50.000, 0.000, -10.000 )
*Upper:
Program position
Lower:
Position after compensation
X
X
Y
Z
-50. -30.
-20.
-10.
-30.
-20.
-10.
-20.
Program path
Path after compensation
Program path
Path after
compensation