12. Tool Compensation Functions
12.5 Three-dimensional Tool Radius Compensation ; G40/G41,G42
219
Command format
Command the compensation No. D and plane normal line vector (I, J, K) in the same block as the
three-dimensional tool radius compensation command G41 (G42).
If only one or two axes are commanded, the normal tool radius compensation mode will be applied.
(When setting "0" to the axes, this command is valid.)
G41(G42) X__ Y__ Z__ I__ J__ K__ D__ ;
Three-dimensional tool radius compensation
starts.
- Refer to (Example 1) and (Example 2).
X__ Y__ Z__ I__ J__ K__;
:
New plane normal line vector are commanded in
the compensation mode.
- Refer to (Example 3) to (Example 7).
G40; (or D00;)
G40 X__ Y__ Z__;
(or X__ Y__ Z__ D00;)
Three-dimensional tool radius compensation is
canceled.
- Refer to (Example 8) and (Example 9).
G41
G42
G40
X, Y, Z
I, J, K
D
: Three-dimensional tool radius compensation command (+ direction)
: Three-dimensional tool radius compensation command (- direction)
: Three-dimensional tool radius compensation cancel command
: Movement axis command compensation space
: Plane normal line vector
: Compensation No.
(Note that when "D00" is issued, three dimensional tool radius compensation
will be canceled even if G40 is not commanded.)
Compensation amount:
Compensation
G code
+ –
D00
G40 Cancel Cancel
Cancel
G41
I, J, K direction
Reverse direction of I, J, K
Cancel
G42
Reverse direction of I, J, K
I, J, K direction
Cancel
Detailed description
(Example)
G17
G41 Xx Yy Zz Ii Jj Kk ;
XYZ space
G17 ;
G41 Yy Ii Jj Kk ;
XYZ space
G17 V ;
G41 Xx Vv Zz Ii Jj Kk ;
XVZ space
G17 W ;
G41 Ww Ii Jj Kk ;
XYW space
G17 ;
G41 Xx Yy Zz Ww Ii Jj Kk ;
XYZ space
G17 W;
G41 Xx Yy Zz Ww Ii Jj Kk ;
XYW space
G17 ;
G41 Ii Jj Kk ;
XYZ space
The compensation space is determined by the
axis address commands (X, Y, Z, U, V, W) of the
block where the three-dimensional tool radius
compensation starts.
Here, U, V and W are each the additional axes for
the X, Y and Z axis.
If the X axis and U axis (Y and V, Z and W) are
commanded simultaneously in the
three-dimensional tool radius compensation start
block, the currently commanded plane selection
axis will have the priority.
If the axis address is not commanded, it will be
interpreted that the X, Y and Z axes are
commanded for the coordinate axes.
G17 U ;
G41 Ii Jj Kk ;
UYZ space