Home › G-codes › Heidenhain TNC (ISO) › G98
G98 Set label
Heidenhain TNC (ISO) G-code · Mill
Sets a label for a subprogram or program section repeat. G98 L0 marks the end of a subprogram. Call with L1,0. Klartext: LBL 1, LBL 0 and CALL LBL 1.
Format
G98 L
Addresses
| Address | What it does |
|---|---|
L | Label number, 0 ends a subprogram |
How it works
Non-modal.
Example program
N60 L1,0 *
N70 G00 Z+250 M2 *
N130 G98 L1 *
N140 G79 *
…
N70 G00 Z+250 M2 *
N130 G98 L1 *
N140 G79 *
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Subprograms go after the main program end M2 or M30.
- L1,2 repeats a section two more times.
Related codes
G98 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Canned cycle return to initial level |
| Haas NGC | Canned cycle initial point return |
| Mazak (EIA) | Canned cycle return to initial point |
| Mitsubishi M70 M80 | Canned cycle return to start level |
| Brother Speedio | Canned cycle return to initial point |
| Fagor 8055 8065 | Return to initial plane |
| LinuxCNC Tormach | Cycle retract to start height |
| Mach3 Mach4 | Cycle return to initial point |
| Centroid CNC12 Acorn | Canned cycle return to start height |
| Hurco WinMax (NC) | Cycle return to initial point |
| Fadal | Fixed cycle return to start plane |
| Swiss (Citizen Star) | Feed per minute |
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 G98 in the app All Heidenhain TNC G-codes