# Help with a wayward CNC file

**URL:** <https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309>\
**Category:** Snapmaker 2.0 (3-in-1)\
**Created:** [December 2, 2024, 7:52pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309 "2024-12-02T19:52:10Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![pwella4597](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pwella4597](https://forum.snapmaker.com/u/pwella4597)\
**Post date:** [December 2, 2024, 7:52pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/1 "2024-12-02T19:52:10Z")

</div>

I have been trialing the software VCarve Desktop before making the plunge and buying it. Overall, I have found it to be much better than Luban or Fusion in usability and features.

I followed the tutorial for making a Welcome to our home sign, ran the toolpath for the pocket and cut passes and watched the subsequent simulations. Everything looked good. I then exported the Pocket toolpass through the Post Processor for Snapmaker and put the Gcode on a USB stick which I then connected to my A350.

I set the start point on my stock and started the pass. As per the simulation the bit carved out the center of the letters O in TO and HOME. However, things then went awry. Instead of starting to cut the outside of those letters the tool just touched down again and then just wandered off, carving a line in the stock wood before heading off into thin air.

I opened a ticket with Vectric and sent them the original project file and the outputted Gcode. They checked and according to them everything should have worked as expected. They ran the code through a 3rd party app to analyze the Gcode and it showed the code worked as expected.

Does anyone have experience of VCarve or this kind of issue. I don’t think Vectric can help me anymore because their software did what was expected - it seems my snapmaker is having a problem with the code.

Cheers

---

<div class="post-metadata">

**Author:** ![Hauke](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/hauke/32/5704_2.png) [@Hauke](https://forum.snapmaker.com/u/Hauke)\
**Post date:** [December 2, 2024, 9:08pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/2 "2024-12-02T21:08:41Z")

</div>

Sounds weired… Did you try yourself with a GCode simulator like [https://ncviewer.com/](https://ncviewer.com/) ? I’ve so far only used Fusion for milling jobs, so I cannot vouch for VCarve, but in my experience the SM2 interprets GCode generally correctly - if the simulator looks right, I guess it’s something for a ticket to Snapmaker support!

---

<div class="post-metadata">

**Author:** ![pwella4597](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pwella4597](https://forum.snapmaker.com/u/pwella4597)\
**Post date:** [December 2, 2024, 10:27pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/3 "2024-12-02T22:27:16Z")

</div>

Thanks for the link - I uploaded the Gcode and ran it through and to my untrained eye it looks like it is doing what it should be - which means there is probably a fault with my machine?

Can someone else take a look and see if they spot something I am missing?  
[Pocket 1.cnc](https://forum.snapmaker.com/uploads/short-url/buzHFw4bRZlBqqhAwdB7u9p0jRa.cnc) (1.5 MB)

---

<div class="post-metadata">

**Author:** ![Hauke](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/hauke/32/5704_2.png) [@Hauke](https://forum.snapmaker.com/u/Hauke)\
**Post date:** [December 3, 2024, 9:51am UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/4 "2024-12-03T09:51:52Z")

</div>

Code looks absolutely sane to me → Would raise a ticket with Snapmaker.

---

<div class="post-metadata">

**Author:** ![Hauke](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/hauke/32/5704_2.png) [@Hauke](https://forum.snapmaker.com/u/Hauke)\
**Post date:** [December 3, 2024, 11:03am UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/5 "2024-12-03T11:03:22Z")

</div>

Was just playing around with NCviewer - and looking closer, the GCode may not be as sane as I thought - are these Arcs intended?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/3/8/380af58bc9e5816470ce67665cf971f30a41c778.png)  
To me it looks strange that above/aside from the letters there are these circles/arcs - but I have no clue about how the end result is supposed to look. But reading your error description, the drill digging in outside the letters, matches these circles, which seem wrong to me.

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [December 3, 2024, 4:22pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/6 "2024-12-03T16:22:37Z")

</div>

> [@Hauke](#):
>
> Was just playing around with NCviewer - and looking closer, the GCode may not be as sane as I thought - are these Arcs intended?

I’ve seen these loops before on gcode posted from Microvellum. For some reason it backplots horribly on any outside curves. Notice it can do inside (counter-clockwise) curves fine (the inside of the C near your arrow is fine, but the outside of the top is wonk). Because it’s using `G2` for clockwise curves, but breaking down counter-clockwise into tiny `G1` movements instead of using `G3`. However, the gcode usually runs fine. It’s likely just some non-standard way it’s doing the `I# J#` locations in the `G2` making it plot funny.

> [@pwella4597](#):
>
> I set the start point on my stock and started the pass. As per the simulation the bit carved out the center of the letters O in TO and HOME. However, things then went awry. Instead of starting to cut the outside of those letters the tool just touched down again and then just wandered off, carving a line in the stock wood before heading off into thin air.

It might be just unoptimized movements. Finish a letter here, snipe a little wood there, come back and finish up later. If you let it run, it might give you the proper end result, it’s just going in a very unoptimized pattern to do so. In Fusion, that’s why there’s an option to ‘order by selection’ otherwise it can generate all sorts of mank movements and waste time. Also things like ‘order by depth’ and ‘order by islands’ keeps it in the same place until it’s reached full depth instead of wandering off.

Looking at the gcode, it seems all Z movements are fast retracts and plunges (it only moves straight up and down, no ramping).  
Example:

```auto
G1 X30.879 Y-0.998 (Cut Stops here)
G0 Z5.080 (Z is lifted to a safe retract straight up)
G0 X21.581 Y-4.407 (Head moves to new location)
G1 Z-1.179 F240.0 (Z plunges straight down)
G1 X21.957 Y-4.849 F800.0 (Cutting continues to new location)

```

Keeping this in mind, if I search for the retract height of `Z5.080`, a pattern emerges. I see the first few retracts are coupled with deeper and deeper cuts, like it’s finishing hollowing out a hole;

```auto
G0 X-38.194 Y-16.241 
G0 Z5.080
G1 Z-0.590 F240.0

```

```auto
G0 Z5.080
G0 X-38.194 Y-16.241 
G1 Z-1.179 F240.0

```

```auto
G0 Z5.080
G0 X-38.194 Y-16.241 
G1 Z-2.359 F240.0

```

Notice the X/Y location is the same, so it’s repeating the same cut, just deeper each time. However if you keep following, it begins repeating the first depth, `Z-0.590` over and over with new X/Ys, then begins repeating the next depth after awhile.

```auto
G0 Z5.080
G0 X-52.287 Y-29.665 
G1 Z-0.590 F240.0

```

```auto
G0 Z5.080
G0 X-30.157 Y-32.249 
G1 Z-0.590 F240.0

```

```auto
G0 Z5.080
G0 X-30.157 Y-32.249 
G1 Z-0.590 F240.0
G1 X-28.914 F800.0
G1 X-29.229 Y-32.057 
G1 X-29.521 Y-31.854 
G1 X-30.157 Y-32.249 
G0 Z5.080
G0 X6.330 Y-26.656 
G1 Z-0.590 F240.0

```

The above block shows two `Z-0.590` runs together, so we can search for that small block, and find it comes back _much later_ to cut it deeper.

```auto
G0 Z5.080
G0 X-30.157 Y-32.249 
G1 Z-1.179 F240.0
G1 X-28.914 F800.0
G1 X-29.229 Y-32.057 
G1 X-29.521 Y-31.854 
G1 X-30.157 Y-32.249 
G0 Z5.080
G0 X6.330 Y-26.656 
G1 Z-1.179 F240.0

```

So yeah, it’s just… really unoptimized movements. It’s making the first few cuts over and over to the set depth, but then it’s doing the rest of the engrave at one depth, then going back and redoing the entire thing at the new depth.

Sorry for being so long winded about this reply. 🙃 but I’d say let it run, the biggest problem I can see is if you’re using a flat endmill, with it just plunging straight down, it might make Z lose a step and throw off the depth, otherwise, it looks fine.

EDIT: Another thing I noticed is at the beginning, it’s setting the `G0` speed to `F600`, yet your cut speed on `G1` is `F800`, which means your rapid movements are slower than your cutting moves.

```auto
G90
G0 Z10.00 F600
G21
M3 S19000

```

Changing this `F600` to `F800` or even `F1000` would save some time, since it only applies to the `G0` movements of retract and fast travel.

---

<div class="post-metadata">

**Author:** ![pwella4597](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pwella4597](https://forum.snapmaker.com/u/pwella4597)\
**Post date:** [December 3, 2024, 6:36pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/7 "2024-12-03T18:36:13Z")

</div>

Thanks for looking at the code in such depth and taking the time to explain what it happening - very helpful.

I uploaded a video of what is happening every time I run this code. I would be happy to leave it running, but it is very clear to see it isn’t doing what it should because of the groove it carves into the block as it wanders off after finishing the center of the O’s in TO and OUR.

[V-Carve Problem.mp4](https://1drv.ms/v/c/5f01a84494b35633/EbIiK3W7jtZOnnoaSzkmFxYB7Pi8v8ym1hlqRXJu9p1aXQ?e=3v8U5h)

This is what it is supposed to be carving -

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/1/c/1cd489c55ff93fae9b653aea57dcf1487e80a029.jpeg)

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [December 3, 2024, 6:51pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/8 "2024-12-03T18:51:31Z")

</div>

Aha, it seems the snapmaker is also misreading the `G2` command. It’s following the same path the backplotter [ncviewer.com](http://ncviewer.com) does.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/f/a/fa15540e80ca20c6024a721b014c9f26a8410622.png)

You can see where the tool is in the preview, right on the corner before the big looping circle. It’s also the first instance of `G2`. You’ll have to change the post options to not use `G2/G3` commands for circles.

EDIT: Is your firmware fully updated?

---

<div class="post-metadata">

**Author:** ![pwella4597](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pwella4597](https://forum.snapmaker.com/u/pwella4597)\
**Post date:** [December 3, 2024, 9:40pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/9 "2024-12-03T21:40:26Z")

</div>

Yes this looks exactly like what it is doing!

Yesterday when wrote all this up i hit the update firmware button the controller and it said i had the lastest version. Can’t remember exactly off the top of my head the number and i am away from my machine right now.

---

<div class="post-metadata">

**Author:** ![Wyphorn](https://avatars.discourse-cdn.com/v4/letter/w/ebca7d/32.png) [@Wyphorn](https://forum.snapmaker.com/u/Wyphorn)\
**Post date:** [December 4, 2024, 1:12am UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/10 "2024-12-04T01:12:19Z")

</div>

Check the firmware version and the version [Snapmaker 2.0 Firmware Updates and Downloads - #39 by Alan](https://forum.snapmaker.com/t/snapmaker-2-0-firmware-updates-and-downloads/5443/39)  
Does this match? Sometimes the screen did not find new firmwares.

---

<div class="post-metadata">

**Author:** ![pwella4597](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pwella4597](https://forum.snapmaker.com/u/pwella4597)\
**Post date:** [December 4, 2024, 4:37am UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/11 "2024-12-04T04:37:34Z")

</div>

Firmware confirmed as Snapmaker2\_V1.20.3\_20240716

---

<div class="post-metadata">

**Author:** ![Hauke](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/hauke/32/5704_2.png) [@Hauke](https://forum.snapmaker.com/u/Hauke)\
**Post date:** [December 4, 2024, 10:00am UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/12 "2024-12-04T10:00:50Z")

</div>

I think this is the most recent one. I’d agree with Skreelink’s assessment that there’s a problem in interpreting G2/3 and/or the way VCarve parameterizes these commands. Your video matches very well what ncviewer shows. While Skreelink’s suggestion to configure the post processor not to use G2/3 is the short-term way to solve this, it may turn out that VCarve does not allow this setting. So I’d suggest to reach out both to VCarve and Snapmaker support to understand if they can offer a solution. FWIW, I am very confident if you would do the CAM in Fusion, it would work - of course that is a poor suggestion - you want to use VCarve.

---

<div class="post-metadata">

**Author:** ![pwella4597](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pwella4597](https://forum.snapmaker.com/u/pwella4597)\
**Post date:** [December 6, 2024, 3:53pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/13 "2024-12-06T15:53:08Z")

</div>

Wanted to provide an update and complete this thread. I sent all of the information I had to the folks at Vectric and they agreed with the comments on this forum that the arc commands were causing the problems and so they wrote me a custom post processor file.

I uploaded that into VCarve and it worked first time. Beautiful!

 ![Welcome sign](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/c/d/cd5a00259a3edb2385a78c2e49c29c289b3ad67b.jpeg)

Absolutely over the moon with the way it has turned out and I am buying VCarve desktop today.

Thanks all for your help on identifying the issue! Much appreciated.

Cheers  
Paul

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [December 6, 2024, 4:00pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/14 "2024-12-06T16:00:13Z")

</div>

Woop, glad it’s resolved and that looks great. 🙂

---

<div class="post-metadata">

**Author:** ![sparky75](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sparky75](https://forum.snapmaker.com/u/sparky75)\
**Post date:** [December 7, 2024, 6:50pm UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/15 "2024-12-07T18:50:00Z")

</div>

Paul,

Would you be willing to send me that custom file? I’m having the same issue! I’m using VCarve Desktop and Snapmaker A350T 2.0

Steve

---

<div class="post-metadata">

**Author:** ![pwella4597](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pwella4597](https://forum.snapmaker.com/u/pwella4597)\
**Post date:** [December 8, 2024, 3:05am UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/16 "2024-12-08T03:05:02Z")

</div>

Hi Steve, I can attach the file here. I want to caveat this with the understanding that this was created for my setup and therefore might not work. It should, but it might not. Also, Vectrics wanted to call out that if they make changes this might not work in the future. Just FYI!

[Snapmaker CNC Paul (mm).rar](https://forum.snapmaker.com/uploads/short-url/xaiWM253Idnr3NHiOvpTiIDF8li.rar) (732 Bytes)

Here are the instructions for use -

Download the attached file, unzip and save locally on your PC.  
2. From the Vcarve software \> Menu bar \> Machine \> Install Post-Processor… to browse and select the post. (This will add the post to your available set in the list but will also  
copy the file to your PostP folder)  
3. Then go to Menu Bar \> Machine \>Machine Configuration…  
4. Ensure your current machine is selected in the drop down list.  
5. In the Associated Post-Processors section click the ‘+’ button on the right to open the Post-Processor Management list.  
6. Choose the post you just installed, which will be at the top of the list with a pen icon next to it.  
7. Click Select (or just double-click it in the list)

Good luck and let me know if this works for you!

---

<div class="post-metadata">

**Author:** ![sparky75](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sparky75](https://forum.snapmaker.com/u/sparky75)\
**Post date:** [December 8, 2024, 11:19am UTC](https://forum.snapmaker.com/t/help-with-a-wayward-cnc-file/38309/17 "2024-12-08T11:19:28Z")

</div>

Paul,

Thank you so much! Judging by the simulation this has worked! Previous simulations would show the paths veering off course just as yours did. I will run on my machine soon.

Best,

Steve
