3D printer G-code · Marlin

M500: Save settings to EEPROM (Marlin)

Save settings to EEPROM — Saves all settings changed with G-code (E-steps, PID, Z offset, mesh, acceleration ...) so they survive a power cycle. M501 loads them again, M502 resets to the…

By cnccode · Updated
On this page
  1. What does M500 do?
  2. Example
  3. Tips from practice
  4. Related commands
  5. More settings commands
  6. Frequently asked questions
PropertyValue
CommandM500
FunctionSave settings to EEPROM
FirmwareMarlin
GroupSettings
SyntaxM500

What does M500 do?

Saves all settings changed with G-code (E-steps, PID, Z offset, mesh, acceleration ...) so they survive a power cycle. M501 loads them again, M502 resets to the firmware defaults (in RAM only), M503 shows them.

Example

G-code
M92 E97.4
M500
M503

Tips from practice

  • M502 followed by M500 erases your calibration: save the M503 output before.
  • In Klipper settings live in printer.cfg; SAVE_CONFIG writes calibration results there.

Marlin. Many Marlin commands only exist when the feature is enabled in the firmware build. If the printer answers "Unknown command", the feature is missing. Klipper does not understand most of these settings codes; it uses printer.cfg instead.

More settings commands

CommandFunctionFirmware
M501Load settings from EEPROMMarlin
M502Factory reset (firmware defaults)Marlin
M503Report settingsMarlin
M201Max acceleration per axisMarlin
M203Max feed rate per axisMarlin
M204Set accelerationMarlin and Klipper
M205Jerk and junction deviationMarlin
M906Stepper motor current (TMC)Marlin
SAVE_CONFIGSave calibration to printer.cfgKlipper
SET_VELOCITY_LIMITSpeed, acceleration and corner limitsKlipper
FIRMWARE_RESTARTRestart (RESTART / FIRMWARE_RESTART)Klipper

Test it before you print

Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.

Open the simulator

Frequently asked questions

What does M500 do on a 3D printer?
M500 is save settings to EEPROM. Saves all settings changed with G-code (E-steps, PID, Z offset, mesh, acceleration ...) so they survive a power cycle. M501 loads them again, M502 resets to the firmware defaults (in RAM only), M503 shows them.
Does M500 work in Klipper and Marlin?
M500 is a Marlin command. Klipper uses its own commands and printer.cfg settings for this task.
Was this page helpful?