Chapter 9 NC Control Function
14) Disable tool diameter compensation (G40)
{G40} [G00/G01] X_ Y_ Z_ A_ B_ C_ U_ V_ W_ S_
G40: Disable tool diameter compensation
X_ Y_ Z_ A_ B_ C_ U_ V_ W_ S_: Instruct the vector of the next command block
The G40 command is to cancel the tool diameter compensation. When G40 is commanded in the mode of G00
and G01, the mode will change from Enable Tool Diameter Compensation to Disable Tool Diameter Compensation.
The offset in the G40 mode is always 0, and the center path of the tool matches the programmed path. The
program should always be terminated in the G40 mode. If it ends in the G41 / G42 mode, the program will be
terminated at a distance offset by the compensation amount. In addition, it is not possible to cancel the tool
diameter compensation in the circular interpolation (G02, G03).
15) Tool diameter compensation (G41, G42)
{G41/G42} [G00 / G01] X_ Y_ Z_ A_ B_ C_ U_ V_ W_ S_ D_
G41: Left compensation of the tool diameter
G42: Right compensation of the tool diameter
D_: The offset number that stores the tool diameter compensation value
X_ Y_ Z_ U_: Instruct the vector of the next command block
(1) Start – Up mode
When the tool diameter compensation is started by commanding G41 / G42 in the status of Disable Tool
Diameter Compensation, it is called the Start-Up mode.
The case where G41 / G42 are commanded or the axis motion block is commanded for the first time after it is
instructed, it is called the Start-Up mode.
In the Start-Up block, the axis motion command must be greater than the tool radius. In the start-up or
cancellation mode, the arc command [G02 / G03] is not executed. When such commands are made, an alarm
occurs.