Explained: Marlin G-Codes M500, M501, M502, M503

M500 - Save Settings in EEPROM

M500

Description

Saves all current settings in EEPROM. Makes them persistent after printer reboot or shutdown.

Requires EEPROM_SETTINGS enabled.

Arguments

None

Examples

M500; Save settings

M501 - Load Settings from EEPROM

M501

Description

Loads all previously saved settings from EEPROM and immediately applies them. This can be also used as UNDO of the settings changes you made.

No need to save them as they are taken from EEPROM.

Requires EEPROM_SETTINGS enabled.

Arguments

None

Examples

M501; Loads settings

M502 - Factory Reset

M502

Description

Restores all settings as they were in Configurations.h.

Does not rely on EEPROM_SETTINGS

Arguments

None

Examples

M502 ; Reset
M500 ; Save

M503 - Print Settings Currently in Memory

M503 S<verbose>

Description

Prints out all current print settings as set in memory. Those settings might differ from EEPROM contents if they were changed since the last load / save.

Very useful when tweaking printer settings as you can quickly print out to console all the settings made using LCD after each test print. When you are done you can take those values and put back to configuration.h or use in auto0.g

Does not require EEPROM_SETTINGS

Relies on DISABLE_M503

Arguments

Argument Required DescriptionDefault value
S<verbose> No Show detailed output1

Examples

M503; Print detailed settings
M503 S0; Print shorted gcode settings

Sample output of M503:

G21    ; Units in mm
M149 C ; Units in Celsius
Filament settings: Disabled
M200 D1.75
M200 D0
Steps per unit:
M92 X100.00 Y100.00 Z398.70 E100.00
Maximum feedrates (units/s):
M203 X400.00 Y400.00 Z8.00 E50.00
Maximum Acceleration (units/s2):
M201 X1000 Y1000 Z100 E10000
Acceleration (units/s2): P R T
M204 P400.00 R1000.00 T1000.00
Advanced: S T B X Z E
M205 S0.00 T0.00 B20000 X10.00 Y10.00 Z0.30 E5.00
Home offset:
M206 X0.00 Y0.00 Z0.00
Auto Bed Leveling:
M420 S1 Z0.00
Material heatup parameters:
M145 S0 H195 B55 F0
M145 S1 H205 B60 F0
PID settings:
M301 P52.25 I5.60 D122.00
Z-Probe Offset (mm):
M851 Z-2.41

Leave a Comment