CNC.SCHOOL — Integrated solutions for manufacturing industries (CNC)

PREPARATORY FUNCTIONS (G-CODES)


CodeModalityGroupFunctionExample
G00modal01Positioning (Rapid traverse)
G0101Linear interpolation (Cutting feed)
G0201Circular interpolation CW or Helical interpolation CW
G0301Circular interpolation CCW or Helical interpolation CCW
G0400Dwell
G0500High speed cycle cutting
G0700Hypothetical axis interpolation
G07.100Cylindrical interpolation
G1000Programmable data input
G10.600Tool retract & recover
G1100Programmable data input cancel
G12.121Polar coordinate interpolation mode
G13.1modal21Polar coordinate interpolation cancel mode
G1716XpYp plane selection
G18modal16ZpXp plane selection
G1916YpZp plane selection
G2006Input in inch
G2106Input in mm
G22modal09Stored stroke check function on
G2309Stored stroke check function off
G25modal08Spindle speed fluctuation detection off
G2608Spindle speed fluctuation detection on
G2700Reference position return check
G2800Return to reference position
G30002nd, 3rd and 4th reference position return
G30.100Floating reference point return
G3100Skip function
G3201Thread cutting
G3401Variable–lead thread cutting
G3501Circular threading (clockwise)
G3600/01Circular threading (counterclockwise) / Automatic tool compensation X
G3700Automatic tool compensation Z
G3900Corner circular interpolation
G40modal07Tool nose radius compensation cancel
G4107Tool nose radius compensation left
G4207Tool nose radius compensation right
G5000Coordinate system setting or max. spindle speed setting
G50.2modal20Polygonal turning cancel
G50.300Workpiece coordinate system preset
G51.220Polygonal turning
G5200Local coordinate system setting
G5300Machine coordinate system setting
G54modal14Workpiece coordinate system 1 selection
G5514Workpiece coordinate system 2 selection
G5614Workpiece coordinate system 3 selection
G5714Workpiece coordinate system 4 selection
G5814Workpiece coordinate system 5 selection
G5914Workpiece coordinate system 6 selection
G6500Macro calling
G6612Macro modal call
G67modal12Macro modal call cancel
G6804Mirror image for double turrets ON or balance cut mode
G69modal04Mirror image for double turrets OFF or balance cut mode cancel
G7000Finishing cycle
G7100Stock removal in turning
G7200Stock removal in facing
G7300Pattern repeating
G7400End face peck drilling
G7500Outer diameter/internal diameter drilling
G7600Multiple threading cycle
G80modal10Canned cycle for drilling cancel
G8310Cycle for face drilling
G8410Cycle for face tapping
G8510Cycle for face boring
G8710Cycle for side drilling
G8810Cycle for side tapping
G8910Cycle for side boring
G9001Outer diameter/internal diameter cutting cycle
G9201Thread cutting cycle
G9401Endface turning cycle
G9602Constant surface speed control
G97modal02Constant surface speed control cancel
G9805Per minute feed
G99modal05Per revolution feed