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
| Address | What it does |
|---|---|
X Y | Move 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)
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
- Cancel on a move that leaves the part, or the tool can gouge the last corner.
- Put G40 in the safe start line of every program.
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
| Address | What it does |
|---|---|
X Z | Absolute departure point |
U W | Incremental 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)
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
- Cancel comp on a move off the part, not on a finish cut, or it can overcut.
- Cancel tool nose comp before the end of the program.
Related codes
G40 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Cutter compensation cancel |
| Mazak (EIA) | Cutter radius compensation cancel |
| Okuma OSP | Cutter radius compensation cancel |
| Mitsubishi M70 M80 | Cutter radius comp cancel |
| Brother Speedio | Cutter compensation cancel |
| Siemens 840D 828D | Cancel tool radius compensation |
| Heidenhain TNC (ISO) | Cancel radius compensation |
| Fagor 8055 8065 | Cancel tool radius compensation |
| LinuxCNC Tormach | Cutter compensation off |
| Mach3 Mach4 | Cutter comp cancel |
| Centroid CNC12 Acorn | Cutter compensation cancel |
| Hurco WinMax (NC) | Cutter compensation cancel |
| Fadal | Cutter 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