exporting gcode in mmg file

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!
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: exporting gcode in mmg file

Post by chrisb »

GeneFC wrote: Sun Sep 11, 2022 6:56 pm This link was not visible to me until I hovered over it. :oops:
No problem, and without the image - which is only now visible here too - it is not easy to understand where a tombstone has place in this discussion.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
newtothis
Posts: 16
Joined: Mon Aug 29, 2022 2:54 am

Re: exporting gcode in mmg file

Post by newtothis »

I have changed config of fablin post procesor and it almost works but I can't get rapid feeds to be output as G00 instead of the defalt G0
Thanks for the time you so graciously spent to help me. :D
newtothis
Posts: 16
Joined: Mon Aug 29, 2022 2:54 am

Re: exporting gcode in mmg file

Post by newtothis »

I have changed config of grbl post processor and it almost works but I can't get rapid moves to be output as G00 instead of G0, I also need the spindle start command to Be M03 instead of M3 thank for any reply
Thanks for the time you so graciously spent to help me. :D
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: exporting gcode in mmg file

Post by chrisb »

newtothis wrote: Sat Dec 03, 2022 3:13 am I have changed config of grbl post processor and it almost works but I can't get rapid moves to be output as G00 instead of G0,
In philips_post.py I do the inverse and remove the leading 0 (line 422).
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
newtothis
Posts: 16
Joined: Mon Aug 29, 2022 2:54 am

Re: exporting gcode in mmg file

Post by newtothis »

I don't think I understand what you mean
Idon't see a leading zero
Last edited by newtothis on Sat Dec 03, 2022 5:25 pm, edited 1 time in total.
Thanks for the time you so graciously spent to help me. :D
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: exporting gcode in mmg file

Post by chrisb »

newtothis wrote: Sat Dec 03, 2022 4:09 pm I don't think I understand what you mean
I'm looking there for G01, G02, ... and change it to G1, G2, ... You have to do the opposite and look where G1, G2, ... come from and change their creation.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
newtothis
Posts: 16
Joined: Mon Aug 29, 2022 2:54 am

Re: exporting gcode in mmg file

Post by newtothis »

Thank You I appreciate the Help. :D
Thanks for the time you so graciously spent to help me. :D
newtothis
Posts: 16
Joined: Mon Aug 29, 2022 2:54 am

Re: exporting gcode in mmg file

Post by newtothis »

That is much but it outputs command that I see no way of supressing
Thanks for the time you so graciously spent to help me. :D
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: exporting gcode in mmg file

Post by GeneFC »

newtothis wrote: Sun Dec 04, 2022 12:36 am That is much but it outputs command that I see no way of supressing
This is a slightly different topic than changing G0 to G00.

What commands are you trying to suppress?

If they are fixed commands in the preamble or postamble just strip those commands out of the postprocessor.

If they are part of the actual code from the model then you will need to trap them and remove them or change them as they come through. All model codes are addressed one-by-one in order. If you look at the postprocessor code carefully you will find the section that handles that sequential processing.

It does not take a lot of Python knowledge to make a few changes, but you can get help here if you give more details.

Gene
newtothis
Posts: 16
Joined: Mon Aug 29, 2022 2:54 am

Re: exporting gcode in mmg file

Post by newtothis »

N20 G18
N30 G90
N40 G51
N50 G52 (ersetze G55-G59)

N60 G54
N70 G00Z43.100
N80 (quarter inch endmill001)
N90 M6T2

I don't need any of it but I cant have any of it that is not in () exept N70 G00Z43.100
Thanks for the time you so graciously spent to help me. :D
Post Reply