G98 – Canned Cycle – Retract Back To The Initial Z

The G98 command is used in combination with canned cycles to retract the Z axis back to the initial Z position that existed before the canned cycle was started.

 

When G98 is active, the Z axis returns to the starting Z position of the canned cycle after each drilling operation.

 

G98 is a modal command and belongs to Group 10.

 


Syntax & Parameters

 

G98

 


Example Program

 

N10 G98 G73 X10 Y10 Z-8 R2 Q1 F100

 

In this example, after the drilling cycle is completed, the Z axis retracts back to the Z position that was active before the drilling cycle began.