G-Codes

Code Description
G0 Rapid motion
G1 Linear motion at programmed feed rate
G2, G3 Arc motion at programmed feed rate
G17, G18, G19 Plane select
G20, G21 Select units
G28 Rapid move to machine home [0,0,0,0]
G28 [X#|Y#|Z#|A#] Rapid move to machine home through intermediate position
G53 Move in machine coordinates
G90, G91 Distance mode

M-Codes

Code Description
M2, M30 Program End
M3, M4, M5 Spindle control
M6 Tool change
M8, M9 Flood coolant control (OUTPUT1)