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…
On this page
| Property | Value |
|---|---|
| Command | M500 |
| Function | Save settings to EEPROM |
| Firmware | Marlin |
| Group | Settings |
| Syntax | M500 |
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
M92 E97.4
M500
M503Tips 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.
Related commands
- M501 — Load settings from EEPROM
- M502 — Factory reset (firmware defaults)
- M503 — Report settings
- SAVE_CONFIG — Save calibration to printer.cfg
More settings commands
| Command | Function | Firmware |
|---|---|---|
M501 | Load settings from EEPROM | Marlin |
M502 | Factory reset (firmware defaults) | Marlin |
M503 | Report settings | Marlin |
M201 | Max acceleration per axis | Marlin |
M203 | Max feed rate per axis | Marlin |
M204 | Set acceleration | Marlin and Klipper |
M205 | Jerk and junction deviation | Marlin |
M906 | Stepper motor current (TMC) | Marlin |
SAVE_CONFIG | Save calibration to printer.cfg | Klipper |
SET_VELOCITY_LIMIT | Speed, acceleration and corner limits | Klipper |
FIRMWARE_RESTART | Restart (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