G-Code Mappings Table
Enum |
Value |
Code |
Description |
|---|---|---|---|
|
celsius |
M140 |
Set bed temperature, celsius |
|
kelvin |
M140 |
Set bed temperature, kelvin |
|
celsius |
M141 |
Set chamber temperature, celsius |
|
kelvin |
M141 |
Set chamber temperature, kelvin |
|
mist |
M07 |
Turn on coolant, mist |
|
flood |
M08 |
Turn on coolant, flood |
|
off |
M09 |
Turn off coolant |
|
absolute |
G90 |
Set distance mode, absolute |
|
relative |
G91 |
Set distance mode, relative |
|
absolute |
M82 |
Set extrusion mode, absolute |
|
relative |
M83 |
Set extrusion mode, relative |
|
cooling |
M106 |
Set fan speed |
|
off |
M106 |
Turn off fan |
|
1/time |
G93 |
Set feed rate mode, inverse time |
|
units/min |
G94 |
Set feed rate mode, units per minute |
|
units/rev |
G95 |
Set feed rate mode, units per revolution |
|
pause |
M00 |
Pause program, forced |
|
optional-pause |
M01 |
Pause program, optional |
|
end-without-reset |
M02 |
End of program, no reset |
|
end-with-reset |
M30 |
End of program, stop and reset |
|
pallet-exchange |
M60 |
Exchange pallet and end program |
|
wait-for-bed |
M190 |
Wait for bed to reach temperature |
|
wait-for-hotend |
M109 |
Wait for hotend to reach temperature |
|
wait-for-chamber |
M191 |
Wait for chamber to reach temperature |
|
wait-for-motion |
M400 |
Wait for all moves to finish |
|
celsius |
M104 |
Set hotend temperature, celsius |
|
kelvin |
M104 |
Set hotend temperature, kelvin |
|
inches |
G20 |
Set length units, inches |
|
millimeters |
G21 |
Set length units, millimeters |
|
xy |
G17 |
Select plane, XY |
|
yz |
G19 |
Select plane, YZ |
|
zx |
G18 |
Select plane, ZX |
|
rapid |
G00 |
Rapid positioning |
|
linear |
G01 |
Linear interpolation |
|
offset |
G92 |
Set axis position |
|
home |
G28 |
Auto-home axes |
|
constant |
M03 |
Start tool, constant power |
|
dynamic |
M04 |
Start tool, dynamic power |
|
off |
M05 |
Stop tool |
|
towards |
G38.2 |
Probe towards |
|
towards-no-error |
G38.3 |
Probe towards, no error |
|
away |
G38.4 |
Probe away |
|
away-no-error |
G38.5 |
Probe away, no error |
|
temperature |
M105 |
Get current temperature |
|
position |
M114 |
Get current position |
|
clockwise |
M03 |
Start tool, clockwise |
|
counter |
M04 |
Start tool, counterclockwise |
|
off |
M05 |
Stop tool |
|
seconds |
G04 |
Sleep for a while, seconds |
|
milliseconds |
G04 |
Sleep for a while, milliseconds |
|
automatic |
M06 |
Tool change, automatic |
|
manual |
M06 |
Tool change, manual |