Home › G-codes › LinuxCNC Tormach › G40
G40 Cutter compensation off
LinuxCNC Tormach G-code · Mill and lathe
Turns off cutter radius or tool nose compensation.
Format
G40
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Modal, cutter comp group. Default at power up.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T1 M6 G43
S3000 M3
G0 X-1 Y-1 Z-0.25
…
T1 M6 G43
S3000 M3
G0 X-1 Y-1 Z-0.25
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The move after G40 must be a straight line longer than the tool diameter. An arc right after G40 is an error.
- Put 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 |
| 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 LinuxCNC Tormach 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 LinuxCNC Tormach G-codes