G40 Cutter compensation cancel / Tool nose radius compensation cancel
Fanuc G-code · Mill, Lathe
On mills: Cutter compensation cancel
Cancels cutter radius compensation. The tool center goes back to the programmed path on the next move.
Format
G40 [G00 or G01 X Y]
Addresses
| Address | What it does |
|---|---|
X Y | Move used to leave compensation |
How it works
Modal, group 07. Power on default.
Example program
Y2. (LAST PROFILE MOVE)
G40 G01 X-.75 (CANCEL COMP ON A LEAD OUT MOVE)
G00 Z1. (RAPID CLEAR)
G40 G01 X-.75 (CANCEL COMP ON A LEAD OUT MOVE)
G00 Z1. (RAPID CLEAR)
Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel on a straight move G00 or G01, not on an arc, or an alarm occurs.
- Make the cancel move longer than the tool radius and in a direction away from the part.
On lathes: Tool nose radius compensation cancel
Turns off tool nose radius compensation. Command it on a move away from the part.
Format
G40 [G00 or G01 X(U) Z(W)]
Addresses
| Address | What it does |
|---|---|
X Z | Move during which compensation is removed |
How it works
Modal, group 07. Power on default.
Example program
G42 G01 Z-1. F.006 (FINISH TURN)
X1.8 (LAST FINISH MOVE)
G40 G00 X2.5 Z.2 (COMP OFF ON RETRACT)
X1.8 (LAST FINISH MOVE)
G40 G00 X2.5 Z.2 (COMP OFF ON RETRACT)
Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel on a retract move that is longer than the nose radius.
- Put G40 in the safety line at the start of every tool.
Related codes
G40 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | 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 Fanuc 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 Fanuc G-codes