Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
12K views4 pages

CNC G & M Code Reference Guide

This document summarizes common G and M codes used in CNC milling and lathe machines. It lists codes for linear and circular interpolation, tool compensation, coordinate systems, canned cycles, and more. Also included are descriptions of codes for controlling coolant, spindle operation, and subprograms.

Uploaded by

Silvia_282008ro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12K views4 pages

CNC G & M Code Reference Guide

This document summarizes common G and M codes used in CNC milling and lathe machines. It lists codes for linear and circular interpolation, tool compensation, coordinate systems, canned cycles, and more. Also included are descriptions of codes for controlling coolant, spindle operation, and subprograms.

Uploaded by

Silvia_282008ro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

CNC Milling G Code List

G code Description G00 Rapid traverse G01 Linear interpolation G02 Circular interpolation CW G03 Circular interpolation CCW G04 Dwell G17 X Y plane selection G18 X plane selection G1! Y plane selection G28 Return to re"erence position G30 2nd# 3rd and 4t$ re"erence position return G40 Cutter co%pensation cancel G41 Cutter co%pensation le"t G42 Cutter co%pensation ri&$t G43 'ool len&t$ co%pensation ( direction G44 'ool len&t$ co%pensation ) direction G4! 'ool len&t$ co%pensation cancel G*3 +ac$ine coordinate s,ste% selection G*4 Wor-piece coordinate s,ste% 1 selection G** Wor-piece coordinate s,ste% 2 selection G*. Wor-piece coordinate s,ste% 3 selection G*7 Wor-piece coordinate s,ste% 4 selection G*8 Wor-piece coordinate s,ste% * selection G*! Wor-piece coordinate s,ste% . selection G.8 Coordinate rotation G.! Coordinate rotation cancel G73 /ec- drillin& c,cle G74 Le"t0spiral cuttin& circle G7. 1ine 2orin& c,cle G80 Canned c,cle cancel G81 Drillin& c,cle# spot 2orin& c,cle G82 Drillin& c,cle or counter 2orin& c,cle G83 /ec- drillin& c,cle G84 'appin& c,cle G8* 3orin& c,cle G8. 3orin& c,cle G87 3ac- 2orin& c,cle G88 3orin& c,cle G8! 3orin& c,cle G!0 42solute co%%and

G!1 G!2 G!8 G!!

5ncre%ent co%%and 6ettin& "or wor- coordinate s,ste% or cla%p at %a7i%u% spindle speed Return to initial point in canned c,cle Return to R point in canned c,cle

CNC Lathe G Code List


G code Description G00 Rapid traverse G01 Linear interpolation G02 Circular interpolation CW G03 Circular interpolation CCW G04 Dwell G0! 87act stop G10 /ro&ra%%a2le data input G20 5nput in inc$ G21 5nput in %% G22 6tored stro-e c$ec- "unction on G23 6tored stro-e c$ec- "unction o"" G27 Re"erence position return c$ecG28 Return to re"erence position G32 '$read cuttin& G40 'ool nose radius co%pensation cancel G41 'ool nose radius co%pensation le"t G42 'ool nose radius co%pensation ri&$t G70 1inis$ %ac$inin& c,cle G71 'urnin& c,cle G72 1acin& c,cle G73 /attern repeatin& c,cle G74 /ec- drillin& c,cle G7* Groovin& c,cle G7. '$readin& c,cle G!2 Coordinate s,ste% settin& or %a79 spindle speed settin& G!4 1eed /er +inute G!* 1eed /er Revolution G!. Constant sur"ace speed control G!7 Constant sur"ace speed control cancel

CNC Milling M Code List


M code Description

+00 +01 +02 +03 +04 +0* +0. +07 +08 +0! +1! +28 +2! +30 +41 +42 +!4 +!* +!. +!8 +!!

/ro&ra% stop :ptional pro&ra% stop 8nd o" pro&ra% 6pindle start "orward CW 6pindle start reverse CCW 6pindle stop 'oo c$an&e Coolant :; ) +ist coolant<Coolant t$ru spindle Coolant :; ) 1lood coolant Coolant :11 6pindle orientation Return to ori&in Ri&id tap 8nd o" pro&ra% =Reset> Low &ear select ?i&$ &ear select Cancel %irrori%a&e +irrori%a&e o" X a7is +irrori%a&e o" Y a7is 6u2pro&ra% call 8nd o" su2pro&ra%

CNC Lathe M Code List


M code Description +00 /ro&ra% stop +01 :ptional pro&ra% stop +02 8nd o" pro&ra% +03 6pindle start "orward CW +04 6pindle start reverse CCW +0* 6pindle stop +08 Coolant on +0! Coolant o"" +2! Ri&id tap %ode +30 8nd o" pro&ra% reset +40 6pindle &ear at %iddle +41 Low Gear 6elect +42 ?i&$ Gear 6elect +.8 ?,draulic c$uc- close +.! ?,draulic c$uc- open +78 'ailstoc- advancin& +7! 'ailstoc- reversin&

+!4 +!* +!8 +!!

+irrori%a&e cancel +irrori%a&e o" X a7is 6u2pro&ra% call 8nd o" su2pro&ra%

You might also like