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!
newtothis
Posts: 16
Joined: Mon Aug 29, 2022 2:54 am

exporting gcode in mmg file

Post by newtothis »

Is there any way to export a job as a .mmg file so it can be used on a laguna cnc router
any info is very much apriciated, thank you :D

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * LCInterlocking
Thanks for the time you so graciously spent to help me. :D
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: exporting gcode in mmg file

Post by chrisb »

We need more information about the code flavour of your machine. Have a look at the Path Postprocessor Customization page to see what it needs to better judge your postprocessor.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: exporting gcode in mmg file

Post by Kunda1 »

Mod edit: Moved to Path/CAM subforum
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
newtothis
Posts: 16
Joined: Mon Aug 29, 2022 2:54 am

Re: exporting gcode in mmg file

Post by newtothis »

I have a postprocessor config file for vcarve which i downloaded from laguna's website but i don't know what to do to make a freecad post processor from it
The vcarve post processor config file is in the attached zip file
Attachments
Swift (1).zip
(1.88 KiB) Downloaded 35 times
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: Fri Sep 09, 2022 12:59 am I don't know what to do to make a freecad post processor
I have no knowledge of either V-Carve or Laguna, but when looking at the config file you attached it appears that the g-code is a basic subset of world-wide standard g-code. A typical post-processor such as LinuxCNC or Grbl might work.

The real issue will be determining what pre-headers or post-commands are needed. I do not know of any method to determine those items without reference to documentation from Laguna.

Does Laguna specify what inputs are required?

The extension (.mmg) is irrelevant for FreeCAD. The output will be the same regardless of the extension. If you want to try the output from Linuxcnc or Grbl or whatever, just change the output file extension to mmg. In all cases the g-code is just a simple text file.

Gene
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: exporting gcode in mmg file

Post by chrisb »

I have linked a wiki page above. Can you post here a working gcode file for the tombstone from that page?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
jbraun
Posts: 253
Joined: Fri Sep 18, 2020 5:41 pm

Re: exporting gcode in mmg file

Post by jbraun »

Curiosity lead me to AutoDesk
https://forums.autodesk.com/t5/hsm-post ... -p/6081140
which shows the top of a file supposedly direct from Laguna tech support

Code: Select all

N0S18000M03
N10X0.000Y0.000F11430.0
N20G00X84.846Y101.282Z17.780
N30G1Z-0.254F762.0
N40G1X140.237F11430.0
N50G3X145.000Y106.045I0.000J4.763
N60G1Y155.282
N70G3X140.237Y160.044I-4.762J0.000
N80G1X84.846
N90G3X80.083Y155.282I0.000J-4.762
N100G1Y106.045
(more stuff)
N2420G00Z17.780
N2430M05
N2440M30
%
So it may not understand planes (G17) or fixture offsets(G54) or switching units (G20/G21). Or it does and they skipped the preamble (dangerous).
Line 10 is strange in having a feed with no explicit G1. Other than that it looks pretty generic.
Laguna won't have a FreeCad post but they should be able to provide a manual for this control.
For English help on youtube check out Joko Engineering or Mango Jelly Solutions.
Look for recent videos, this software is updated at a rapid pace.
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 »

chrisb wrote: Fri Sep 09, 2022 5:16 am I have linked a wiki page above.
Wrong topic?
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: exporting gcode in mmg file

Post by chrisb »

GeneFC wrote: Fri Sep 09, 2022 2:32 pm Wrong topic?
I hope not. I had linked the Path Postprocessor Customization page, and it would be interesting to see the G-code for this tombstone:
Image
A file milling this would have header and footer and would show how a straight line is coded and an arc with a non zero center.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
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 »

chrisb wrote: Sun Sep 11, 2022 6:54 pm I hope not.
Sorry. This link was not visible to me until I hovered over it. :oops:

Gene
Post Reply