Back to Supported G-Codes

G98 & G99 - Drill Cycle Return Modes

DMC File Mode: Not Supported
Streaming Mode: Supported

Description

G98 and G99 are modal commands that control the return behavior of drilling cycles (G81, G82, G83). These commands determine where the tool returns to after completing each drilling operation:

  • G98 (Return to Initial Position): Returns the tool to the Z position where the drilling cycle was started
  • G99 (Return to R Position): Returns the tool to the R retract position specified in the drilling cycle

These modes remain active until explicitly changed and affect all subsequent drilling cycles. The choice between G98 and G99 depends on your machining strategy and the need for rapid traversal between drilling positions.

Syntax

G98 ; Return to initial position mode
G99 ; Return to R position mode

Parameters

CommandParametersDescription
G98NoneSet drill cycle return mode to initial position
G99NoneSet drill cycle return mode to R retract position

Note: These commands are modal and remain active until explicitly changed. They only affect drilling cycles (G81, G82, G83) and have no effect on other G-code commands.