Home › G-codes › Mach3 Mach4 › G98
G98 Cycle return to initial point
Mach3 Mach4 G-code · Mill
After each hole the cycle returns to the Z height it started from. Use it to hop over clamps.
Format
G98
Addresses
| Address | What it does |
|---|---|
G98 | No address words |
How it works
Modal, return mode group.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S2500 M3 (SPINDLE ON)
G43 H1 Z1.0 (START ABOVE CLAMPS)
…
T1 M6 (TOOL CHANGE)
S2500 M3 (SPINDLE ON)
G43 H1 Z1.0 (START ABOVE CLAMPS)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- If the start height is below R, Mach3 returns to R.
- Set the start height above clamps before the cycle starts.
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 |
| LinuxCNC Tormach | Cycle retract to start height |
| 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 Mach3 Mach4 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 Mach3 Mach4 G-codes