Home › G-codes › Haas NGC › G98
G98 Canned cycle initial point return / Feed per minute
Haas NGC G-code · Mill, Lathe
On mills: Canned cycle initial point return
After each hole the tool returns to the Z height it was at before the canned cycle started. Use it to clear clamps between holes.
Format
G98
How it works
Modal, return group 10.
Example program
G43 H03 Z1. (INITIAL POINT Z1)
G81 G98 Z-.5 R.1 F10. (DRILL, RETURN TO Z1)
X3. (CLEARS THE CLAMP ON THE WAY)
G80 (CANCEL)
G81 G98 Z-.5 R.1 F10. (DRILL, RETURN TO Z1)
X3. (CLEARS THE CLAMP ON THE WAY)
G80 (CANCEL)
Example is in inch. Check offsets and clearances first.
Watch out for
- The initial point is the Z position just before the canned cycle line. Set it high enough.
On lathes: Feed per minute
Makes F inches per minute, or mm per minute in metric. Needed for live tool milling and G112 since the main spindle is not turning.
Format
G98
How it works
Modal, group 10. Cancel with G99.
Example program
T1111 (LIVE END MILL)
G98 (FEED PER MINUTE)
M133 P2000 (LIVE TOOL FORWARD)
G01 Z-.1 F8. (8 IPM)
G98 (FEED PER MINUTE)
M133 P2000 (LIVE TOOL FORWARD)
G01 Z-.1 F8. (8 IPM)
Example is in inch. Check offsets and clearances first.
Watch out for
- Switching to G98 without changing F turns .010 IPR into .010 IPM, a near stop. Always give a new F.
- Go back to G99 before turning.
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 |
| 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 |
| 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 Haas NGC 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 Haas NGC G-codes