-
Notifications
You must be signed in to change notification settings - Fork 13
/
gcodes.txt
250 lines (246 loc) · 9.63 KB
/
gcodes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
G0 | Move to the given coordinates.
G1 | Move to the given coordinates
G2 | Clockwise circular motion
G3 | Counter-clockwise motion
G4 | Dwell S<seconds> or P<milliseconds - GRBL: float seconds>
G10 | Do firmware extruder retract
G11 | Do firmware extruder un-retract
G10 Ln | n is 2 or 20 set workspace coordinates, Pw is WCS
G10 L1 | Pn Xnnn Ynnn Znnn set extruder tool offset
G17 | Select XYZ plane
G18 | Select XZY plane
G19 | Select YZX plane
G20 | Inch mode
G21 | Millimeter mode
G28 | Reprap: Home the given axis - GRBL: park
G28.1 | Set Predefined Position
G28.2 | Reprap: Park - GRBL: Home
G28.3 | Set Manual Homing position
G28.4 | Manual Homing based on actuator position
G28.5 | Clears the homed flag for the specified axis, or all if not specifed
G28.6 | Shows the homing status of each axis
G28.7 | Home the slaved axis on the specified axis, set to 1 to adjust
G29 | Tests the bed and outputs the bed heights. P selects the strategy to use
G30 | Simple Z probe at current XY, G30.1 leaves probe where it is.
G31 | Depends on levelling strategy selected, delta does delta grid
G32 | Execute current levelling strategy or for delta do trim calibration
G38.2 | Standard probe in direction XYZ, halt on error
G38.3 | Standard probe in direction XYZ
G38.4 | probe away from work in direction XYZ, halt on error
G38.5 | probe away from work in direction XYZ
G43.1 | set tool offset increment
G43.2 | set tool offset increment and move
G49 | clear tool offset
G53 | next move is in MCS
G54-G59 | select workspace coordinate system
G90 | set Absolute mode
G91 | set Relative mode
G92 | Set global workspace coordinate system
G92.1 | Reset G92
G92.4 | manually set homing (MCS) for XYZ
M0 | Pauses job until a button is clicked, handled by Smoopi if enabled
M2 | End of job
M3 | Starts the spindle. S<speed in RPM>
M5 | Stops the spindle
M7 | Starts the mist switch (for CNC)
M8 | Starts the flood switch (for CNC)
M9 | Stops the mist and flood at same time (for CNC)
M17 | Enable stepper motors
M18 | Disable stepper motors
M20 | List SD card files
M21 | Initialize the SD card
M23 | Select a file
M24 | Start or resume SD card print
M25 | Pause SD card print
M26 | Reset a SD card print
M27 | Report print progress
M28 | Begin write to SD card
M29 | End write to SD card
M30 | Delete a file on the SD card (or end of job in GRBL mode)
M32 | Select a file, and start playing it
M48 | Test zprobe repeatability [P<iterations> Z<feedrate>]
M82 | Set absolute mode for extruder only
M83 | Set relative mode for extruder only
M84 | Disable steppers
M92 | Set axis steps per mm for XYZ axis and/or ABC axis
M104 | Set Extruder Temperature. S<temperature>
M105 | Read current temp
M106 | Turn fan ON
M107 | Turn fan OFF
M109 | Set Extruder Temperature and Wait S<temperature>
M110 | Set current line number
M112 | Halt all operations, turn off heaters, go into Halt state
M114 | Show current position of all axes, XYZ will be the last requested position
M114.1 | Show current real time position of all axes
M114.2 | Show current real time machine position of all axes
M114.3 | Show current real time actuator position of all actuators
M114.4 | Show last milestone
M114.5 | Show last machine position
M117 | Display message on LCD, blank message will clear it
M119 | Show limit switch status
M120 | Push the current state
M121 | Pop the last saved state
M140 | Set Bed Temperature S<temperature>
M143 | Set Maximum Temperature S<heater index> P<temperature>
M190 | Set Bed Temperature and Wait S<temperature>
M200 | Set E units for volumetric extrusion D<filament diameter>
M203 | Set maximum cartesian feedrate <mm/sec>
M203.1 | Set maximum actuator feedrate <mm/sec>
M203 | Set maximum volumetric rate V<rate> in mm³/sec
M204 | Set default acceleration S<acceleration> in mm/sec²
M205 | set X<junction deviation> Z<z junction deviation> S<minimum planner speed>
M206 | Set homing offsets
M207 | Set retract length S<length> F<feedrate> mm/min Z<additional zlift> Q<zlift feedrate> mm/min
M208 | Set retract recover length S<mm> F<feedrate> mm/min
M211 | Show softendstops status, S0 turns off soft endstops
M220 | set speed factor override S<percent>
M221 | set flow rate factor override or Laser power override S<percent>
M301 | set PID parameters X<i_max> Y<max_pwm> S<heater> P<nnn> I<nnn> D<nnn> (V2) Z<ponm>
M303 | Begin PID auto-tune cycle (V2) P<hotendid> or (V1) E<hotend> S<temperature>
M304 | Abort PID auto-tuning (V1 only, ^X for V2)
M305 | Set parameters for the thermistor, B<beta> R<r0> X<t0> P<ID> of the thermistor
M306 | Set homing offsets based on current position
M370 | clears the ZGrid and the bed levelling is disabled
M374 | save calibration grid
M374.1 | delete calibration grid
M375 | load calibration grid
M375.1 | display the current grid
M400 | Wait for the queue to be empty
M404 | Filament detector temporarily set parameters S<second per check> P<pulses per mm> H<leave heaters on>
M405 | Disable Filament detector
M406 | Enable Filament detector
M407 | Get filament detector information
M500 | Save settings to an override file
M501 | Load config-override file (V1 optionally specifying the extension)
M502 | Delete the override file
M503 | Display overridden settings
M504 | Save the settings to an override file with specified extension (V1 only)
M557 | Defines probe points
M561 | Clears the plane and the bed leveling is disabled
M565 | Defines the probe offsets from the nozzle or tool head
M600 | Suspend print in progress
M600.1 | Suspend print in progress leave heaters on
M601 | Resume suspended print
M665 | Set arm solution specific settings: Delta - L<arm length> R<arm radius> Z<max height> S<delta segs/sec> U<mm/line segment>
M666 | sets trim values for the endstops
M670 | ZProbe feedrates S<slow> K<fast> R<return> Z<maxz> H<probe ht> I<invert> D<dwell>
M906 | Set Current in milliamps X<n> Y<n> Z<n>
M907 | Set Current in Amps X<n> Y<n> Z<n>
M909 | Set microsteps X<n> Y<n> Z<n> (1/n)
M911.x | Setup advanced driver chips that support SPI setup
M957 | Report the current spindle speed and PWM value
M958 | Report the current spindle PID parameters
M999 | Reset from a halted state caused by limit switch
abort | abort currently running sd file
break | break into debugger
calc_thermistor | [-s0] T1,R1,T2,R2,T3,R3 calculate the Steinhart Hart coefficients for a thermistor
cat | <file> [limit] [-d 10] print contents of file with optional line limit and delay
cd | <dir> change directory to dir
config-set | <configuration_source> <configuration_setting> <value> set config as specified source is usually sd
date | [YYMMDDhhmmss] set or get current date/time
dfu | enter dfu boot loader
fire | <0-100>|off|status> fire the laser at given power or return to auto
get fk | [x,y,z] do forward kinematics on given coordinates using current arm solution
get ik | [x,y,z] do inverse kinematics on given coordinates using current arm solution
get pos | print all postion data
get state | print gcode state
get status | print query information
get temp | <bed|hotend> show temperature of hotend or bed
get wcs | print WCS settings
get volts | print out the voltages in the system
load | <file> loads a configuration override file from specified name or config-override
ls | [-s] <dir> lists directory contents (with size)
md5sum | <file> prints md5 sum of the given file
mem | [-v] shows current memory usage
mv | <file> <newfile> rename file to newfile
net | show network state
play | <file> [-v] run file form sdcard. optionally print every line
progress | shows progress of current running sd file
pwd | print current directory
remount | remount sdcard
reset | reset smoothie
resume | resume the suspended run
rm | <file> delete file
save | <file> saves a configuration override file as specified filename or as config-override
set_temp | <bed|hotend> <temp> set temperature of hotend or bed
suspend | [h] suspend the current run (leave heaters on if h specified)
switch | <name> [value] return state of names switch, or set its state
test acc | <axis> <units> <units/sec> moves the specified actuator the given number of units
test circle | <radius> <iterations> [feedrate] draws a circle of given radius
test jog | <axis> <distance> <iterations> [feedrate] jogs the specified axis the given distance
test pulse | <axis> <iterations> sends a step pulse every 5 seconds to the given axis
test raw | <axis> <steps> <steps/sec> issues the given number of steps to the specified axis
test square | <size> <iterations> [feedrate] draws a square of given size
thermistors | print out the predefined thermistors
upload | <filename> saves a stream of text to the named file
version | prints current firmware version
$G | same as get state
$H | Home
$I | same as get state (no ok)
$J | [Xnnn] [Ynnn] [Znnn] [Snnn] issue jog command axis can be XYZABC optional S is scale of max_rate
$S | <switch names> get switch state(s)
$X | release ALARM state
$# | same as get wcs
PA3 | GH4 (ADC1_6)
PA4 | GF5
PA5 | GE9 (SPI1_SCK)
PA6 | GE8 (SPI1_MISO)
PA8 | GB9 (I2C3_SCL)
PB1 | GF3
PB5 | GE7 (SPI1_MOSI)
PB9 | GB4 (UART1 TX)
PB11 | GD5 (UART0 RX)
PB12 | GH9
PC0 | GG5
PC2 | GH5 (ADC1_4)
PC3 | GH3 (ADC1_5)
PC13 | GI9
PD8 | GD4 (UART0 TX)
PD9 | GB3
PD10 | GC5
PD12 | GC4
PD14 | GC3
PD15 | GE6
PE4 | GI7
PE5 | GA7 (mot SPI MISO)
PE6 | GA8 (mot SPI MOSI)
PE7 | GD3
PE8 | GE3
PE9 | GD6 (PWM1_1)
PE11 | GD7 (PWM1_2)
PE12 | GA9 (mot SPI CLK)
PE13 | GD8 (PWM1_3)
PE14 | GD9 (PWM1_4)
PF0 | GG8 (I2C2_SDA)
PF1 | GG9 (I2C2_SCL)
PF2 | GH6
PF4 | GI5 (ADC3_4)
PF6 | GI4 (ADC3_3)
PF10 | GI3 (ADC3_1)
PF15 | GG6
PG0 | GF6
PG1 | GF8
PH2 | GG3
PH3 | GG7
PH4 | GG4
PH7 | GH8
PH8 | GB8 (I2C3_SDA)
PH14 | GB5 (UART1 RX)
PI2 | GC9 (PWM2_4)
PI5 | GC6 (PWM2_1)
PI6 | GC7 (PWM2_2)
PI7 | GC8 (PWM2_3)
PI8 | GI6
PI9 | GI8
PI10 | GH7
PJ2 | GF9
PJ3 | GF7
PJ4 | GF4
PJ6 | GA3
PJ7 | GE4
PJ8 | GE5
PJ9 | GA4
PJ10 | GA5
PJ11 | GA6
PK0 | GB6
PK1 | GB7