Home › G-codes › Mazak (EIA) › G40
G40 Cutter radius compensation cancel / Tool nose radius compensation cancel
Mazak (EIA) G-code · Mill, Lathe
On mills: Cutter radius compensation cancel
Cancels G41 or G42 cutter compensation. Give it on a move off the part.
Format
G40 [X Y]
Addresses
| Address | What it does |
|---|---|
X Y | Move that takes the compensation off |
How it works
Modal, group 07. Usually the power on state.
Example program
G01 X-.5 F30. (LEAVE THE WALL)
G40 Y-1. (CANCEL COMP ON A MOVE OFF THE PART)
G00 Z1. (RETRACT)
G40 Y-1. (CANCEL COMP ON A MOVE OFF THE PART)
G00 Z1. (RETRACT)
Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel on a straight move away from the wall, not on an arc, or the tool can gouge.
- Keep G40 in the safety line.
On lathes: Tool nose radius compensation cancel
Cancels G41 or G42 nose radius compensation.
Format
G40 [X Z]
Addresses
| Address | What it does |
|---|---|
X Z | Move that takes the compensation off |
How it works
Modal, group 07.
Example program
G01 X1.5 Z-1. F.006 (LAST FINISH MOVE)
G40 G00 X2. (CANCEL COMP ON RETRACT)
G28 U0. (X HOME)
G40 G00 X2. (CANCEL COMP ON RETRACT)
G28 U0. (X HOME)
Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel on a move away from the part, not on the last finish cut.
Related codes
G40 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Cutter compensation cancel |
| Haas NGC | Cutter 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 Mazak (EIA) 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 Mazak G-codes