Home › G-codes › Heidenhain TNC (ISO) › G40
G40 Cancel radius compensation
Heidenhain TNC (ISO) G-code · Mill
Turns off tool radius compensation. The tool center moves to the programmed point. Klartext: R0.
Format
G40 X Y
Addresses
| Address | What it does |
|---|---|
X Y | Target point for the tool center |
How it works
Modal. Active at power on.
Example program
N150 G27 R5 F500 *
N160 G40 X-20 Y-20 F1000 *
N170 G00 Z+250 M2 *
N160 G40 X-20 Y-20 F1000 *
N170 G00 Z+250 M2 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel in a line move away from the part, after G27 if you used a tangential exit.
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 |
| 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 |
| 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 Heidenhain TNC (ISO) 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 Heidenhain TNC G-codes