AXYZ CNC ROUTER G CODE LIST
Gcode Description Format
0 Rapid Positioning G0 [X] [Y] [Z] [F]
1 Linear interpolation G1 [X] [Y] [Z] [F]
2 Arc Movement (clockwise) G2 [X] [Y] [Z] [I] [J] [K] [F]
3 Arc Movement (counter-clockwise) G3 [X] [Y] [Z] [I] [J] [K] [F]
4 Pause (pause time specified in seconds) G4 [P]
17 XY Plane Selection G17
18 ZX Plane Selection G18
19 YZ Plan Selection G19
20 File is in Imperial Mode (inches) G20
21 File is in Metric Mode (mm) G21
28 Return machine to origin position G28
40 Turn off tool compensation G40
41 Tool radius compensation (left) G41
42 Tool radius compensation (right) G42
53 Switch reference to use machine zero (origin) G53
instead of user zero (origin)
54 Switch to reference G54 machine origin G54
55 Switch to reference G55 user origin G55
56 Switch to reference G56 user origin G56
57 Switch to reference G57 user origin G57
58 Switch to reference G58 user origin G58
59 Switch to reference G59 user origin G59
80 Cancel canned cycle G80
81 Simple drilling with no dwell G81 [R] [L] [F]
82 Drilling cycle with dwell G82 [R] [L] [P] [F]
83 Peck drilling cycle G83 [R] [L] [P] [Q] [F]
90 Absolute Programming G90
91 Relative Programming G91
92 Temporary offsets applied (soft home) G92 [X] [Y] [Z]
92.2 Disable temporary offsets G92.2
98 Return to initial Z level in canned cycle G98
99 Return to retract height in canned cycle G99
G Code Letter Definitions
X X co-ordinate F Feed Rate
Y Y co-ordinate P Pause time (in seconds)
Z Z co-ordinate R Z Retract height (canned cycle)
I Center of arc along X axis L Canned Cycle Repeat
J Center of arc along Y axis Q Peck distance
K Center of arc along Z axis
AXYZ CNC ROUTER M CODE LIST
M Code Description Format
0 Programmed Pause 0
1 Programmed Pause 1
2 End Program Parsing M2
3 Spindle on Forward/Turn on device (Spindle speed defined by S) M3 or M3S#
4 Spindle on Reverse (Spindle speed defined by S) M3S#
5 Spindle / Device off M5
6 Change Tool M6T#
7 Turn mister on M7
8 Turn mister on M8
9 Turn mister off M9
30 End program parsing M30
60 End program parsing M60
70 Multisheets, denotes start of new sheet M70
98 Jump to subroutine, P specifies subroutine, L is for repeats (optional) M98P#L#
99 End of subroutine M99
The 800 series M codes are for A2MC peripheral devices
800 Fires the pneumatic drill, entire drill cycle is run M800
801 Activate an air tool (down) (e.g. marker pen) M801
802 Deactivate an air tool (up) M802
803 Switches dust manifold to current position (this is normally automatic) M803
804 Lower Boring Unit Saw M804
805 Raise Boring Unit Saw M805
808 Turn on Vacuum #1 (Vacuum Board required) M808
809 Turn off Vacuum #1 (Vacuum Board required) M809
810 Turn on Dust Collector (Vacuum Board required) M810
811 Turn off Dust Collector (Vacuum Board required) M811
812 Turn on Gang Drill (Gangdrill board required) M812
813 Turn off Gang Drill (Gangdrill board required) M813
814 Turn on Vacuum #2 (Vacuum Board required) M814
815 Turn off Vacuum #2 (Vacuum Board required) M815
820 Turn on dispenser nozzle M820
821 Turn off dispenser nozzle M821
822 Fire the tamper or the drader welder gun M822
823 Reset current tangential knife M823
830 Z Touch routine M830
831 Move up from S-mouse seek M831
888 Read servo motors positions M888