X40 / X40 PRO G-code command list
Here is a comparison of the Weedo original firmware against the X40 PRO firmware from the community. Every Weedo X40 printer can easily be updated to the X40 PRO configuration. The concept is aimed at professional users and not beginners.
- X40 = Stock firmware from Weedo
- X40 PRO = Optimized community firmware
G-code | Discription | Supported | Information | |
---|---|---|---|---|
X40 |
X40 PRO |
|||
G0 - G1 | Linear Move | YES | YES | |
G2 - G3 | Arc or Circle Move | NO | YES | X40 PRO: To use it, the line segments must be converted into arcs in the gcode. This can be done, for example, using the Cura plugin or with Octoprint. |
G4 | Dwell | YES | YES | |
G5 | Bézier cubic spline | NO | NO | disable by firmware |
G10 | Retract | NO | NO | disable by firmware |
G11 | Recover | NO | NO | disable by firmware |
G12 | Clean the Nozzle | NO | NO | disable by firmware |
G17 - G19 | CNC Workspace Planes | NO | NO | no hardware support |
G20 - G21 | Inch Mode | NO | NO | disable by firmware |
G26 | Mesh Validation Pattern | NO | NO | disable by firmware |
G27 | Park toolhead | YES | YES | |
G28 | Auto Home | YES | YES | |
G29 | Bilinear Bed Leveling | YES | YES | |
G30 | Single Z probe | YES | YES | |
G31 - G32 | Dock or undock sled | NO | NO | no hardware support |
G33 | Delta Auto Calibration | NO | NO | no hardware support |
G34 | Z Steppers Auto-Alignment | NO | NO | no hardware support |
G38 | Probe target | NO | NO | disable by firmware |
G42 | Move to mesh coordinate | YES | YES | |
G53 - G59 | Workspace Coordinate System | NO | NO | no hardware support |
G60 - G61 | Save position | NO | NO | disable by firmware |
G76 | Probe temperature calibration | NO | NO | no hardware support |
G80 | Cancel Current Motion Mode | NO | NO | disable by firmware |
G90 | Use Absolute Coordinates | YES | YES | |
G91 | Use Relative Coordinates | YES | YES | |
G92 | Set current position to coordinates given | YES | YES | |
M0 | Unconditional stop (printing pause) |
NO | YES | The M0 command only works correctly when printing from the microSD card. Continue printing via GUI. |
M3 - M5 | Spindle / Laser | NO | NO | no hardware support |
M7 - M9 | Coolant Controls | NO | NO | no hardware support |
M16 | Expected Printer Check | NO | NO | disable by firmware |
M17 | Enable Steppers | YES | YES | |
M18, M84 | Disable steppers | YES | YES | |
M20 | List SD card | YES | YES | |
M21 | Init SD card | YES | YES | |
M22 | Release SD card | YES | YES | |
M23 | Select SD file | YES | YES | |
M24 | Start or Resume SD print | YES | YES | |
M25 | Pause SD print | YES | YES | |
M26 | Set SD position | YES | YES | |
M27 | Report SD print status | YES | YES | |
M28 | Start SD write | YES | YES | |
M29 | Stop SD write | YES | YES | |
M30 | Delete file from SD | YES | YES | |
M31 | Print time | YES | YES | |
M32 | Select and Start | YES | YES | |
M33 | Get Long Path | YES | YES | |
M34 | SDCard Sorting | NO | NO | disable by firmware |
M42 | Set Pin State | YES | YES | |
M43 | Display pin status | YES | YES | |
M48 | Probe Accuracy Test | NO | NO | disable by firmware |
M73 | Set Print Progress | YES | YES | |
M75 | Start the print job timer | YES | YES | |
M76 | Pause the print job timer | YES | YES | |
M77 | Stop the print job timer | YES | YES | |
M78 | Print Job Stats | YES | YES | |
M80 | Power On | NO | NO | no hardware support |
M81 | Power Off | YES | YES | |
M82 | E Absolute | YES | YES | |
M83 | E Relative | YES | YES | |
M84 | Motor Off | YES | YES | |
M85 | Inactivity Shutdown | YES | YES | |
M92 | Set Axis Steps-per-unit | YES | YES | |
M100 | Free Memory | NO | NO | disable by firmware |
M104 | Set Hotend Temperature | YES | YES | |
M105 | Report Temperatures | YES | YES | |
M106 | Set Fan Speed | YES | YES | |
M107 | Fan Off | YES | YES | |
M108 | Break and Continue | YES | YES | |
M109 | Wait for Hotend Temperature | YES | YES |
X40: X40 PRO: |
M110 | Set Line Number | YES | YES | |
M111 | Debug Level | YES | YES | |
M112 | Emergency Stop | YES | YES | |
M113 | Host Keepalive | YES | YES | |
M114 | Get Current Position | YES | YES | |
M115 | Firmware Info | YES | YES | |
M117 | Set LCD Message | NO | NO | not support by WTDGUS GUI |
M118 | Serial print | YES | YES | |
M119 | Endstop States | YES | YES | |
M120 | Enable Endstops | YES | YES | |
M121 | Disable Endstops | YES | YES | |
M122 | TMC Debugging | NO | NO | no hardware support |
M125 | Park Head | NO | NO | disable by firmware |
M126 - M129 | Baricuda | NO | NO | no hardware support |
M140 | Set Bed Temperature | YES | YES | X40 PRO: Can be used up to 80° C. For the first layer also up to 90°C |
M141 | Set Chamber Temperature | NO | NO | no hardware support |
M145 | Set Material Preset | NO | NO | replaced by WTDGUS GUI function |
M149 | Set Temperature Units | NO | NO | disable by firmware |
M150 | Set RGB(W) Color | NO | NO | no hardware support |
M155 | Temperature Auto-Report | YES | YES | |
M163 - M166 | Mix Factor | NO | NO | no hardware support |
M190 | Wait for Bed Temperature | YES | YES | |
M200 | Set Filament Diameter | NO | NO | disable by firmware |
M201 | Set Print Max Acceleration | YES | YES | |
M203 | Set Max Feedrate | YES | YES | |
M204 | Set Starting Acceleration | YES | YES | |
M205 | Set Advanced Settings | YES | YES | |
M206 | Set Home Offsets | YES | YES | |
M207 | Set Firmware Retraction | NO | NO | disable by firmware |
M208 | Firmware Recover | NO | NO | disable by firmware |
M209 | Set Auto Retract | NO | NO | disable by firmware |
M211 | Software Endstops | YES | YES | |
M217 | Filament swap parameters | YES | YES | |
M218 | Set Hotend Offset | YES | YES | |
M220 | Set Feedrate Percentage | YES | YES | |
M221 | Set Flow Percentage | YES | YES | |
M226 | Wait for Pin State | YES | YES | |
M240 | Trigger Camera | NO | NO | no hardware support |
M250 | LCD Contrast | NO | NO | no hardware support |
M260 - M261 | i2c | NO | NO | no hardware support |
M280 - M281 | servo | NO | NO | no hardware support |
M290 | Babystep | YES | YES |
X40: X40 PRO: |
M300 | Play Tone | NO | NO | no hardware support |
M301 | Set Hotend PID | YES | YES | X40 PRO: Parameter optimized for X40 Community Coolingsystem |
M302 | Cold Extrude | YES | YES | |
M303 | PID autotune | YES | YES | |
M304 | Set Bed PID | NO | NO | disable by firmware |
M305 | User Thermistor Parameters | NO | NO | disable by firmware |
M350 | Set micro-stepping | NO | NO | no hardware support |
M351 | Set Microstep Pins | NO | NO | no hardware support |
M355 | Case Light Control | NO | NO | no hardware support |
M380 - M381 | solenoid | NO | NO | no hardware support |
M400 | Finish Moves | YES | YES | |
M401 | Deploy Probe | NO | NO | no hardware support |
M402 | Stow Probe | NO | NO | no hardware support |
M403 | MMU2 Filament Type | NO | NO | disable by firmware |
M404 - M407 | Filament Width Sensor | NO | NO | no hardware support |
M410 | Quickstop | YES | YES | |
M412 | Filament Runout | YES | YES | Fixed with Release 1.2.5.8 |
M413 | Power-loss Recovery | YES | YES | |
M420 | Bed Leveling State | YES | YES | |
M421 | Set Mesh Value | YES | YES | |
M422 | Set Z Motor XY | NO | NO | disable by firmware |
M425 | Backlash compensation | NO | NO | disable by firmware |
M428 | Home Offsets Here | YES | YES | |
M486 | Cancel Objects | NO | NO | disable by firmware |
M500 | Save Settings | YES | YES | |
M501 | Restore Settings | YES | YES | |
M502 | Factory Reset | YES | YES | |
M503 | Report Settings | YES | YES | |
M504 | Validate EEPROM contents | YES | YES | |
M524 | Abort SD print | YES | YES | |
M540 | Endstops Abort SD | NO | NO | disable by firmware |
M569 | Set TMC stepping mode | NO | NO | no hardware support |
M600 | Filament Change | NO | NO | replaced by WTDGUS GUI function |
M603 | Configure Filament Change | NO | NO | replaced by WTDGUS GUI function |
M605 | Dual Nozzle Mode | YES | YES | |
M665 | Delta Configuration | NO | NO | no hardware support |
M666 | Set Delta endstop adjustments | NO | NO | no hardware support |
M672 | Test Speed Warning | NO | NO | no hardware support |
M701 | Load filament | NO | NO | replaced by WTDGUS GUI function |
M702 | Unload filament | NO | NO | replaced by WTDGUS GUI function |
M810-M819 | G-code macros | NO | NO | disable by firmware |
M851 | XYZ Probe Offset | YES | YES | |
M852 | Bed Skew Compensation | NO | NO | disable by firmware |
M860 - M869 | I2C Position Encoders | NO | NO | no hardware support |
M871 | Probe temperature config | NO | NO | disable by firmware |
M876 | Handle Prompt Response | NO | NO | disable by firmware |
M900 | Linear Advance Factor | NO | NO | Not working with installed TMC driver |
M906 - M918 | TMC Motor | NO | NO | no hardware support |
M922 | Turn automatic filament extrusion On/Off | NO | YES | X40 PRO: S1 is the default behavior of the original Printer |
M923 | Turn multiple nozzle wipes On/Off | NO | YES | X40 PRO: S0 is default for Weedo, S1 is default FW |
M924 | Change-over to Extruder LH/RH | NO | YES |
Command works only during printing! Cooldown unused Extruder: |
M951 | Magnetic Parking Extruder | NO | NO | no hardware support |
T0-T1 | Select Tool | YES | YES |