<p>There is a specific code to set the offset between the various tools. This G-code is called <a href="https://marlinfw.org/docs/gcode/M218.html" rel="nofollow noreferrer"><code>M218</code> - Set Hotend Offset</a>.</p>
<p><a href="https://i.sstatic.net/VvHmG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/VvHmG.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2023-03-13T10:57:59.627Z
@0scar, how is it possible to "view the current hotend offsets with M503"? Where I can read this result value? Here there is an explanation: https://marlinfw.org/docs/gcode/M503.html, but currently is beyond my knowledge...
Mark
CC BY-SA 4.0
2023-03-13T22:50:10.640Z
This may help you understand: https://3dprinting.stackexchange.com/questions/10573/what-is-a-printer-console-terminal
0scar
CC BY-SA 4.0
2023-01-16T17:42:42.247Z
2023-01-16T17:42:42.247Z
0scar
<p>I have created my own tool changer for my 3D Printer but I'm having an issue with the Z-offset for each head.</p>
<ul>
<li><strong>Firmware:</strong> Marlin 2.1</li>
<li><strong>Slicer:</strong> Cura</li>
</ul>
<p>I have used the offset wizard to get the Z-offset of each head from the bed and then I tried to use the following G-code (<code>M851 Z-4.3</code>) in the Extruder Start G-Code and I have done this for each head, I can see it has changed on the screen in the configuration menu but it looks like it has had no effect as the print has already started.</p>
<p>What is the best way for me to set each offset for all my extruders?</p>

<marlin><ultimaker-cura><extruder><z-probe>
Z-Offset Multiple Heads on Tool Change
Rickstar
# Z-Offset Multiple Heads on Tool Change

(Asked by: username_0 on 2023-01-16)

I have created my own tool changer for my 3D Printer but I'm having an issue with the Z-offset for each head.

* **Firmware:** Marlin 2.1
* **Slicer:** Cura

I have used the offset wizard to get the Z-offset of each head from the bed and then I tried to use the following G-code (`M851 Z-4.3`) in the Extruder Start G-Code and I have done this for each head, I can see it has changed on the screen in the configuration menu but it looks like it has had no effect as the print has already started.

What is the best way for me to set each offset for all my extruders?

**Tags:** marlin, ultimaker-cura, extruder, z-probe


---

## 1 answers

### Answer by username_1 on 2023-01-16. Score: 2 | Accepted answer

There is a specific code to set the offset between the various tools. This G-code is called [`M218` - Set Hotend Offset](https://marlinfw.org/docs/gcode/M218.html).

[![enter image description here](https://i.sstatic.net/VvHmG.png)](https://i.sstatic.net/VvHmG.png)

> **Comments:**
> **username_2**: @username_1, how is it possible to "view the current hotend offsets with M503"? Where I can read this result value? Here there is an explanation: https://marlinfw.org/docs/gcode/M503.html, but currently is beyond my knowledge...  
> **username_1**: This may help you understand: https://3dprinting.stackexchange.com/questions/10573/what-is-a-printer-console-terminal  

---

