| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Please refer to https://snapmaker.github.io/Documentation/gcode/G000-G001 for more G-code reference. This document is not longer maintained. | |||||||||||||||||||||||||
2 | https://snapmaker.github.io/Documentation/gcode/G000-G001 | |||||||||||||||||||||||||
3 | ||||||||||||||||||||||||||
4 | G-code | Format | Reply (example) | Function | Parameters | Note | ||||||||||||||||||||
5 | G0, G1 | G0 [E<pos>] [F<rate>] [X<pos>] [Y<pos>] [Z<pos>] | ok | Linear Move | E<pos>: The length of filament to feed into the extruder between the start and end point F<rate>: The maximum movement rate of the move between the start and end point. The feedrate set here applies to subsequent moves that omit this parameter. X<pos>: A coordinate on the X axis Y<pos>: A coordinate on the Y axis Z<pos>: A coordinate on the Z axis | |||||||||||||||||||||
6 | G2, G3 | G2 [E<pos>] [F<rate>] I<offset> J<offset> R<radius> [X<pos>] [Y<pos>] [Z<pos>] | ok | Controlled Arc Move | G2 adds a clockwise arc move to the planner; G3 adds a counter-clockwise arc. An arc move starts at the current position and ends at the given XYZ, pivoting around a center-point offset given by I and J or R. I<offset>: X offset J<offset>: Y offset R<radius>: radius Others the same as G0, G1 | |||||||||||||||||||||
7 | G4 | G4 [P<time in ms>] [S<time in sec>] | ok | Dwell | Dwell pauses the command queue and waits for a period of time. [P<time in ms>], [S<time in sec>]: Amount of time to dwell | |||||||||||||||||||||
8 | G28 | G28 [X] [Y] [Z] | X:-4.50 Y:-3.50 Z:-10.00 E:0.00 Count X: -1800 Y:-1400 Z:-4000 ok | Auto Home | [X]: Flag to go back to the X axis origin [Y]: Flag to go back to the Y axis origin [Z]: Flag to go back to the Z axis origin | |||||||||||||||||||||
9 | G90 | G90 | ok | Absolute Positioning | ||||||||||||||||||||||
10 | G91 | G91 | ok | Relative Positioning | ||||||||||||||||||||||
11 | G92 | G92 [E<pos>] [X<pos>] [Y<pos>] [Z<pos>] | ok | Set Position | Set the current position to the values specified. [E<pos>]: New extruder position [X<pos>]: New X axis position [Y<pos>]: New Y axis position [Z<pos>]: New Z axis position | |||||||||||||||||||||
12 | M3 | M3 [P<power in percentage>] [S<power in strength>] | ok | Laser On / Spindle On | Set laser power, or spindle speed (clockwise). [P<power in percentage>]: laser power or spindle speed (clockwise), range from 0 to 100 [S<power in strength>]: laser power or spindle speed (clockwise), range from 0 to 255 | |||||||||||||||||||||
13 | M5 | M5 | ok | Laser Off / Spindle Off | Turn off the laser power / spindle and PWM. | |||||||||||||||||||||
14 | M17 | M17 | ok | Enable Steppers | Enable power on all stepper motors | |||||||||||||||||||||
15 | M18 | M18 | ok | Disable steppers | Disable power on all stepper motors | |||||||||||||||||||||
16 | M104 | M104 [S<temp>] | ok | Set Hotend Temperature | Set a new target hot end temperature without waiting | |||||||||||||||||||||
17 | M105 | M105 | ok T:210.0 /0.0 B:50.0 /0.0 | Report Temperatures | Request a temperature report | |||||||||||||||||||||
18 | M109 | M109 [S<temp>] | Wait for Hotend Temperature | Sets a new target hot end temperature and waits for the target temperature to be reached. [S<temp>]: Target temperature. | ||||||||||||||||||||||
19 | M112 | M112 | KILLED. | Emergency Stop | Shuts down the machine, turns off all the steppers and heaters. | |||||||||||||||||||||
20 | M114 | M114 | Get Current Position | |||||||||||||||||||||||
21 | M140 | M140 [S<temp>] | ok | Set Bed Temperature | Set a new target heated bed temperature. [S<temp>]: Target temperature. | |||||||||||||||||||||
22 | M190 | M190 [S<temp>] | ok | Wait for Bed Temperature | Sets a new target bed temperature and waits for the target temperature to be reached. [S<temp>]: Target temperature. | |||||||||||||||||||||
23 | M206 | M206 [X<offset>] [Y<offset>] [Z<offset>] | ok | Set Home Offsets | Apply a persistent offset to the native home position and coordinate space. [X<offset>]: X home offset [Y<offset>]: Y home offset [Z<offset>]: Z home offset | |||||||||||||||||||||
24 | M503 | M503 | echo:Steps per unit: echo: M92 X400.00 Y400.00 Z400.00 E92.60 echo:Maximum feedrates (mm/s): echo: M203 X300.00 Y300.00 Z5.00 E25.00 ... echo:Home offset (mm): echo: M206 X-4.50 Y-3.50 Z-8.00 ... ok | Report Settings | Print a concise report of all current settings (in SRAM) to the host console. | |||||||||||||||||||||
25 | M1005 | M1005 | Firmware Version: Snapmaker-GD32Base-1.2 Release Date: Dec 18 2017 ok | Firmware Information | Multiple line string representing the firmware version. | |||||||||||||||||||||
26 | M1006 | M1006 | Tool Head: 3DP ok | Query Tool Head | Query tool head type. | |||||||||||||||||||||
27 | M1007 | M1007 | Homed: YES Selected origin num: 1 Selected == Current: YES Origin offset X: 0 Origin offset Y: 0 Origin offset Z: 0 | Query Coordinate System | SM 2.0 only | |||||||||||||||||||||
28 | M1009 | M1009 [X<offset>] [Y<offset>] [Z<offset>] | ok | Modify Coordinate Offset | Modify coordinate offset between machine coordinate and platform coordinate (for 3D Printing). Can be regarded as a relative postioning version of M206. [X<offset>]: Offset on the X axis [Y<offset>]: Offset on the Y axis [Z<offset>]: Offset on the Z axis | SM Original only | ||||||||||||||||||||
29 | M1010 | M1010 [S<value>] | Enclosure: On ok | Set Enclosure Door Detection | Query / enable / disable enclosure door detection for laser. [S<value>]: If value if 1, enable the enclosure door detection, otherwise disable the enclosure door detection. If S option is not specified, the report current status of door detection. | |||||||||||||||||||||
30 | ||||||||||||||||||||||||||
31 | ||||||||||||||||||||||||||
32 | References | |||||||||||||||||||||||||
33 | 1 | Marlin G-code References | ||||||||||||||||||||||||
34 | 2 | LinuxCNC | ||||||||||||||||||||||||
35 | 3 | RepRap G-code Cheat Sheet | ||||||||||||||||||||||||
36 | ||||||||||||||||||||||||||
37 | ||||||||||||||||||||||||||
38 | ||||||||||||||||||||||||||
39 | ||||||||||||||||||||||||||
40 | ||||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 |