G98 is a G-code that selects the retract level used at the end of canned cycles such as drilling and boring. In this mode the tool returns to the Z position it held just before the series of contiguous canned cycles began, if that position is higher than the R value; otherwise the R value is used. It is the alternative to G99, which always retracts to the R position.
| Language | gcode |
|---|---|
| Code | G98 |
| Group | Canned Cycle Return Level |
| Dialect | LinuxCNC |