G-Code Cheat Sheet

The most frequently used G-code commands are listed below.

G-code input is case-sensitive. Make sure to capitalize all letters.

G-code Description
G1 Linear Move/Extrude
G28 Home Axes
G29 Probe Bed
M104 Set Hotend Temperature
M140 Set Bed Temperature
M290 Adjust Z offset
M500 Save to EEPROM
M501 Restore from EEPROM
M502 Reset EEPROM

Last modified: August 1, 2019