
12. Tool Compensation Functions
12.6 Tool Position Offset; G45 to G48
230
Detailed description
Details for incremental values are given below.
Command
Movement amount of
equivalent command
(assigned compensation
amount = l)
Example
(when X = 1000)
G45Xx Dd
X ( x + l )
l = 10
X =
1010
l =
−
10 X
=
990
G45X
−
x Dd
X
−
( x + l )
l = 10
X =
−
1010
l =
−
10 X
=
−
990
G46Xx Dd
X ( x
−
l )
l = 10
X =
990
l =
−
10 X
=
1010
G46X
−
x Dd
X
−
( x
−
l )
l = 10
X =
−
990
l =
−
10 X
=
−
1010
G47Xx Dd
X ( x + 2
∗
l )
l = 10
X =
1020
l =
−
10 X
=
980
G47X
−
x Dd
X
−
( x + 2
∗
l )
l = 10
X =
−
1020
l =
−
10 X
=
−
980
G48Xx Dd
X ( x
−
2
∗
l )
l = 10
X =
980
l =
−
10 X
=
1020
G48X
−
x Dd
X
−
( x
−
2
∗
l )
l = 10
X =
−
980
l =
−
10 X
=
−
1020
Precautions
(1) These commands should be used when operation is not in a canned cycle mode.
(They are ignored even if they are assigned during a canned cycle.)
(2) As a result of the internal arithmetic processing based on the expansion or reduction, the tool
will proceed to move in the opposite direction when the command direction is reversed.
Start point
End point
Programmed
command
Compensation
Tool movement
G48X20.000D01;
Compensation amount = +15.000
Actual movement = X
−
10.000
(3) When a zero movement amount has been specified in the incremental value command
(G91) mode, the result is as follows.
Compensation number : D01
Compensation amount corresponding to D01: 1234
NC command
G45X0 D01;
G45X
−
0 D01;
G46X0 D01;
G46X
−
0 D01;
Equivalent
command
X1234;
X
−
1234;
X
−
1234;
X1234;
When a zero movement amount has been specified with an absolute value command, the
operation is completed immediately and the tool does not move for the compensation amount.