2 tool paths (same bit) in one file

Hi. I am just setting up my new woodworker and I had a question before I did my first cut.
I cut blind finger joints for speaker cabinets I build. The 1st tool path is a Pocket cut that cuts about half way through my material. My 2nd tool path (with the same bit) is a contour cut that cuts completely through my plywood.
This single gcode file has been created with Carbide Creates and with my previous machine (Shapeoko) I was able to run the single file. Can I run this same single file with my new Onefinity Woodworker x35 or do I need to split it into 2 separate files?


Hey Gaetano,

You also may also be interested in using my optimized tool change routine which honors the tool number.

1 Like

Thanks Aiph5U. I have pasted the 4 places (yellow highlight) where my GCODE has M0 written. So I can just change the M0 to M6 and leave everything else alone?




Hey Gaetano,

these are no instances of M0, but these are M02, M03, and M05, which are different commands.

And the M6T201 command seems okay. Your g-code should run fine on the Onefinity Controller as is.

What I posted above seems not to apply to the g-code your installation of Carbide Create produced, possibly because you have Carbide Motion license installed on the same computer.

In this case you can run it like it is, but only if you replaced the faulty code in the ‘tool-change’ field on the SETTINGS page by one that works (which will also honor the tool numbers in your g-code) (see also here for more general explanation).

Hey Aiph5u,
You say:

And the M6T201 command seems okay. Your g-code should run fine on the Onefinity Controller as is.

I had thought that the default tool change routine in the buildbotics controller would cause the program to pause at M6 and not be able to continue.

I just make sure my programs are only one tool and there are no M6 or M06 in them.
So my suggestion to Gaetano would have been to remove the M6T201 line.
Would that not work? Am I missing something?

Thank you Aiph5u. Regarding your queation about me having Carbide Motion on the same computer the answer is; yes I do.
I will replace the faulty code in the “tool-change” field in the Buildbotics controller software with the code you provided.
I also just discovered Carbide Create v6 let me export my Carbide file as BASIC GCODE instead of a c2d Carbide file. Now that I have done that I now have an M0 command that says
M0 ;T201
Do I just replace that with M6 ;T201

Hi ChrisM. Now that I have changed my Carbide Create Post Proccesor to Basic Gcode I no longer have an M6 command in my code. Also I am running 2 different tool paths (pocket and contour) but I am using the same bit for both cuts.
I will do my first cut in 3 days and let you know how the file attached works!

GcodeHeadBottomScaledV6 - Copy.txt (83.2 KB)


Hey Gaetano,

okay, recorded. I imagined that, but did not know it for sure, but now we all know: The hint with the invalid M0/M6 ; Txxx is for all who use just the Carbide Create Software (and own no Carbide machine), but those who own a Carbide machine and therefore have the Carbide Motion software installed get valid M6 code that runs as-is.

yes, since M0 means simply stop and the missing M6 will lead to no tool change being requested by the g-code program. This is how Carbide make its g-code invalid if you don’t own a Carbide machine and don’t have Carbide Motion installed (and for what my hint above is useful for). But you got to remove the semicolon (“;”) too! Otherwise the tool number is ignored. My ‘tool-change’ script honors the tool number.

1 Like

Hey Chris,

what it should do is to enable a comfortable manual tool change at a useful position, e.g. at home position, and provide you with useful popups to achieve the tool change and subsequent Z tool length probing. But the stock script does not to do that, and even worse, it does not lift Z enough to be usable, usually you have not the room to insert a new bit. I don’t know where that faulty code comes from. See also here for two more faulty things in that stock code.

Therefore I provide my working ‘tool-change’ routine here.

There is nothing wrong with this practice. But the more usual situation outside the Onefinity Original Series machines context is that CAM software generates one g-code file for one project, with tool changes (M6 commands) in it. The suggestion to split all g-code file into parts without tool change occurence (CAM softwares offer that option usually) comes from the Onefinity manufacturer who obviously doesn’t want to deal with what’s in the ‘tool-change’ field of the SETTINGS page.

But there are other reasons to split the file into files with only one tool. If you use this practice, you can re-run a pass with one specific tool easily. In this case you would also put the name of the tool into the g-code filename.

1 Like

Thank you Aiph5u for your detailed response!
I will follow up later this coming week when I make my first cuts.


I use Carbide Create to set up gcode files for my Woodworker with pocket paths and contour paths set up in the same file with no problem if you are using the same bit. My suggestion would be to pull the bit out and do a dry run just to be sure.
@Gaetano - your amps look great!

1 Like

Hi Larry. Thank you! Yes the CNC has been a great time saver for making the head and combo cabinets and speaker cabinets for my amps.
Doing a dry run is a great idea! 3/4 in Birch plywood is expensive LOL. thanks for that tip Larry!
I will do a dry run this week and see how it goes. I got the machine all setup on a table in the corner of the garage and just ran a manual surfacing of my wasteboard with the joystck. I am just running ethernet cable from my house to the garage now. I picked the hottest day of the year in Toronto to do it. Time for a water break!

BTW how do you save your Carbide Create files? Do you change the Post Processor in CC to Gcode?



1 Like

Hi Gaetano,
My post processor is set to basic G-code. I’ve cut a couple Telecaster type guitars in my spare time. Fun stuff. I mostly feed an Etsy shop with craft materials. Some of the craft shapes need some pockets cut before the contour can be done. I’ll run them both on the same 1/8" bit on the same file.

Thanks for the update Larry. Did you make any changes to your “Tool Change” setting in your Buildtronics controller or did you leave the factory settings?
Guitar bodies, that’s a very cool idea, you can use all types of fancy woods I imagine!
I will do the same and set my Post Processor to Gcode.
Will post results over the weekend.


@Guy77 No I didn’t make any changes to the “Tool Change” setting. That is still set at factory settings. I do change the Path Accuracy - set to .0005 mm because of the nature of the crafts I’m cutting. That shouldn’t really matter for amp cabinets though.

Thanks for the update on the “Tool Change Settings” Larry.

I wanted to follow up and say I am now successfully cutting the blind finger joints for my amplifier and speaker cabinets with my new Woodworker x35!
I converted all my Carbide Create v7 files to CC V6 and generated Gcode files. then I go into each gcode file and remove the M0 line.
Thanks everyone!

1 Like