[solved]Path post-processor and GRBL

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
dddns
Posts: 9
Joined: Sun Aug 07, 2022 6:41 pm

[solved]Path post-processor and GRBL

Post by dddns »

Hello :)

For me, the post processor for GRBL does not work correctly.
If I drill holes, the gcode contains G83 drilling cycle and G99 commands, which GRBL does not understand and will lead to an error.



Does somebody experiences same problems?
Last edited by dddns on Tue Aug 09, 2022 7:06 am, edited 1 time in total.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Path post-processor and GRBL

Post by GeneFC »

dddns wrote: Mon Aug 08, 2022 3:27 pm
If you select "peck" in the drilling task panel you will get G83. If you do not select special operations, peck or dwell, then the code should contain only G81.

Gene
dddns
Posts: 9
Joined: Sun Aug 07, 2022 6:41 pm

Re: Path post-processor and GRBL

Post by dddns »

Thanks for your answer Gene.

GRBL does not support any of the cycle gcode commands.
The only solution would be, if the post-processor would translate retraction and all other moves to G0/G1 linear moves.
LarryWoestman
Posts: 98
Joined: Fri Oct 09, 2020 4:56 pm
Location: Oregon, USA

Re: Path post-processor and GRBL

Post by LarryWoestman »

Looking at the source code, it appears that the GRBL post defaults to not translating G81, G82, and G83 commands. If you want it to translate, you need to use the "--translate_drill" option.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Path post-processor and GRBL

Post by chrisb »

This seems to depend on the grbl capabilities of your mill. You can try playing with the --no-translate-drill option.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
spanner888
Posts: 326
Joined: Tue May 28, 2019 10:51 am

Re: Path post-processor and GRBL

Post by spanner888 »

The grbl post processor has a default option:

Code: Select all

--no-translate_drill    "don't translate drill cycles G81, G82 & G83 in G0/G1 movements (default)"
So try adding to the Job - output the option:

Code: Select all

--translate_drill
There are other posts in the forum explaining in more detail, just search for "translate_drill"
dddns
Posts: 9
Joined: Sun Aug 07, 2022 6:41 pm

Re: Path post-processor and GRBL

Post by dddns »

Using "--translate_drill" was the solution.

Many thanks to you all!
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: [solved]Path post-processor and GRBL

Post by chrisb »

Sorry if I caused confusion with the inversed option.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
boothdcb
Posts: 5
Joined: Mon Aug 26, 2019 8:58 am

Re: Path post-processor and GRBL

Post by boothdcb »

dddns wrote: Tue Aug 09, 2022 7:05 am Using "--translate_drill" was the solution.

Many thanks to you all!
This seems to be a common problem for home build CNC mill projects that use grbl. So how do I change the default option to "--translate_drill". I could do with a simple guide. It might be helpful if, in future developments of the Path workbench, there was an option to do this when grbl is selected as the post processor.
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: Path post-processor and GRBL

Post by mlampert »

boothdcb wrote: Thu Sep 29, 2022 2:46 pm This seems to be a common problem for home build CNC mill projects that use grbl. So how do I change the default option to "--translate_drill". I could do with a simple guide. It might be helpful if, in future developments of the Path workbench, there was an option to do this when grbl is selected as the post processor.
You should find everything you're looking for in the Path Preferences.
Last edited by mlampert on Fri Sep 30, 2022 1:15 am, edited 1 time in total.
Post Reply