<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>What happens to z-offset with autoleveling?</title>
        <description> i&#039;m so confused.

I do 

G28
 to home.  Then I do a paper test and get a z-offset of say -2.4.  So I run

M851 Z-2.4
To set the offset.
Then I run
G29
To run the ABL routine, which gives the printer a grid to adjust to.

Now I start my print job and it is printing in the air.  How much in the air?  I&#039;m guessing 2.4mm.  OK, so the offset should have been zero?  So I do

M851 Z0and run the job again.  Now it slams into the print bed and I have to back it off by...  yep... 2.4mm.  What the hell? 

What is the PROPER sequence to run a job with ABL?  Now, same question but instead of G29, recalling previous with M420 S1.

Thank you.</description>
        <link>https://reprap.org/forum/read.php?415,812102,812102#msg-812102</link>
        <lastBuildDate>Wed, 17 Jun 2026 15:41:16 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?415,812102,812578#msg-812578</guid>
            <title>Re: What happens to z-offset with autoleveling?</title>
            <link>https://reprap.org/forum/read.php?415,812102,812578#msg-812578</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>bcsteeve</strong><br />Then I do a paper test and get a z-offset of say -2.4.</div></blockquote>
<br />
Does your <b>G28</b> homing use a Z min endstop, or does it use a probe?<br />
<br />
Assuming you have a Z min endstop, to establish the probe distance, you can do the following procedure. Of course, make sure your Z raises for probing settings are all reasonable before starting.<br />
<br />
<ul><li> Use <b>G28</b> to home XYZ. The nozzle should end up on the bed and Z should be 0.0.</li><li> Do <b>M851 Z0</b> to reset the probe Z offset.</li><li> Do a <b>G1 X100 Y100</b> (or whatever) to move to the center of the bed.</li><li> Next, use <b>G30</b> to do a single probe at the current position and get a value back. (The height of the nozzle when the probe triggered.)</li><li> Negate the value returned by <b>G30</b>. If it returned "2.4" then do <b>M851 Z-2.4</b>.</li><li> <b>M500</b> to save the new probe offset to EEPROM.</li><li> <b>G29</b> to probe the bed using your established Z probe offset.</li><li> <b>M500</b> to save the mesh to EEPROM.</li></ul>
<br />
If you have no Z endstop and instead use a probe to home Z, then you need to have the probe offset correct before you even do <b>G28</b>, otherwise everything will be off.<br />
<br />
To establish the Z probe offset in the case of no Z endstop, you must:<br />
<ul><li> Use <b>M851 Z0</b> and then <b>G28</b> to establish a baseline. Your Z (0.0) will be wrong at this point, but that's ok.</li><li> Use <b>M211 S0</b> to turn off so-called "software endstops." This allows you to move the nozzle below Z0.</li><li> Do your paper test. With the nozzle near the bed, the current Z (as reported by <b>M114</b>) is your new probe offset, a negative number.</li><li> Use <b>M851 Z-4.6</b> (or whatever) to set the new probe offset, and <b>M500</b> to save it to EEPROM.</li><li> Do a new <b>G28</b> using the corrected probe offset. Without this <b>G28</b> your height will be off.</li><li> <b>G29</b> to probe the bed.</li><li> <b>M500</b> to save the mesh to EEPROM.</li></ul>]]></description>
            <dc:creator>Thinkyhead</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Thu, 01 Mar 2018 18:59:24 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,812102,812114#msg-812114</guid>
            <title>Re: What happens to z-offset with autoleveling?</title>
            <link>https://reprap.org/forum/read.php?415,812102,812114#msg-812114</link>
            <description><![CDATA[ I am using linear and Bi-linear bed leveling with Marlin 1.1.5, this is what I do.<br />
<br />
I use a manual G28, then G29 as I do not need to do the M851. Then I do a M500 and save the bed leveling data, and restore the Data in the normal startup G-Code.<br />
<br />
I use the Startup G-Code below <br />
<br />
G21        ;metric values<br />
G90        ;absolute positioning<br />
M82        ;set extruder to absolute mode<br />
M107       ;start with the fan off<br />
G28 X0 Y0  ;move X/Y to min endstops<br />
G28 Z0     ;move Z to min endstops<br />
G1 Z15.0 F{travel_speed} ;move the platform down 15mm<br />
;Put printing message on LCD screen<br />
M117 My Print...<br />
G28 X0 Y0<br />
G1 E4.0 ;prime extruder<br />
G92 E0 ;reset extruder length<br />
M420 S1   ; Bed Leveling On<br />
M220 S32.000000  ;Set start Print Speed for Only Layer One<br />
<br />
in the start up G-Code after the last G29 I add a M420 S1 ; this turns the bed leveling data back on.<br />
<br />
At his point and after the M420 S1 in your case you could most likely enter your M851 Z-2.4 to be at your Nozzle height.<br />
Now most of the bed leveling functions do not work in Linear or bi-linear as they were designed as Unified Bed Leveling functions, but that is OK as I only use the Bed Level Data anyway.<br />
This was just a thought, give it a try don't give it a try. Just wanted to put information out there for you to examine.<br />
<br />
More Information I have on my desktop post-it <br />
M420: Enable/Disable Bed Leveling and/or set the Z fade height.<br />
....S[bool] Turns leveling on or off<br />
....Z[height] Sets the Z fade height (0 or none to disable)<br />
....V[bool] Verbose - Print the leveling grid<br />
Send M501 ; Load data<br />
Send a M420 V ; Print the leveling grid<br />
 <br />
Z-Offset " M851 Z-0.44 " Sets the Z-offset the input -00.44]]></description>
            <dc:creator>Roberts_Clif</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Mon, 26 Feb 2018 18:10:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,812102,812102#msg-812102</guid>
            <title>What happens to z-offset with autoleveling?</title>
            <link>https://reprap.org/forum/read.php?415,812102,812102#msg-812102</link>
            <description><![CDATA[ i'm so confused.<br />
<br />
I do <br />
<pre class="bbcode">
G28</pre>
 to home.  Then I do a paper test and get a z-offset of say -2.4.  So I run<br />
<pre class="bbcode">
M851 Z-2.4</pre>
To set the offset.<br />
Then I run<br />
<pre class="bbcode">G29</pre>
To run the ABL routine, which gives the printer a grid to adjust to.<br />
<br />
Now I start my print job and it is printing in the air.  How much in the air?  I'm guessing 2.4mm.  OK, so the offset should have been zero?  So I do<br />
<pre class="bbcode">
M851 Z0</pre>and run the job again.  Now it slams into the print bed and I have to back it off by...  yep... 2.4mm.  What the hell? <br />
<br />
What is the PROPER sequence to run a job with ABL?  Now, same question but instead of G29, recalling previous with M420 S1.<br />
<br />
Thank you.]]></description>
            <dc:creator>bcsteeve</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Mon, 26 Feb 2018 15:11:22 -0500</pubDate>
        </item>
    </channel>
</rss>
