Table 2 
Words acceptable to the EMC interpreter




I

J

K

L

tool radius compensation number 
feedrate 
general function (see below) 
tool length offset 
X-axis offset for arcs 
X offset in G87 canned cycle 
Y-axis offset for arcs 
and Y offset in G87 canned cycle 
K Z-axis offset for arcs 
and Z offset in G87 canned cycle 
L number of repetitions in canned cycles 
and key used with G10


P


R





Z

miscellaneous function (see below) 
line number 
dwell time with G4 and canned cycles 
key used with G10 
Q feed increment in G83 canned cycle 
R arc radius 
canned cycle plane 
S spindle speed 
T tool selection 
X-axis of machine 
Y-axis of machine 
Z-axis of machine



Table 3 
Definition of Common Axes
X - Primary Linear Axis 
 
 
 
 
 
Y - Primary Linear Axis 
 
 
 
 
 
Z - Primary Linear Axis
U - Secondary axis parallel to X 
 

V - Secondary axis parallel to Y 
 
 

W- Secondary axis parallel to Z

A - Angular axis around X axis

B - Angular axis around Y axis 
 

C - Angular axis around Z axis



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




 
 

G53          motion in machine coordinate system
G54          use preset work coordinate system 1
G55          use preset work coordinate system 2
G56          use preset work coordinate system 3
G57          use preset work coordinate system 4
G58          use preset work coordinate system 5
G59          use preset work coordinate system 6
G59.1       use preset work coordinate system 7
G59.2       use preset work coordinate system 8
G59.3       use preset work coordinate system 9

  

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


 
 

Table 6 
G and M Code Modal Groups
group 1 = {G0, G1, G2, G3, G80, G81, G82, G83, G84, G85, G86, G87, G88, G89} - motion 
group 2 = {G17, G18, G19} - plane selection 
group 3 = {G90, G91} - distance mode 
group 5 = {G93, G94} - spindle speed mode 
group 6 = {G20, G21} - units 
group 7 = {G40, G41, G42} - cutter diameter compensation 
group 8 = {G43, G49} - tool length offset 
group 10 = {G98, G99} - return mode in canned cycles 
group12 = {G54, G55, G56, G57, G58, G59, G59.1, G59.2, G59.3} coordinate system selection
group 2 = {M26, M27} - axis clamping 
group 4 = {M0, M1, M2, M30, M60} - stopping 
group 6 = {M6} - tool change 
group 7 = {M3, M4, M5} - spindle turning 
group 8 = {M7, M8, M9} - coolant 
group 9 = {M48, M49} - feed and speed override bypass