<p><code>M502</code> and <code>M500</code> are not files, they are <a href="https://en.wikipedia.org/wiki/G-code" rel="nofollow noreferrer">G-code</a> commands (well, they are <em>actually</em> M-codes, but don't worry about that)<sup>1</sup>.</p>
<p>To reset your printer to the factory default settings, simply connect a <a href="https://3dprinting.stackexchange.com/q/10573/4762">terminal</a> and send <code>M502</code>.</p>
<p>If you are using Linux, see <a href="https://3dprinting.stackexchange.com/q/3112/4762">How to directly send G-code to printer from a Linux terminal?</a></p>
<p>See also <a href="https://3dprinting.stackexchange.com/q/11438/4762">M502 will reset all configurable settings to their &quot;factory defaults&quot;, which settings are those?</a></p>
<hr />
<p><sup>1</sup> Simply put: G-codes control movement; whereas M-codes control other functions (which aren't movements).</p>

CC BY-SA 4.0
2021-11-25T20:59:11.720Z
2021-11-26T03:39:25.903Z
2021-11-26T03:39:25.903Z
Greenonline
<p>I have just bought a Creality Ender 3 Pro. During setup, I think I must have applied an offset... The nozzle lifts up about 5 mm from the bed when starting to print.</p>
<p>I am reading that <code>M502</code> resets to factory settings and <code>M500</code> saves the settings. I have looked everywhere I can think of but am unable to find these files to download.
Can someone help me please? Where can I find these files?</p>

CC BY-SA 4.0
2021-11-25T17:42:53.120Z
What "files" are you talking about? If you mean the `M502` and `M500`, those are commands that are sent to the printer. More info can be found at [What is a printer console/terminal?](https://3dprinting.stackexchange.com/questions/10573/what-is-a-printer-console-terminal).
agarza
CC BY-SA 4.0
2021-11-25T21:08:21.757Z
This could *potentially* be closed as a duplicate of  [What is a printer console/terminal?](https://3dprinting.stackexchange.com/questions/10573/what-is-a-printer-console-terminal).
Greenonline
<creality-ender-3><firmware><reset>
Factory reset needed!
Barry Windsor
# Factory reset needed!

(Asked by: username_0 on 2021-11-25)

I have just bought a Creality Ender 3 Pro. During setup, I think I must have applied an offset... The nozzle lifts up about 5 mm from the bed when starting to print.

I am reading that `M502` resets to factory settings and `M500` saves the settings. I have looked everywhere I can think of but am unable to find these files to download.
Can someone help me please? Where can I find these files?

**Tags:** creality-ender-3, firmware, reset

> **Comments:**
> **username_1**: What "files" are you talking about? If you mean the `M502` and `M500`, those are commands that are sent to the printer. More info can be found at [What is a printer console/terminal?](https://3dprinting.stackexchange.com/questions/10573/what-is-a-printer-console-terminal).  
> **username_2**: This could *potentially* be closed as a duplicate of  [What is a printer console/terminal?](https://3dprinting.stackexchange.com/questions/10573/what-is-a-printer-console-terminal).  

---

## 1 answers

### Answer by username_2 on 2021-11-25. Score: 2

`M502` and `M500` are not files, they are [G-code](https://en.wikipedia.org/wiki/G-code) commands (well, they are *actually* M-codes, but don't worry about that)1.

To reset your printer to the factory default settings, simply connect a [terminal](https://3dprinting.stackexchange.com/q/10573/4762) and send `M502`.

If you are using Linux, see [How to directly send G-code to printer from a Linux terminal?](https://3dprinting.stackexchange.com/q/3112/4762)

See also [M502 will reset all configurable settings to their "factory defaults", which settings are those?](https://3dprinting.stackexchange.com/q/11438/4762)

---

1 Simply put: G-codes control movement; whereas M-codes control other functions (which aren't movements).


---

