# What is the Gcode for "use last leveling data?"

**URL:** <https://forum.lulzbot.com/t/what-is-the-gcode-for-use-last-leveling-data/27473>\
**Category:** LulzBot Mini\
**Created:** [April 3, 2025, 4:41pm UTC](https://forum.lulzbot.com/t/what-is-the-gcode-for-use-last-leveling-data/27473 "2025-04-03T16:41:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![leif](https://avatars.discourse-cdn.com/v4/letter/l/8797f3/32.png) [@leif](https://forum.lulzbot.com/u/leif)\
**Post date:** [April 3, 2025, 4:41pm UTC](https://forum.lulzbot.com/t/what-is-the-gcode-for-use-last-leveling-data/27473/1 "2025-04-03T16:41:54Z")

</div>

I have been having a really hard time getting the mini to get all the way through auto leveling. on my last print I was able to get an auto level and successful print. I was wondering if I can bypass the auto leveling by using the last good matrix by editing the Gcode in the print job? Itried just deleting the lines to run auto level but the result is that it starts printing about 7 millimeters above the printbed. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![leif](https://avatars.discourse-cdn.com/v4/letter/l/8797f3/32.png) [@leif](https://forum.lulzbot.com/u/leif)\
**Post date:** [April 3, 2025, 5:00pm UTC](https://forum.lulzbot.com/t/what-is-the-gcode-for-use-last-leveling-data/27473/2 "2025-04-03T17:00:39Z")

</div>

I am trying inserting M501, M420 S1 in place of G29. will update with results shortly

---

<div class="post-metadata">

**Author:** ![leif](https://avatars.discourse-cdn.com/v4/letter/l/8797f3/32.png) [@leif](https://forum.lulzbot.com/u/leif)\
**Post date:** [April 3, 2025, 5:04pm UTC](https://forum.lulzbot.com/t/what-is-the-gcode-for-use-last-leveling-data/27473/3 "2025-04-03T17:04:47Z")

</div>

fail. aborted. same result, I guess it is trying to get it to auto level until I get other advice. Thanks for reading.

---

<div class="post-metadata">

**Author:** ![Wrathernaut](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.lulzbot.com/wrathernaut/32/13542_2.png) [@Wrathernaut](https://forum.lulzbot.com/u/Wrathernaut)\
**Post date:** [April 4, 2025, 3:41am UTC](https://forum.lulzbot.com/t/what-is-the-gcode-for-use-last-leveling-data/27473/4 "2025-04-04T03:41:21Z")

</div>

You can re-use the previous leveling matrix until the Z loses its position, by powering off, homing (G28) or the steppers de-activating for the Z (M18, or timeout).

---

<div class="post-metadata">

**Author:** ![b-morgan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.lulzbot.com/b-morgan/32/11517_2.png) [@b-morgan](https://forum.lulzbot.com/u/b-morgan)\
**Post date:** [April 4, 2025, 2:35pm UTC](https://forum.lulzbot.com/t/what-is-the-gcode-for-use-last-leveling-data/27473/5 "2025-04-04T14:35:45Z")

</div>

> [@leif](#):
>
> I have been having a really hard time getting the mini to get all the way through auto leveling

Perhaps we should spend some time improving the success rate of auto leveling.

---

<div class="post-metadata">

**Author:** ![TimPostma](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.lulzbot.com/timpostma/32/12492_2.png) [@TimPostma](https://forum.lulzbot.com/u/TimPostma)\
**Post date:** [April 10, 2025, 8:23pm UTC](https://forum.lulzbot.com/t/what-is-the-gcode-for-use-last-leveling-data/27473/6 "2025-04-10T20:23:09Z")

</div>

Hold up which toolhead did you do use because I was told different toolheads have different settings  
Also try this @thefreeheathen on my lulzbot Taz workhorse what I did was a hot push purge then advanced setting Inuit reset , load , save and that could also be a reason potentially
