Home › G-codes › Mach3 Mach4 › G40
G40 Cutter comp cancel
Mach3 Mach4 G-code · Mill
Turns off cutter radius compensation. The tool center runs on the programmed path again.
Format
G40
Addresses
| Address | What it does |
|---|---|
G40 | No address words |
How it works
Modal, cutter comp group. Default.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S8000 M3 (SPINDLE ON)
G43 H1 Z0.1 (LENGTH OFFSET)
…
T1 M6 (TOOL CHANGE)
S8000 M3 (SPINDLE ON)
G43 H1 Z0.1 (LENGTH OFFSET)
…
The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel on a straight lead out longer than the tool radius. Mach4 errors if G40 is in an arc block.
- Keep G40 in the safe start line.
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 |
| Heidenhain TNC (ISO) | Cancel radius compensation |
| Fagor 8055 8065 | Cancel tool radius compensation |
| LinuxCNC Tormach | Cutter compensation off |
| 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 Mach3 Mach4 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 Mach3 Mach4 G-codes