G-codes & Post Processors

G98 – Canned Cycle – Retract Back To The Initial Z

This command is used in combination with canned cycles to retract Z axis to the position before canned cycles was started.

Syntax & Parameters

  • G98

Example program

N10 G98 G73 X10 Y10 Z-8 R2 Q1 F100
  • In the above program, after finishing the drilling cycle the Z axis will retract back to the position before the drilling cycle.