Home › G-codes › Heidenhain TNC (ISO) › G51
G51 Tool preselection
Heidenhain TNC (ISO) G-code · Mill
Preselects the next tool so the changer can get it ready. Used with the central tool file. Klartext: TOOL DEF number.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G51 T
Addresses
| Address | What it does |
|---|---|
T | Next tool number |
How it works
Non-modal.
Example program
N30 T1 G17 S4000 *
N40 G51 T2 *
N50 G00 G40 G90 Z+250 *
N40 G51 T2 *
N50 G00 G40 G90 Z+250 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Only useful when the machine has a tool magazine that supports preselect.
Related codes
G51 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Scaling |
| Haas NGC | Scaling |
| Mazak (EIA) | Scaling on |
| Okuma OSP | Scaling on |
| Mitsubishi M70 M80 | Scaling on |
| Brother Speedio | Scaling on |
| Mach3 Mach4 | Scaling and mirror |
| Centroid CNC12 Acorn | Scaling and mirroring on |
| Hurco WinMax (NC) | Scaling |
| Fadal | Ramp slope control |
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 G51 in the app All Heidenhain TNC G-codes