# Crazy offset when posting tool change paths

**URL:** <https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155>\
**Category:** Original/PRO Series (Buildbotics) (Gen 1)\
**Created:** [March 26, 2024, 4:09am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155 "2024-03-26T04:09:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![robdamron](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@robdamron](https://forum.onefinitycnc.com/u/robdamron)\
**Post date:** [March 26, 2024, 4:09am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/1 "2024-03-26T04:09:22Z")

</div>

When I post a file with any tool changes, in the preview pane I see the first tool path posts correctly and the XYZ is shown in the preview. The following tool paths are below the XYZ by about 15" and I get an over limit when I load the file. Pictures attached. The Code does not show the Z trying to go that low, it looks normal. I use Fusion and the simulation matches the NC. If I post the NC based on each tool, even if there are multiple operations with the same tool, everything works as normal. I posted this in th BB Forum and Doug replied this:

“This is a problem that existed in the Buildbotics Controller some time ago. It was fixed quite some time ago.  
Onefinity copied our software and hardware back in 2021 and went their own way. Apparently, they never fixed this problem.”

Here is my tool change code in the BB settings:  
(Runs on M6, tool change)  
M9  
M70  
G21  
S0  
G0 X-60 Y60  
M0 M6 (MSG, Change tool and attach probe)  
F100  
(probe to minimum z soft limit, which is -10)  
G91  
G38.2 Z-315  
G92 Z14.9733  
g0 Z15  
M0 (MSG, Remove probe, start spindle)  
M3  
S11025  
G4 P7  
M72  
G53 G0 Z0  
M8

Any help will be appreciated. Thank you in advance.

 ![Screenshot 2024-03-25 at 9.05.29 PM](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/3/f/3f1930f860e37d13770566881373ebaa873d58fe.jpeg)

---

<div class="post-metadata">

**Author:** ![robdamron](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@robdamron](https://forum.onefinitycnc.com/u/robdamron)\
**Post date:** [March 26, 2024, 4:10am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/2 "2024-03-26T04:10:38Z")

</div>

I can apparently only upload one image at a time as I am a new user. This is the first time in 3 years that I have had a problem that I could not resolve myself or from the groups.

 ![Screenshot 2024-03-25 at 9.06.41 PM](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/4/9/4960ebc96a58322dd8e880d08aab8037bced8cc9.png)

---

<div class="post-metadata">

**Author:** ![robdamron](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@robdamron](https://forum.onefinitycnc.com/u/robdamron)\
**Post date:** [March 26, 2024, 4:11am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/3 "2024-03-26T04:11:12Z")

</div>

Another.

 ![Screenshot 2024-03-25 at 9.06.51 PM](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/c/1/c1bcfc1edb86051b6bbf80ab5afa6f479ec52f24.png)

---

<div class="post-metadata">

**Author:** ![robdamron](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@robdamron](https://forum.onefinitycnc.com/u/robdamron)\
**Post date:** [March 26, 2024, 4:11am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/4 "2024-03-26T04:11:53Z")

</div>

Last one.

 ![Screenshot 2024-03-25 at 9.06.58 PM](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/6/d/6dc2c9d6b7af6220b8206cb88d5728245a497a4a.png)

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [March 26, 2024, 4:57am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/5 "2024-03-26T04:57:09Z")

</div>

Hey Rob,

if you want to use a g-code toolpath file with multiple tools with the [buildbotics](https://buildbotics.com/)-derived [Onefinity Controller](https://www.onefinitycnc.com/_files/ugd/1cee9f_bed246d0462e443ab8f782f2384d4ddb.pdf), please be aware that the ‘tool-change’ routine that is delivered with the Onefinity in the SETTINGS page does not work. You can take [the ‘tool-change’ routine that I provide here](https://forum.onefinitycnc.com/t/tool-changes-and-z-height/7715/29) instead.

#### Further reading

- [What will Aiph5u’s tool change routine do?](https://forum.onefinitycnc.com/t/tool-changes-and-z-height/7715/50)

* * *

---

<div class="post-metadata">

**Author:** ![robdamron](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@robdamron](https://forum.onefinitycnc.com/u/robdamron)\
**Post date:** [March 26, 2024, 5:25am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/6 "2024-03-26T05:25:27Z")

</div>

The tool change code that I made worked with 1.3.0 just not with 1.3.1. I originally used your gcode then modified it so it didn’t go back to the work. Then I also ran into the problem of surfacing with a bit that stuck out 1.5 inches to a bit that stuck out almost 4” and it would have hit the work. I reloaded a file that I had used before (on 1.3.0) that worked perfect then and now it does this. Creates an offset after the first tool of 15”. I don’t think it’s the tool change code. It’s a 1.3.1 issue the BB says they fixed a while back.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [March 26, 2024, 6:27am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/7 "2024-03-26T06:27:42Z")

</div>

Hey Rob,

in your G-code toolpath, you set G90 (absolute distance mode) and lift Z to its _machine zero_ (G53 G0 Z0). Units are set to inches. Then subsequently you have a command G0 Z3.2. This is not possible. If you are already on the topmost Z position which is Z=0, you cannot move further upwards. The Z travel on Z-16 axis goes from 0 to −5.25 in (0 to −133 mm). In machine coordinates, Z axis has only negative values, because Z zero is at topmost position and in the [right-hand cartesian coordinate system which RS274/NGC machines use](https://https://forum.onefinitycnc.com/t/keeping-zero-position/14115/44?u=aiph5u), Z values increase towards top and decrease towards bottom, so can only be negative if topmost is zero.

If you think it is a [buildbotics closed issue](https://github.com/buildbotics/bbctrl-firmware/issues?q=is%3Aissue+is%3Aclosed), it would be good to know which one.

By the way, you can also upload g-code files (.ngc) in a posting. You get the next level of membership if you read a number of posts. Then you can post more things.

> [@Onefinity Woodworker - Germany](https://forum.onefinitycnc.com/t/onefinity-woodworker-germany/3262/28):
>
> With trust level “0” so at the moment you cannot
> 
> - Send personal messages to other users
> - “Reply as new topic” via Link button (UI removed)
> - Flag posts
> - Post more than 1 image
> - Post any attachments
> - Post more than 2 hyperlinks in a post
> - Have actual links in the ‘about me’ field of your profile (will be silently and temporarily converted to plain text)
> - Mention more than 2 users in a post
> - Post more than 3 topics
> - Post more than 10 replies
> - Edit your own posts after more than 24 hours
> 
> You have [Trust Level “New”](https://blog.discourse.org/2018/06/understanding-discourse-trust-levels/#trust-level-0-new). But you can reach [Trust Level “Basic”](https://blog.discourse.org/2018/06/understanding-discourse-trust-levels/#trust-level-1-basic) very easily by:
> 
> - Entering at least 5 topics
> - Reading at least 30 posts
> - Spend a total of 10 minutes reading posts
> 
> If you reached [“Basic”](https://blog.discourse.org/2018/06/understanding-discourse-trust-levels/#trust-level-1-basic)" this way, you can:
> 
> - Use all core Discourse functions; all new user restrictions are removed
> - Send private messages
> - Upload images and attachments
> - Edit wiki posts
> - Flag posts
> - Mute other users

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [March 26, 2024, 6:59am UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/8 "2024-03-26T06:59:15Z")

</div>

> [@robdamron](#):
>
> Here is my tool change code in the BB settings:  
> (Runs on M6, tool change)  
> […]  
> G38.2 Z-315

Ouch! Sorry that I see this only now. **Z-315** mm is way too far downwards. The machine’s Z travel is only 0 mm – −133 mm!

---

<div class="post-metadata">

**Author:** ![robdamron](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@robdamron](https://forum.onefinitycnc.com/u/robdamron)\
**Post date:** [March 26, 2024, 2:41pm UTC](https://forum.onefinitycnc.com/t/crazy-offset-when-posting-tool-change-paths/26155/9 "2024-03-26T14:41:21Z")

</div>

Thanks for the information. And yes I see that now. It is supposed to be Z-15, lol. Not sure how that 3 got in there. Thank you for your help.
