Home › G-codes › Mazak (EIA) › G98
G98 Canned cycle return to initial point / Feed per minute, lathe
Mazak (EIA) G-code · Mill, Lathe
On mills: Canned cycle return to initial point
After each hole the tool returns to the initial Z, the Z height before the cycle started. Use it to clear clamps between holes.
Format
G98
Addresses
| Address | What it does |
|---|---|
G98 | No addresses |
How it works
Modal. Works with drilling cycles.
Example program
G43 H01 Z1. (INITIAL Z 1.)
G98 G81 X1. Y1. Z-.5 R.1 F10. (RETURN TO Z1. AFTER HOLE)
X4. (CLEARS CLAMP BETWEEN HOLES)
G80 (CANCEL)
G98 G81 X1. Y1. Z-.5 R.1 F10. (RETURN TO Z1. AFTER HOLE)
X4. (CLEARS CLAMP BETWEEN HOLES)
G80 (CANCEL)
Example is in inch. Check offsets and clearances first.
Watch out for
- On a Mazak lathe G98 is feed per minute instead.
- The initial point is the Z position when the cycle was first called.
On lathes: Feed per minute, lathe
On a Mazak lathe G98 sets F to inches per minute. Used for live tool milling and drilling.
Format
G98
Addresses
| Address | What it does |
|---|---|
G98 | No addresses |
How it works
Modal until G99.
Example program
T1111 (.250 LIVE END MILL)
G98 (FEED PER MINUTE)
G01 Z-.1 F10. (10 INCHES PER MINUTE)
G99 (BACK TO FEED PER REV)
G98 (FEED PER MINUTE)
G01 Z-.1 F10. (10 INCHES PER MINUTE)
G99 (BACK TO FEED PER REV)
Example is in inch. Check offsets and clearances first.
Watch out for
- Switch back to G99 before turning. F.008 in G98 is almost no feed.
- On the mill G98 is a cycle return code.
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 |
| 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 |
| 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 Mazak (EIA) 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 Mazak G-codes