Supported G Code Commands - UP3D-gcode/UP3D GitHub Wiki
List of supported G-Code commands in up3dtranscode
To get an overview of the commands and parameters see here https://en.wikipedia.org/wiki/G-code
G-Commands
Command |
Parameters |
Notes |
G0G1 |
X Y Z F |
Standard command to use for moves and extrudes. There is no differentiation between G0 and G1 both are equally used. |
G2G3 |
|
Arc not implemented, processing will be terminated with an error G2/G3 ARC not suppported . |
G4 |
S P |
Pause, S number of milliseconds or P number of seconds. If both parameters are present only P value is considered. If no parameter is given nothing happens. |
G21 |
|
Use metric values (default). |
G28 |
X Y Z |
Home axis, if no parameter is given all axises will be homed. |
G90 |
|
Use absolute positioning. No parameters are required, all parameters are ignored. |
G91 |
|
Use relative positioning. No parameters are required, all parameters are ignored. |
G92 |
X Y Z E |
Set current position. If no parameter is present nothing happens. |
all others |
|
Any other command not listed here results in an error UNSUPPORTED command and terminates further processing. |
M-Commands
Command |
Parameters |
Notes |
M82 |
|
Set Extruder absolut mode. All parameters are ignored. |
M83 |
|
Set extruder relative mode. All parameters are ignored. |
M84 |
|
Disable motors. Not implemented, silently ignored. |
M104 |
S |
Set Extruder target temperature to S. Don't wait for it. |
M106 |
|
Not implemented, silently ignored. |
M107 |
|
Not implemented, silently ignored. |
M109 |
S R |
Set extruder target temperature to S or R and wait for it until it is reached. If R and S values are given both gets individually executed. LED blinks fast red/blue until temperature is reached, when temperature is reached it blinks slower. |
M117 |
|
Not implemented, silently ignored. |
M140 |
S |
Set bed target temperature to S. |
M190 |
S |
Set bed target temperature to S and wait. LED blinks slowly red/blue during wait. Since there is no sensor for the heat bed temperature, there is simply a wait time calculated: temperature difference / factor * 60. The factor is model depend, for the UP mini it is 20, all other models are set to factor 30. The wait time is only executed if the new set value is higher than the old one. |
M300 |
P |
Play beep sound and wait until finished, duration is P in milliseconds. If no parameter is given nothing happens. |
all others |
|
Any other command not listed here results in an error UNSUPPORTED command and terminates further processing. |
Other Commands
Command |
Parameters |
Notes |
T |
|
All tool commands are forcing internally a planner sync (empty motion calculation pipe). This is useful before making any stops for e.g. changing filament. Nothing else is done with any tool number or parameter. |
N |
line number |
Commands could be preceded by a line number. The given number must be incremental otherwise it generates an error Invalid line number sequence . |
- | checksum | Check the checksum. If it is not correct it results in an error
Invalid checksum
and terminates further processing.
; | comment | A ; (semicolon) is used for a comment and can be placed in an empty line or after any command. Most slicers embed extended information in comments. up3dtranscode currently does not use or require any comment.
| X Y Z E F T S P R | These are the only parameters up3dtranscode is looking for. Other parameters are ignored. The parameters are read in double precision.