G-code file

Top  Previous  Next

G-code is a common name for the programming language that controls

NC and CNC machine tools. Developed by the Electronic Industries Alliance

in the early 1960s, a final revision was approved in February 1980 as RS274D.

 

Due to the lack of further development, the immense variety of machine tool

configurations, and little demand for interoperability, few machine tool controllers

(CNCs) adhere to this standard. Extensions and variations have been added

independently by manufacturers, and operators of a specific controller must be

aware of differences of each manufacturers' product.

 

Common Fanuc G Codes

Code

Description

G00

Rapid positioning

G01

Linear interpolation

G02

CW circular interpolation

G03

CCW circular interpolation

G04

Dwell

G05.1 Q1.

Ai Nano contour control

G05 P10000

HPCC

G10/G11

Programmable Data input/Data write cancel

G17

X-Y plane selection

G18

X-Z plane selection

G19

Y-Z plane selection

G20

Programming in inches

G21

Programming in mm

G28

Return to home position

G30

2nd reference point return

G31

Skip function (used for probes and tool length measurement systems)

G33

Constant pitch threading

G34

Variable pitch threading

G40

Tool radius compensation off

G41

Tool radius compensation left

G42

Tool radius compensation right

G43

Tool offset compensation positive

G44

Tool offset compensation negative

G45

Axis offset single increase

G46

Axis offset single decrease

G47

Axis offset double increase

G48

Axis offset double decrease

G49

Tool offset compensation cancel

G53

Machine co-ordinate system

G54 to G59

Work co-ordinate systems

G54.1 P1 to P48

Extended work co-ordinate systems

G73

High speed drilling canned cycle

G74

Left hand tapping canned cycle

G76

Fine boring canned cycle

G80

Cancel canned cycle

G81

Simple drilling cycle

G82

Drilling cycle with dwell

G83

Peck drilling cycle

G84

Tapping cycle

G84.2

Direct right hand tapping canned cycle

G90

Absolute programming (type B and C systems)

G91

Incremental programming (type B and C systems)

G92

Programming of absolute zero point

G94/G95

Inch per minute/Inch per revolution feed (type A system)

G98/G99

Inch per minute/Inch per revolution feed (type B and C systems)

G96/G97

Constant cutting speed (Constant surface speed)/Constant rotation speed (constant RPM)