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

PREPARATORY FUNCTIONS (G-CODES)


CodeModalityGroupFunctionExample
G00modal01Positioning
G01modal01Linear interpolation
G0201Circular interpolation/Helical interpolation CW
G0301Circular interpolation/Helical interpolation CCW
G0400Dwell, Exact stop
G05.100AI advanced control/AI contour control
G07.100Cylindrical interpolation
G0800Advanced preview control
G0900Exact stop
G1000Programmable data input
G1100Programmable data input mode cancel
G15modal17Polar coordinates command cancel
G1617Polar coordinates command
G17modal02XpYp plane selection
G18modal02ZpXp plane selection
G19modal02YpZp plane selection
G2006Input in inch
G2106Input in mm
G22modal04Stored stroke check function on
G2304Stored stroke check function off
G2700Reference position return check
G2800Return to reference position
G2900Return from reference position
G30002nd, 3rd and 4th reference position return
G3100Skip function
G3301Thread cutting
G3700Automatic tool length measurment
G3900Corner offset circular interpolation
G40modal07Cutter compensation cancel/Three dimensional compensation cancel
G40.1modal19Normal direction control cancel mode
G4107Cutter compensation left/Three dimensional compensation
G41.119Normal direction control left side on
G4207Cutter compensation right
G42.119Normal direction control right side on
G4308Tool length compensation + direction
G4408Tool length compensation – direction
G4500Tool offset increase
G4600Tool offset decrease
G4700Tool offset double increase
G4800Tool offset double decrease
G49modal08Tool length compensation cancel
G50modal11Scaling cancel
G50.1modal22Programmable mirror image cancel
G5111Scaling
G51.122Programmable mirror image
G5200Local coordinate system setting
G5300Machine coordinate system selection
G54modal14Workpiece coordinate system 1 selection
G54.114Additional workpiece coordinate system 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
G6000/01Single direction positioning
G6115Exact stop mode
G6215Automatic corner override
G6315Tapping mode
G64modal15Cutting mode
G6500Macro call
G6612Macro modal call
G67modal12Macro modal call cancel
G6816Coordinate rotation/Three dimensional coordinate conversion
G69modal16Coordinate rotation cancel/Three dimensional coordinate conversion cancel
G7309Peck drilling cycle
G7409Counter tapping cycle
G7609Fine boring cycle
G7701Direct constant–dimension plunge grinding cycle(for grinding machine)
G7801Continuous–feed surface grinding cycle(for grinding machine)
G7901Intermittent–feed surface grinding cycle(for grinding machine)
G80modal09Canned cycle cancel/external operation function cancel
G8109Drilling cycle, spot boring cycle or external operation function
G8209Drilling cycle or counter boring cycle
G8309Peck drilling cycle
G8409Tapping cycle
G8509Boring cycle
G8609Boring cycle
G8709Back boring cycle
G8809Boring cycle
G8909Boring cycle
G90modal03Absolute command
G91modal03Increment command
G9200Setting for work coordinate system or clamp at maximum spindle speed
G92.100Workpiece coordinate system preset
G94modal05Feed per minute
G9505Feed per rotation
G9613Constant surface speed control
G97modal13Constant surface speed control cancel
G98modal10Return to initial point in canned cycle
G9910Return to R point in canned cycle
G10700Cylindrical interpolation
G15119Normal direction control left side on
G15219Normal direction control right side on
G160modal20In-feed control function cancel (for grinding machine)
G16120In-feed control function (for grinding machine)