
B-63944EN-1/02 PROGRAMMING 5.COMPENSATION FUNCTION
- 159 -
- Tool movement when the moving direction of the tool in a block which includes a
G40 (offset cancel) command is different from the direction of the workpiece
When you wish to retract the tool in the direction specified by X(U)
and Z(W) canceling the tool nose radius compensation at the end of
machining the first block in the figure below, specify the following :
G40 X(U) _ Z(W) _ I _ K _ ;
where I and K are the direction of the workpiece in the next block,
which is specified in incremental mode.
(G42)
G40 U_ W_ I_ K
;
G40
I, K
U, W
Moving direction of tool
Fig. 5.2.4 (i) If I and K are specified in the same block as G40
Thus, this prevents the tool from overcutting, as shown in Fig. 5.2.4
(j).
G40 U_ W
;
(G42)
G40
U,W
ctual move command
Fig. 5.2.4 (j) Case in which overcutting occurs in the same block as G40
The workpiece position specified by addresses I and K is the same as
that in the preceding block.
Specify I_K_; in the same block as G40. If it is specified in the same
block as G02 or G03, it is assumed to be the center of the arc.
G40 X_ Z_ I_ K_ ; Tool nose radius compensation
G02 X_ Z_ I_ K_ ; Circular interpolation
If I and/or K is specified with G40 in the cancel mode, the I and/or K
is ignored. The numeral is followed I and K should always be
specified as radius values.
G40 G01 X_ Z_ ;
G40 G01 X_ Z_ I_ K_ ; Offset cancel mode (I and K are ineffective.)