Post GCode without M0 between toolpaths on VCarve

Hey everyone. Using VCarve, I often group tool paths together that use the same bit. Currently, I just edit the GCode and delete all of the M0 lines between sequential tool paths.

This is a bit of a pain and not the most efficient workflow. Does anyone know of a setting or a way to not M0 (stop the program) between tool paths?

Thanks!

Hey Brandon,

sure, with sed. The following command:

sed 's/^M0$//g' test.gc >output.gc

or if you are sure to modify original file:

sed -i 's/^M0$//g' test.gc

will remove any instance of M0 that is alone on a line in your file called ‘test.gc’.

If you don’t have sed installed on your CAM computer, it is installed on Onefinity Controller.

Full sed documentation is available with the command

info sed

or in the online manual.

You could modify the tool-change settings in the onefinity controller and remove the M0.

VCarve has the option to groups toolpaths to same file, or am I missing something?

1 Like

Try this…