<p>I have what I thought would be a simple question.</p>

<p>I don't have an auto leveling probe, I do my leveling manually with 4 screws and a piece of paper (I measured the thickness to 0.1&nbsp;mm).</p>

<p>For the longest time I would have trouble with the first layer, sometimes having to give the bed screws a quarter turn to bring the bed up a bit. I would see that the nozzle seemed quite far away from the bed. This went on for the longest time and I just chalked it up to the quality of my printer.</p>

<p>I realized recently that when I level the bed, I am inserting a piece of paper in between the nozzle and the bed. Obviously, I should be taking the thickness into account as a 0.1mm thick piece of paper accounts for 50&nbsp;% higher than the nozzle should be for a 0.2&nbsp;mm first layer height.</p>

<p>My question is, how do I set (either in Cura or directly in Marlin config) the z home offset to account for the 0.1&nbsp;mm thickness of my calibration paper?</p>

[{'answer_id': 7265, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 4, 'selected': True, 'text': '<p>It is preferred to get the distance correct by hardware changes (leveling screws). But it is possible to do it with software. You can not only change the Z offset in the slicer or in the configuration of Marlin, but also with G-code commands. </p>\n\n<p>The "paper drag" method is perfect for determining the correct Z level. Once you leveled with the paper, you do not need to create an offset to account for the paper thickness, however, there are purists that do that. So basically, what we call Z=0 is in fact Z="paper thickness", unless you are a purist. But a slightly larger gap makes printing much easier. Too small heights cause e.g. rippling effects or too much pressure build-up in the nozzle. In order to change your offset after leveling, you could try one of the following methods. This is sometimes a useful method for creating a little extra offset for printing PETG, but personally I do not do that.</p>\n\n<p><strong>In Ultimaker Cura</strong>:\nOpen the plugin manager ("Toolbox"->"Browse packages...") and install "Z Offset Setting", a new parameter will be available in the "Build Plate Adhesion" settings menu called "Z Offset". (See also <a href="/a/5939/5740">this older, not up-to-date answer</a>)</p>\n\n<p><strong>In Marlin configuration file</strong>, modify the MANUAL_Z_HOME_POS constant:</p>\n\n<pre><code>//#define MANUAL_Z_HOME_POS 0\n</code></pre>\n\n<p><strong>In G-code</strong>:</p>\n\n<p>By adding the following lines to your start G-code (see e.g. <a href="/a/4746/5740">this answer</a>) using the <a href="http://marlinfw.org/docs/gcode/G092.html" rel="nofollow noreferrer"><code>G92</code></a> G-code command:</p>\n\n<pre><code>G0 Z0.2 ; Move the head to 0.2 mm (so now 0.3 on your machine)\nG92 Z0  ; Call this Z = 0\n</code></pre>\n\n<p>or when you are able to connect to the printer over USB using a printer terminal (e.g. Pronterface, Repetier or OctoPrint) using the <a href="http://marlinfw.org/docs/gcode/M206.html" rel="nofollow noreferrer"><code>M206</code></a> G-code command:</p>\n\n<pre><code>M206 Z-0.2 ; Will raise the Z height by 0.2 mm\nM500       ; Stores the offset in memory\n</code></pre>\n\n<p>Alternatively, when you cannot connect through a terminal, putting the last 2 lines in a text file and saving that as a <code>.gcode</code> file on an SD card and "printing" the file will also store the new offset (if <code>M500</code> is enabled in the configuration file: <code>#define EEPROM_SETTINGS // Enable for M500 and M501 commands</code>)</p>\n'}, {'answer_id': 9954, 'author': 'Tifn', 'author_id': 16476, 'author_profile': 'https://3dprinting.stackexchange.com/users/16476', 'pm_score': 1, 'selected': False, 'text': '<p>Based on Oscar\'s solution using M206, I found it convenient to add in my MicroSD card a hierarchy of such gcode files to set the Z offset to every possible value in some range. For example, "printing" the file z_offset/1mm/1mm2/1mm275.gcode will set (permanently) the Z offset to 1.275 millimeters.</p>\n\n<p>This hack is a workaround to the lack of Z offset setting in the printer\'s menu, and is an alternative to "hardware" Z tuning by moving the endstop. It can be useful when using different build plates with varying thickness, or attaching a pen or any other tool to the print head.</p>\n\n<p>Here is a simple bash script which creates the files taking the MicroSD card location as argument:</p>\n\n<pre><code>#!/bin/bash -e\n\nmkdir $1/z_offset\n\nfor i in {9..0}\ndo\n    mkdir <span class="math-container">$1/z_offset/"$</span>i"mm\n    for j in {9..0}\n    do\n        mkdir <span class="math-container">$1/z_offset/"$</span>i"mm/"<span class="math-container">$i"mm"$</span>j"\n        for d in 00 25 50 75\n        do\n            echo -e \\\n                 M206 Z-<span class="math-container">$i.$</span>j<span class="math-container">$d\\\\nM500\\\\nM117 Z-offset="$</span>i"."<span class="math-container">$j$</span>d"mm \\\n                 &gt;<span class="math-container">$1/z_offset/"$</span>i"mm/"<span class="math-container">$i"mm"$</span>j"/"<span class="math-container">$i"mm"$</span>j$d".gcode\n        done\n    done\ndone\n</code></pre>\n\n<p>I chose a 0.025mm resolution, as 0.1mm is slightly to coarse to adjust for first layer issues. Tested successfully on a Creality Ender 3 printer (which seems to have a 0.015mm resolution on the Z-axis).</p>\n'}, {'answer_id': 9955, 'author': 'user77232', 'author_id': 12857, 'author_profile': 'https://3dprinting.stackexchange.com/users/12857', 'pm_score': 0, 'selected': False, 'text': "<p>You don't! Level the bed such that you know the nozzle is above the bed. Stop the print. Disable the steppers. Let it all cool down. Tram the bed (or what you call level). Then start the print again. It doesn't matter what first layer height your slicer thinks it is. All that matters is that it sticks and doesn't elephant foot. Note, if you are using glue stick or white glue (like I do) the thickness of the glue layer will be different between the edge of the glass (I assume you're using glass, otherwise you're never going to get a good tram) and the starting position of the prints. </p>\n"}]
['https://3dprinting.stackexchange.com/questions/7264', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/9960/']