
12. Tool Compensation Functions
12.6 Tool Position Offset; G45 to G48
229
12.6 Tool Position Offset; G45 to G48
Function and purpose
Using the G45 to G46 commands, the movement distance of the axes specified in the same block
can be extended or reduced by a preset compensation length. Furthermore, the compensation
amount can be similarly doubled (x 2 expansion) or halved (x 2 reduction) with commands G47 and
G48.
The number of sets for the compensation differ according to machine specification. Refer to
Specifications Manual.
D01 to Dn
(The numbers given are the total number of sets for tool length compensation, tool position
offset and Tool radius compensation.)
G45 command
G46 command
G47 command
G48 command
Expansion by
compensation amount
only
Reduction by
compensation amount
only
×
2 expansion by
compensation amount
×
2 reduction by
compensation amount
Internal
arithmetic
processing
Movement
amount
Start point
End point
Internal
arithmetic
processing
Movement
amount
Start point
End point
Internal
arithmetic
processing
Movement
amount
Start point
End point
Internal
arithmetic
processing
Movement
amount
Start point
End point
(Program command value)
±
=
(compensation amount)
(Movement amount after compensation)
Command format
G45 X__ Y__ Z__ H__ (D__);
Expansion of movement amount by compensation
amount set in compensation memory
G46 X__ Y__ Z__ H__ (D__);
Reduction of movement amount by compensation
amount set in compensation memory
G47 X__ Y__ Z__ H__ (D__);
Expansion of movement amount by double the
compensation amount set in compensation memory
G48 X__ Y__ Z__ H__ (D__);
Reduction of movement amount by double the
compensation amount set in compensation memory
X, Y, Z
: Movement amount of each axis
H (D)
: Tool compensation No.
Tool compen-
sation type I
Tool length compensation and tool radius compensation is
not distinguished.
Thus, the same compensation amount will be obtained
whichever H or D is used.
Tool compen-
sation type II
The compensation amount will be obtained as follows.
H: Compensation amount designated with tool length
compensation No.
D: Compensation amount designated with tool radius
compensation No.