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

PREPARATORY FUNCTIONS (G-CODES)


CodeModalityGroupFunctionExample
G00modal01Positioning (rapid traverse)
G01modal01Linear interpolation (cutting feed)
G0201Circular interpolation CW or helical interpolation CW
G02.201Involute interpolation CW/CCW
G02.301Exponential interpolation CW/CCW
G02.401Three-dimensional coordinate conversion CW/CCW
G0301Circular interpolation CCW or helical interpolation CCW
G03.201Involute interpolation CW/CCW
G03.301Exponential interpolation CW/CCW
G03.401Three-dimensional coordinate conversion CW/CCW
G0400Dwell
G0500AI contour control (high-precision contour control compatible command)
G05.100AI contour control / Nano smoothing / Smooth interpolation
G05.400HRV3,4 on/off
G06.201NURBS interpolation
G0700Hypothetical axis interpolation
G07.100Cylindrical interpolation
G0800AI contour control (advanced preview control compatible command)
G0900Exact stop
G1000Programmable data input
G10.600Tool retract and recover
G10.900Programmable switching of diameter/radius specification
G1100Programmable data input mode cancel
G12.121Polar coordinate interpolation mode
G13.1modal21Polar coordinate interpolation cancel mode
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
G25modal19Spindle speed fluctuation detection off
G2619Spindle speed fluctuation detection on
G2700Reference position return check
G2800Automatic return to reference position
G2900Movement from reference position
G30002nd, 3rd and 4th reference position return
G30.100Floating reference position return
G3100Skip function
G31.800EGB-axis skip
G3301Threading
G3401Variable lead threading
G3501Circular threading CW
G3601Circular threading CCW
G3700Automatic tool length measurement
G3800Cutter or tool nose radius compensation : preserve vector
G3900Cutter or tool nose radius compensation : corner circular interpolation
G40modal07Cutter or tool nose radius compensation : cancel Three-dimensional cutter compensation : cancel
G40.119Normal direction control cancel mode
G4107Cutter or tool nose radius compensation : left Three-dimensional cutter compensation : left
G41.119Normal direction control on : right
G41.207Cutter compensation for 5-axis machining : left (type 1)
G41.307Cutter compensation for 5-axis machining : (leading edge offset)
G41.407Cutter compensation for 5-axis machining : left (type 1) (FS16i-compatible command)
G41.507Cutter compensation for 5-axis machining : left (type 1) (FS16i-compatible command)
G41.607Cutter compensation for 5-axis machining : left (type 1) (FS16i-compatible command)
G4207Cutter or tool nose radius compensation : right Three-dimensional cutter compensation : right
G42.119Normal direction control on : left
G42.207Cutter compensation for 5-axis machining : right (type 1)
G42.407Cutter compensation for 5-axis machining : right (type 1) (FS16i-compatible command)
G42.507Cutter compensation for 5-axis machining : right (type 1) (FS16i-compatible command)
G42.607Cutter compensation for 5-axis machining : right (type 2)
G4308Tool length compensation +
G43.108Tool length compensation in tool axis direction
G43.408Tool center point control (type 1)
G43.508Tool center point control (type 2)
G4408Tool length compensation -
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 setting
G53.100Tool axis direction control
G54modal14Workpiece coordinate system 1 selection
G54.1modal14Workpiece 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
G6000Single direction positioning
G6115Exact stop mode
G6215Automatic corner override
G6315Tapping mode
G64modal15Cutting mode
G6500Macro call
G6612Macro modal call A
G66.112Macro modal call B
G67modal12Macro modal call A/B cancel
G6816Coordinate system rotation start or 3-dimensional coordinate conversion mode on
G68.216Feature coordinate system selection
G69modal16Coordinate system rotation cancel or 3-dimensional coordinate conversion mode off
G7006Input in inch
G7106Input in mm
G72.100Figure copy (rotation copy)
G72.200Figure copy (linear copy)
G7309Peck drilling cycle
G7409Left-handed tapping cycle
G7609Fine boring cycle
G80modal09Canned cycle cancel
G80.524Electronic gear box 2 pair: synchronization cancellation
G80.834Electronic gear box: synchronization cancellation
G8109Drilling cycle or spot boring cycle
G81.100Chopping
G81.524Electronic gear box 2 pair: synchronization start
G81.834Electronic gear box: synchronization start
G8209Drilling cycle or counter boring cycle
G8309Peck drilling cycle
G8409Tapping cycle
G84.209Rigid tapping cycle (FS15 format)
G84.309Left-handed rigid tapping cycle (FS15 format)
G8509Boring cycle
G8609Boring cycle
G8709Back boring cycle
G8809Boring cycle
G8909Boring cycle
G90modal03Absolute programming
G91modal03Incremental programming
G91.100Checking the maximum incremental amount specified
G9200Setting for workpiece coordinate system or clamp at maximum spindle speed
G92.100Workpiece coordinate system preset
G9305Inverse time feed
G94modal05Feed per minute
G9505Feed per revolution
G9613Constant surface speed control
G97modal13Constant surface speed control cancel
G98modal10Canned cycle : return to initial level
G9910Canned cycle : return to R point level
G10700Cylindrical interpolation
G11221Polar coordinate interpolation mode
G11321Polar coordinate interpolation mode cancel