This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
G Codes
Ryan Dirmeyer edited this page Jan 28, 2018
·
7 revisions
The idea is to generate as much documentation as possible about G-Codes and their usage to have a good reference about the G-Codes used in the printer itself and automatically generated in the cloud when slicing a STL file.
Some G-Codes are a g2 flavor (those with {}). They are interpreted by the g2 printer board and set special settings like turning on and off the LEDs or changing their color. For more information, refer to the G2 G-code docs here: https://github.com/synthetos/g2/wiki/Gcodes
G-Code | Function | Description |
---|---|---|
M100({he1st:%d}) | Heat ext | Heat extruder to specified temperature, where %d is the material temperature |
G92.1 X0 Y0 Z0 A0 B0 | Home | Reset origin offsets on all axes |
G28.2 X0 Y0 | Home | Home and reset 0 on X/Y axes |
G0 X110 | Home | Travel to: X=110 |
M100({_leds:2}) | Heat ext | LED On: red |
M101 ({he1at:t}) | Heat ext | Pause until extruder target temperature is reached |
M100({_leds:3}) | Level | LED On: blue |
G28.2 Z0 | Home | Home and reset 0 on Z axis |
G0 X0 Y145 Z6 | Level | Travel to: X=0 Y=145 Z=6 |
G38.2 Z-10 F200 | Level | Probe toward Z=-10 with feed rate 200 |
G0 Z5 | Level | Travel to: Z=5 |
M100({_leds:5}) | Level | LED On: yellow |
G0 X210 Y65 | Level | Travel to: X=210 Y=65 |
G38.2 Z-10 F200 | Level | Probe toward Z=-10 with feed rate 200 |
G0 Z5 | Level | Travel to: Z=5 |
M100({_leds:6}) | Level | LED On: magenta |
G0 X0 Y10 | Level | Travel to: X=0 Y=10 |
G38.2 Z-10 F200 | Level | Probe toward Z=-10 with feed rate 200 |
G0 Z5 | Level | Travel to: Z=5 |
M100({_leds:3}) | Level | LED On: blue |
M100 ({tram:1}) | Level | Set and enable tramming matrix. This defines the Z plane based on the 3 probed points above (see G38.2 commands) |
G92 A0 | Prime | Set the extruder's origin to 0 |
M100({_leds:1}) | Prime | LED On: white |
G0 Z5 | Z Offset | Travel to: Z=5 |
G92 Z%f | Z Offset | Set the Z-axis origin, where %f = 5 - the z offset |
G0 X0 Y0 Z0.3 | Prime | Travel to: X=0 Y=0 Z=0.3 |
G1 X220.000 A12 F1200 | Prime | Extrude 12mm of filament while moving to X=220 |
G0 Y0.4 | Prime | Travel to: Y=0.4 |
G1 X110.000 A18 | Prime | Extrude 6mm more filament while moving back to X=110 |
G0 Z1 | Prime | Travel to: Z=1 |
G92 A0 | Prime | Set the extruder's origin to 0 |
Notes:
- All
G0
commands moves are "traverse" or "travel" moves at maximum velocity whileG1
commands perform a linear move with an extrusion feed rate.
G-Code | Function | Description |
---|---|---|
G92.1 X0 Y0 Z0 A0 B0 | Home | Reset origin offsets on all axes |
G28.2 X0 Y0 Z0 | Home | Home and reset 0 on all axes |
M100({_leds:3}) | Level | LED On: blue |
G0 X0 Y145 Z6 | Level | Travel to: X=0 Y=145 Z=6 |
G38.2 Z-10 F200 | Level | Probe toward Z=-10 with feed rate 200 |
G0 Z5 | Level | Travel to: Z=5 |
M100({_leds:5}) | Level | LED On: yellow |
G0 X210 Y65 | Level | Travel to: X=210 Y=65 |
G38.2 Z-10 F200 | Level | Probe toward Z=-10 with feed rate 200 |
G0 Z5 | Level | Travel to: Z=5 |
M100({_leds:6}) | Level | LED On: magenta |
G0 X0 Y10 | Level | Travel to: X=0 Y=10 |
G38.2 Z-10 F200 | Level | Probe toward Z=-10 with feed rate 200 |
G0 Z5 | Level | Travel to: Z=5 |
M100({_leds:3}) | Level | LED On: blue |
M100 ({tram:1}) | Level | Set and enable tramming matrix. This defines the Z plane based on the 3 probed points above (see G38.2 commands) |
G0 Z5 | Z Offset | Travel to: Z=5 |
G92 Z%f | Z Offset | Set the Z-axis origin, where %f = 5 - the z offset |
M100({_leds:2}) | Heat | LED On: red |
M140 Snnn | Heat | (optional, if enabled) Heat bed to specified temperature, where nnn is the bed temperature |
M100({he1st:nnn}) | Heat | Heat extruder to specified temperature, where nnn is the material temperature |
M190 Snnn | Heat | (optional, if enabled) Pause until bed target temperature is reached |
M101 ({he1at:t}) | Heat | Pause until extruder target temperature is reached |
G92 A0 | Prime | Set the extruder's origin to 0 |
M100({_leds:1}) | Prime | LED On: white |
G0 X0 Y0 Z0.3 | Prime | Travel to: X=0 Y=0 Z=0.3 |
G1 X220.000 A12 F1200 | Prime | Extrude 12mm of filament while moving to X=220 |
G0 Y0.4 | Prime | Travel to: Y=0.4 |
G1 X110.000 A18 | Prime | Extrude 6mm more filament while moving back to X=110 |
G0 Z1 | Prime | Travel to: Z=1 |
G92 A0 | Prime | Set the extruder's origin to 0 |