Facing cycle.
This cycle can be used in combination with Machine/Measure/Protrusion procedure. Cycle will automatically populate suitable W and H parameter values, depending on the measuring result.
G72 <X> <Y> <R> <Z> <K> W H D <P> <Q> <F>
Cycle code using G98 gcode for Initial Z Point return height. Cycle toolpath is centred at the X0 Y0 position, top Z height at Z=0, bottom height Z=-5, step down 1mm, mill facing area W125 H75, tool diameter 40mm, stepover at 40%, finish pass 0.1mm and feedrate of 2100 mm/min.
G98 G72 X0 Y0 R0 Z-5 K1 W125 H75 D40 P16 Q0.1 F2100
Cycle code using G99 gcode for R point return height. Cycle W and H parameter values were calculated based on the measurement of the workpiece of dimensions 60mm x 60mm(red square) and tool of 40mm diameter with 40% stepover. Cycle toolpath is centred at the X0 Y0 position, top Z height at Z=0, bottom height Z=-5, step down 1mm, mill facing area W58.2 H60.2, tool diameter 40mm, stepover at 40%, finish pass 0.1mm and feedrate of 2100 mm/min.
G99 G72 X0 Y0 R2 Z-5 K1 W58.02 H60.2 D40 P16 Q0 F2100