You are on page 1of 3

G Code Basics

Words acceptable to the EMC interpreter

D tool radius compensation M miscellaneous function (see


F number N below)
G feedrate P line number
H general function (see below) dwell time with G4 and canned
I tool length offset Q cycles
X-axis offset for arcs R key used with G10
J X offset in G87 canned cycle Q feed increment in G83 canned
Y-axis offset for arcs S cycle
K and Y offset in G87 canned cycle T R arc radius
K Z-axis offset for arcs X canned cycle plane
L and Z offset in G87 canned cycle Y S spindle speed
L number of repetitions in canned Z T tool selection
cycles X-axis of machine
and key used with G10 Y-axis of machine
Z-axis of machine

http://www.linuxcnc.org/handbook/gcode/g-code.html6/7/2007 8:24:32 AM
G Code Basics

G Code List

G0 rapid positioning G58 use preset work coordinate system


G1 linear interpolation 5
G2 circular/helical interpolation G59 use preset work coordinate system
(clockwise) 6
G3 circular/helical interpolation (c- G59.1 use preset work coordinate
clockwise) system 7
G4 dwell G59.2 use preset work coordinate
G10 coordinate system origin setting system 8
G17 xy plane selection G59.3 use preset work coordinate
G18 xz plane selection system 9
G19 yz plane selection G80 cancel motion mode (includes
G20 inch system selection canned)
G21 millimeter system selection G81 drilling canned cycle
G40 cancel cutter diameter G82 drilling with dwell canned cycle
compensation G83 chip-breaking drilling canned cycle
G41 start cutter diameter compensation G84 right hand tapping canned cycle
left G85 boring, no dwell, feed out canned
G42 start cutter diameter compensation cycle
right G86 boring, spindle stop, rapid out
G43 tool length offset (plus) canned
G49 cancel tool length offset G87 back boring canned cycle
G53 motion in machine coordinate G88 boring, spindle stop, manual out
system canned
G54 use preset work coordinate system G89 boring, dwell, feed out canned
1 cycle
G55 use preset work coordinate system G90 absolute distance mode
2 G91 incremental distance mode
G56 use preset work coordinate system G92 offset coordinate systems
3 G92.2 cancel offset coordinate systems
G57 use preset work coordinate system G93 inverse time feed mode
4 G94 feed per minute mode
G98 initial level return in canned cycles

http://www.linuxcnc.org/handbook/gcode/g-code.html6/7/2007 8:26:35 AM
G Code Basics

M Word List

M0 program stop M8 flood coolant on


M1 optional program stop M9 mist and flood coolant off
M2 program end M26 enable automatic b-axis clamping
M3 turn spindle clockwise M27 disable automatic b-axis clamping
M4 turn spindle counterclockwise M30 program end, pallet shuttle, and
M5 stop spindle turning reset
M6 tool change M48 enable speed and feed overrides
M7 mist coolant on M49 disable speed and feed overrides
M60 pallet shuttle and program stop

http://www.linuxcnc.org/handbook/gcode/g-code.html6/7/2007 8:27:29 AM

You might also like