Home › G-codes › LinuxCNC Tormach › G98
G98 Cycle retract to start height
LinuxCNC Tormach G-code · Mill
Canned cycles retract to the height the tool was at before the cycle, if it is above R. Safe for clamps between holes.
Format
G98
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Modal, cycle return group.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T2 M6 G43
S2500 M3
G0 X1 Y1 Z1 (START HEIGHT 1.0)
…
T2 M6 G43
S2500 M3
G0 X1 Y1 Z1 (START HEIGHT 1.0)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The start height resets when the cycle ends. A new cycle takes the new start height.
- Use G98 when anything sticks up between holes.
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 |
| Heidenhain TNC (ISO) | Set label |
| Fagor 8055 8065 | Return to initial plane |
| 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 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 G98 in the app All LinuxCNC Tormach G-codes