Home › G-codes › Heidenhain TNC (ISO) › G99
G99 Tool definition in the program
Heidenhain TNC (ISO) G-code · Mill
Defines a tool number with length L and radius R inside the program, used when no tool table entry is used. Klartext: TOOL DEF 1 L R.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G99 T L R
Addresses
| Address | What it does |
|---|---|
T | Tool number |
L | Tool length or delta length |
R | Tool radius |
How it works
Non-modal definition. Called later with the tool call block T G17 S.
Example program
N30 G99 T1 L+0 R+4 *
N40 G99 T2 L+0 R+2.4 *
N50 T1 G17 S5000 *
N40 G99 T2 L+0 R+2.4 *
N50 T1 G17 S5000 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Most shops use the tool table and skip G99.
- Values here add to or replace table values depending on machine setup.
Related codes
G99 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Canned cycle return to R level |
| Haas NGC | Canned cycle R plane return |
| Mazak (EIA) | Canned cycle return to R plane |
| Mitsubishi M70 M80 | Canned cycle return to R plane |
| Brother Speedio | Canned cycle return to R plane |
| Fagor 8055 8065 | Return to reference plane |
| LinuxCNC Tormach | Cycle retract to R plane |
| Mach3 Mach4 | Cycle return to R plane |
| Centroid CNC12 Acorn | Canned cycle return to R plane |
| Hurco WinMax (NC) | Cycle return to R plane |
| Fadal | Fixed cycle return to R0 plane |
| Swiss (Citizen Star) | Feed per revolution |
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 G99 in the app All Heidenhain TNC G-codes