12. Tool Compensation Functions
12.4 Tool Radius Compensation
186
Changing and holding of compensation vector
The compensation vector can be changed or held during tool radius compensation by using the
G38 command.
(1) Holding of vector:
When G38 is commanded in a block having a movement command, the
point of intersection will not be calculated at the program end point, and
instead the vector of the previous block will be held.
G38 Xx Yy ;
This can be used for pick feed, etc.
(1) Holding the inside compensation vector
(2) Holding the outside compensation acute angle
Program path
N11G1Xx11;
N12G38Xx12Yy12;
N13G40Xx13;
Tool center path
r1: Vector at N11-N12 block intersection calculation
N11
N12
N13
r1
r1
Program path
N11G1Xx11Yy11;
N12G38Xx12Yy12;
N13G40Xx13;
Tool center path
N11
N12
N13
r1
r1
r1: Vector at N11-N12 block intersection calculation
(3) Holding the outside compensation obtuse angle
r1: Vector at N11-N12 block intersection calculation
Program path
N11G1Xx11Yy11;
N12G38Xx12Yy12;
N13G40Xx13;
Tool center path
N11
N12
N13
r1
r1
(2) Changing of vector:
A new compensation vector direction can be commanded with I, J and K,
and a new offset amount with D.
(These can be commanded in the same block as the movement
command.)
G38 Ii Jj Dd ; (I, J and K will differ according to the selected plane.)
Program path
N11G1Xx11;
N12Yy12;
N13G38Xx13IiJjDd;
N14G40Xx14Yy14;
Tool center path
The compensation amount “d”
vector is created in the commanded
i and j vector direction.
N13
N12
N11
i
j
N14
d
d
(Note)
If G38 is commanded in the same block as the circular block (G02/G03) I and J commands, I and J
will be handled as the G38 vector, and an error will occur.