TimPaterson / Fusion360-Batch-Post

Fusion 360 add-in to post all CAM setups at once, optionally dividing them into folders.
The Unlicense
123 stars 25 forks source link

Restore Rapids adds transforms G0 that are already produced by the post processor into G00 #68

Open meeloo opened 6 months ago

meeloo commented 6 months ago

I use a custom post processor (https://github.com/meeloo/Duet3Config/blob/main/Fusion%20360%20Post%20processor/duetcnc.cps) that already produces some G0 commands and it seems that when using the batch processor those G0 commands are transformed into G00 commands that my CNC controller (Duet3, RepRapFirmware based) doesn't know how to interpret and stops processing the file.

TimPaterson commented 6 months ago

I'd be interested in seeing the G-code you're talking about. PostProcessAll should never modify an existing G0 command, and any line it does modify will have a comment showing the orignal line.

In any case, you can easily modify it to output G0 instead of G00 by editing PostProcessAll.py. Find the strings with "G00" in it (lines 50 & 51) and change them to "G0".

meeloo commented 5 months ago

sorry for getting back so late. indeed I was wrong and the changes you mentioned do fix the issue on my controller. Do you plan to make this change in the source? Is there a reason why G00 is preferred over G0?

TimPaterson commented 5 months ago

It's done that way because that's how it's documented in CNC Programming Handbook by Peter Smid.