CNC Machinist Calculator Ultra

Home › G-codes › Haas NGC › G40

G40 Cutter compensation cancel / Tool nose compensation cancel

Haas NGC G-code · Mill, Lathe

On mills: Cutter compensation cancel

Turns off G41 and G42 cutter compensation. Cancel it on a move away from the part.

Format

G40 [X Y]

Addresses

AddressWhat it does
X YMove used to ramp off compensation

How it works

Modal, cutter comp group 07.

Example program

G01 X3. (LAST CUT WITH COMP ON)
G40 G01 X3.5 Y-.5 (MOVE AWAY AND CANCEL COMP)
G00 Z1. (RETRACT)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Tool nose compensation cancel

Cancels G41 or G42. A T code with offset 00 also cancels it. Cancel on a departure move away from the part.

Format

G40 [X] [Z] [U] [W]

Addresses

AddressWhat it does
X ZAbsolute departure point
U WIncremental departure distance

How it works

Modal, group 07. Default at power up.

Example program

G42 G01 X1. Z0 F.006 (COMP ON TO FACE)
Z-1. (TURN WITH COMP)
G40 G00 X1.5 Z.1 (COMP OFF ON A MOVE AWAY)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G41 · G42

G40 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucCutter compensation cancel
Mazak (EIA)Cutter radius compensation cancel
Okuma OSPCutter radius compensation cancel
Mitsubishi M70 M80Cutter radius comp cancel
Brother SpeedioCutter compensation cancel
Siemens 840D 828DCancel tool radius compensation
Heidenhain TNC (ISO)Cancel radius compensation
Fagor 8055 8065Cancel tool radius compensation
LinuxCNC TormachCutter compensation off
Mach3 Mach4Cutter comp cancel
Centroid CNC12 AcornCutter compensation cancel
Hurco WinMax (NC)Cutter compensation cancel
FadalCutter radius compensation cancel
Swiss (Citizen Star)Nose radius compensation cancel

Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G40 in the app All Haas NGC G-codes

App Store Google Play