Complete G Code List



G-codes are also called preparatory codes (preparatory functions).

Complete CNC G Code List

Complete CNC G Code List

Complete G Code List

List of G-codes commonly found on Fanuc and similarly designed CNC controls

G CodeGroupFunction
ABC
G00G00G0001Positioning (Rapid traverse)
G01G01G01Linear interpolation (Cutting feed)
G02G02G02Circular interpolation CW or helical interpolation CW
G03G03G03Circular interpolation CCW or helical interpolation CCW
G04G04G0400Dwell
G07.1(G107)G07.1(G107)G07.1(G107)Cylindrical interpolation
G08G08G08Advanced preview control
G10G10G10Programmable data input
G11G11G11Programmable data input cancel
G12.1(G112)G12.1(G112)G12.1(G112)21Polar coordinate interpolation mode
G13.1(G113)G13.1(G113)G13.1(G113)Polar coordinate interpolation cancel mode
G17G17G1716X Y plane selection
G18G18G18Z X plane selection
G19G19G19Y Z plane selection
G20G20G7006Input in inch
G21G21G71Input in mm
G22G22G2209Stored stroke check function on
G23G23G23Stored stroke check function off
G25G25G2508Spindle speed fluctuation detection off
G26G26G26Spindle speed fluctuation detection on
G27G27G2700Reference position return check
G28G28G28Return to reference position
G30G30G302nd, 3rd and 4th reference position return
G31G31G31Skip function
G32G33G3301Thread cutting
G34G34G34Variable—lead thread cutting
G36G36G3600Automatic tool compensation X
G37G37G37Automatic tool compensation Z
G40G40G4007Tool nose radius compensation cancel
G41G41G41Tool nose radius compensation left
G42G42G42Tool nose radius compensation right
G50G92G9200Coordinate system setting or max. spindle speed setting
G50.3G92.1G92.1Workpiece coordinate system preset
G50.2(G250)G50.2(G250)G50.2(G250)20Polygonal turning cancel
G51.2(G251)G51.2(G251)G51.2(G251)Polygonal turning
G52G52G5200Local coordinate system setting
G53G53G53Machine coordinate system setting
G54G54G5414Workpiece coordinate system 1 selection
G55G55G55Workpiece coordinate system 2 selection
G56G56G56Workpiece coordinate system 3 selection
G57G57G57Workpiece coordinate system 4 selection
G58G58G58Workpiece coordinate system 5 selection
G59G59G59Workpiece coordinate system 6 selection
G65G65G6500Macro calling
G66G66G6612Macro modal call
G67G67G67Macro modal call cancel
G68G68G6804Mirror image for double turrets ON
G69G69G69Mirror image for double turrets OFF
G70G70G7200Finishing cycle
G71G71G73Stock removal in turning
G72G72G74Stock removal in facing
G73G73G75Pattern repeating
G74G74G76End face peck drilling
G75G75G77Outer diameter/internal diameter drilling
G76G76G78Multiple threading cycle
G80G80G8010Canned cycle for drilling cancel
G83G83G83Cycle for face drilling
G84G84G84Cycle for face tapping
G86G86G86Cycle for face boring
G87G87G87Cycle for side drilling
G88G88G88Cycle for side tapping
G89G89G89Cycle for side boring
G90G77G2001Outer diameter/internal diameter cutting cycle
G92G78G21Thread cutting cycle
G94G79G24Endface turning cycle
G96G96G9602Constant surface speed control
G97G97G97Constant surface speed control cancel
G98G94G9405Per minute feed
G99G95G95Per revolution feed
-G90G9003Absolute programming
-G91G91Incremental programming
-G98G9811Return to initial level
-G99G99Return to R point level

 

 

G00 Positioning (Rapid traverse)

  1. CNC G-Code G00 Rapid Traverse
  2. CNC G Code Introduction for CNC Programmers

G01 Linear interpolation (Cutting feed)

  1. CNC G Code Introduction for CNC Programmers
  2. CNC Programming for Beginners a Simple CNC Programming Example
  3. Lathe CNC Programming Example

G02 Circular interpolation CW or helical interpolation CW

  1. CNC Programming for Beginners a CNC Programming Example
  2. CNC Lathe Programming Example
  3. CNC Circular Interpolation Tutorial G02 G03

G03 Circular interpolation CCW or helical interpolation CCW

  1. CNC Arc Programming Exercise
  2. CNC Circular Interpolation Tutorial G02 G03

G04 Dwell

  1. G04 Dwell Time Calculation Made Easy

G10 Programmable data input

  1. Fanuc G10 G-Code for CNC Machine Programmable Offset Setting

G20 Input in inch

  1. Fanuc G20 Measuring in Inches with CNC Program Example

G21 Input in mm

  1. Fanuc G21 Measuring in Millimeter with CNC Lathe Programming Example

G32 Thread cutting

  1. CNC Fanuc G33 G32 Threading G Code

G32 Taper Threading

  1. Taper Threading with G32 a CNC Programming Example

G33 Thread Cutting

  1. CNC Fanuc G33 G32 Threading G Code

G70 Finishing cycle

  1. CNC Programming Example with Fanuc G71 Rough Turning Cycle and G70
  2. Fanuc G70 G71 Rough and Finish Turning Cycle Program Example

G71 Stock removal in turning

  1. CNC Fanuc G71 Turning Cycle or Stock Removal Canned Cycle
  2. G71 Rough Turning Cycle One-line Format
  3. CNC Programming Example with Fanuc G71 Rough Turning Cycle and G70
  4. Fanuc G70 G71 Rough and Finish Turning Cycle Program Example

G72 Stock removal in facing

  1. CNC Fanuc G72 Canned Cycle Facing

G73 Pattern repeating

  1. CNC Fanuc G73 Pattern Repeating Cycle
  2. CNC Fanuc G73 Pattern Repeating Cycle CNC Program Example

G74 End face peck drilling

Peck drilling in Z axis.

G74 Peck Drilling Cycle

  1. Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle

G74 Face Grooving

  1. Face Grooving with G74 G Code a CNC Programming Tutorial

G75 Outer diameter/internal diameter drilling

Grooving in X axis.

  1. CNC Fanuc G75 Grooving Cycle
  2. Fanuc G75 Grooving Cycle CNC Program Example
  3. G75 Canned Cycle Grooving CNC Programming Example

G76 Multiple threading cycle

Thread cutting cycle, G76 threading cycle, Fanuc G76 threading cycle, G76 thread cycle.

  1. Fanuc G76 Threading Cycle
  2. G76 Thread Cycle a CNC Programming Example

G76 Threading Cycle One Line Format

  1. G76 Threading Cycle One Line Format for Fanuc 10/11/15T

G76 Taper Threading

  1. Tapered Threading with Fanuc G76

G76 Multi Start Threading

  1. Multi-Start Threading with Fanuc G76

G76 Thread Infeed

  1. Controlling Thread Infeed with Fanuc G76

G92 Thread cutting cycle

CNC Fanuc G92 Threading Cycle, G92 thread cutting cycle.

  1. CNC Fanuc G92 Threading Cycle

G92 Taper Threading Cycle

  1. Taper Threading with G92 Threading Cycle
  2. CNC Programming Example G92 Taper Threading Cycle

G94 Facing Cycle (Endface turning cycle)

  1. Fanuc G94 Facing Cycle CNC Example Program

G94 Feed Per Minute / G98 Feed Per Minute

  1. G-Code G94 Feed Per Minute

G95 Feed Per Revolution / G99 Feed Per Revolution

  1. G-Code G95 Feed Per Revolution

Leave a Reply

*