G Codes (Preparatory Functions)

A G code specifies the mode in which the tool travels along its programmed axis

M = Mill,    L = Lathe,     W = Wire EDM,     A = All

 
G00

G01

G02

G03

G04

G05

G06

G07

G08

G09

G11

G12

G13


G14



G15


G17

G18

G19

G20

G21

G22

G23

G26

G27


G28

G29

G30

G32

G40

G41

G42

G43

G44

G48

G49


G50


G51

G52


G53

G54

G55

G56

G57

G58

G59

G60

G74

G75


G76

G80

G80

G81

G82

G83

G84

G85

G90

G91

G92

G94

G96

G97

G98

G99

Rapid Positioning ( A )

Linear Interpolation ( A )

Circular Interpolation Clockwise ( A )

Circular Interpolation Counter Clockwise ( A )

Dwell ( A )

Mirror X Values ( A )

Mirror Y Values ( A )

Mirror Z Values ( A )

X Y Exchange ( W )

Mirror X & Y Exchange Cancel ( W )

Block Skip On ( W )

Block Skip Off ( W )

Reference Return On ( L )
  Breakage Recovery On ( W )

Helical Interpolation Clockwise ( M )
  Reference Return Off ( L )
  Breakage Recovery Off ( W )

Helical Interpolation Counter Clockwise ( M )
  Breakage Recovery On - Discharge Off, Low Pressure Flush ( W )

X-Y Plane ( A )

X-Z Plane ( M | L )

Y-Z Plane ( M | L )

Units Inches ( A )

Units Metric ( A )

Software Limit On ( W )

Software Limit Off ( W )

Figure Rotation On ( W )

Automatic Zero return, Check ( M )
  Figure Limit Off ( W )

Automatic Zeference Point Return ( A )

Set main reference Point ( W )

Return To Coorinate System Set ( W )

Thread Cutting ( L )

Compensation Cancelled ( A )

Compensation Left ( A )

Compensation Right ( A )

Tool Height Compensation ( M )

Tool Height Compensation ( M )

Edge Control On ( W )

Tool Height Compensation ( M )
 Edge Control Off ( W )

Program Origon At Current Position ( L )
 Taper Machine Cancel ( W )

Taper Incline Left ( W )

Local Coordiante Preset ( M | L )

  Taper Incline Right ( W )

Workpiece Coordinate Selection ( A )

Machine Coordinate Preset ( A )

Machine Coordinate Preset ( A )

Machine Coordinate Preset ( A )

Machine Coordinate Preset ( A )

Machine Coordinate Preset ( A )

Machine Coordinate Preset ( A )

Automatic Zero Return ( W )

4 Axis Offset On ( W )

X Axis Grooving Cycle ( L )
 4 Axis Offset Off ( W )

Single Pass Thread Cycle ( L )

Cancel Cycle ( M | L )

Shifts Until Contact Detector Operates ( W )

Drilling Cycle ( M | L )

Drilling Cycle With Dwell ( M | L )

Peck DSrill Cycle ( M | L )

Tapping Cycle ( M | L )

Boring Cycle ( M | L )

Absolute Coordinates ( A )

Incremental Coordinates ( A )

Thread Cycle ( L )

Face Cutting Cycle ( L )

Constant Surface Speed ( L )

Constant Revolution Per Minute ( L )

Feed Rate Inch Per Minute ( L )

Feed Rate Inch Per Revolution ( L )



M Codes (Miscellaneous Functions)

An M code specifies functions not related to dimensional or axes movement

M = Mill,    L = Lathe,     W = Wire EDM,     A = All

 
M00

M01

M02

M03

M04

M05

M06

M07

M08

M09

M23

M24

M30

M30

M30

M30

M68

M69

M98

M99

Program Temporary Stop

Program Optional Stop

Program End

Spindle Start Clockwise

Spindle Start Counter Clockwise

Spindle Stop

Tool Change

Oil Mist

Coolant On ( M | L )

Coolant Off ( M | L )

Angle Out Of Thread On ( L )

Angle Out Of Thread Off ( L )

Reset And Rewind ( A )

Low Gear Spindle Range ( L )

Intermediate Gear Spindle Range ( L )

High Gear Spindle Range ( L )

Opens the Chuck ( L )

Closes The Chuck ( L )

Sub Program Call ( A )

Sub Program End ( A )



Addresses

An Address identifies the type of infomations that follows

M = Mill,    L = Lathe,     W = Wire EDM,     A = All

 
A

B

C

D


F

G

H

I

J

K

M

N

P

Q

R


S

T

U

V

W

X

Y

Z

Index About The X Axis ( M )

Indix About The Y Axis( M)

Index About The Z Axis ( M )

Cutter Radius Compensation Number ( M )
  Cutting Depth for Turning And Boring Cycles ( L )

Feed Rate ( M | L )

Preparatory Function ( M | L )

Tool Length Compensation Number ( M )

Arc Center For The X Axis( M | L )

Arc Center For The Y Axis ( M )

Arc Center For The Z Axis ( M | L )

Miscellaneous Function ( A )

Block Number ( A )

Dwell Time

Feed Rate ( A )

Arc radius ( M | L )
  Drill Retract ( M )

Spindle Speed Function ( M | L )

Tool Function ( A )

Incremental X value ( A )

Incremental Y value ( M | W )

Incremental Z value ( M | L )

X Axis Coordinate Value ( A )

Y Axis Coordinate Value ( A )

Z Axis Coordinate Value ( A )