Difference between revisions of "Laser Cutting GCODE Conversion"
(Created page with "<br> 20px<i><small> Mark Qvale - February, 2023</small></i><br> {| cellspacing="1" cellpadding="1" width="95%" border="0" |- | align="left" valign="top"...") |
(→CAD Work) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
[[File:cc_image.png|20px]]<i><small> Mark Qvale - February, 2023</small></i><br> | [[File:cc_image.png|20px]]<i><small> Mark Qvale - February, 2023</small></i><br> | ||
− | {| cellspacing="1" cellpadding="1" width=" | + | {| cellspacing="1" cellpadding="1" width="85%" border="0" |
|- | |- | ||
| align="left" valign="top" width="30%" | __TOC__ | | align="left" valign="top" width="30%" | __TOC__ | ||
− | | align="right" valign="top" width="70%" | [[File: | + | | align="right" valign="top" width="70%" | [[File:D2C_008.jpg|500px]] |
|- | |- | ||
| | | | ||
| align="right" width="50%" | | | align="right" width="50%" | | ||
|} | |} | ||
− | |||
== <br>Introduction == | == <br>Introduction == | ||
Line 17: | Line 15: | ||
== CAD Work == | == CAD Work == | ||
− | If you have a CAD package which has the ability to design solid parts, create a virtual assembly and create/save DXF drawing files then this method will work for you. This method will also work if you do not have a CAD setup but do have the ability to get DXF drawings of your parts. I have a SolidWorks | + | If you have a CAD package which has the ability to design solid parts, create a virtual assembly and create/save DXF drawing files then this method will work for you. This method will also work if you do not have a CAD setup but do have the ability to get DXF drawings of your parts. I have a SolidWorks CAD package and there are many inexpensive and even free alternatives which can do this work quite easily. If you do not have a CAD setup, three are listed below that can get you there inexpensively<br> |
'''Three CAD packages:'''<br> | '''Three CAD packages:'''<br> | ||
Line 27: | Line 25: | ||
Of these three, Fusion360 is likely the easiest to learn for most folks without CAD experience.<br> | Of these three, Fusion360 is likely the easiest to learn for most folks without CAD experience.<br> | ||
− | In my CAD design software (SolidWorks in my case) after completing all part design I layout all similar thickness parts in an assembly, fitting them to virtual 4" x 36" balsa sheets. | + | In my CAD design software (SolidWorks in my case) after completing all part design I layout all similar thickness parts in an assembly, fitting them to virtual 4" (101.6mm) x 36" (914.4mm) balsa sheets. |
<br> | <br> | ||
{| border="0" cellspacing="1" cellpadding="1" width="900" align="center" | {| border="0" cellspacing="1" cellpadding="1" width="900" align="center" | ||
|- | |- | ||
− | | align="center" | [[File: | + | | align="center" | [[File:D2G_001.jpg|900px]] |
|- | |- | ||
| align="center" | All components laid out on three virtual panels | | align="center" | All components laid out on three virtual panels | ||
Line 38: | Line 36: | ||
<br> | <br> | ||
− | In the above example I have laid out all the parts of a fuselage build within three | + | In the above example I have laid out all the parts of a fuselage build within the boundaries of the three virtual panels represented by the dashed boxes. Once the layout is done I group each set of panel components, listed on the left, into three folders to represent the three panels. This gives me the ability to suppress the panel groups so I can send one panel at a time to a DXF drawing. |
<br> | <br> | ||
{| border="0" cellspacing="1" cellpadding="1" width="900" align="center" | {| border="0" cellspacing="1" cellpadding="1" width="900" align="center" | ||
|- | |- | ||
− | | align="center" | [[File: | + | | align="center" | [[File:D2G_002.jpg|900px]] |
|- | |- | ||
| align="center" | Two panels and the boxes suppressed | | align="center" | Two panels and the boxes suppressed | ||
Line 62: | Line 60: | ||
Once this is done I save the drawing as a DXF. I then go back and suppress this first panel and un-suppress the next panel, saving it as the next DXF. Note: I also suppress the dashed box as it is not needed in the DXF file.<br> | Once this is done I save the drawing as a DXF. I then go back and suppress this first panel and un-suppress the next panel, saving it as the next DXF. Note: I also suppress the dashed box as it is not needed in the DXF file.<br> | ||
− | I am now ready to convert these three DXF files to | + | I am now ready to convert these three DXF files to three workable gcode files.<br> |
== DXF to GCODE == | == DXF to GCODE == | ||
− | In my method there are a couple of steps to this conversion using four free tools.<br> | + | In my method there are a couple of steps to this conversion using four <i>'''free'''</i> tools.<br> |
− | <b>Step one</b> is to upload each DXF to an online conversion tool to create | + | <b>Step one</b> is to upload each DXF to an online conversion tool to create generic gcode files. I use the <i>'''free'''</i> online converter found at '''"CNC-APPS.com"'''. It is very easy to use and in my experience, has never written a bad or missed instruction.<br> |
Link: <u>'''[https://cnc-apps.com/en/app/dxf2gcode DXF to GCODE Converter]'''</u> | Link: <u>'''[https://cnc-apps.com/en/app/dxf2gcode DXF to GCODE Converter]'''</u> | ||
− | + | <br> | |
− | Below is a screenshot of the DXF to GCODE converter with the parameters set | + | Below is a screenshot of the "DXF to GCODE" converter with the parameters I use. The '''"Plasma"''' Cutting Type will set a cut path that does the inside holes first. This cutting type also allows the use of a '''"Kerf Distance"''' (0.09mm for my laser). |
<br> | <br> | ||
Line 84: | Line 82: | ||
Once the parameters are set, click on the '''"RUN"''' button and in a few seconds (up to a minute) three file types are offered for download. I use the "GCODE" file type.<br> | Once the parameters are set, click on the '''"RUN"''' button and in a few seconds (up to a minute) three file types are offered for download. I use the "GCODE" file type.<br> | ||
− | + | The next steps are all about editing, checking and clean-up. You can edit the file in any text editor. I use "Notepad++". This is a really nice code editing tool that I have written macros in to do all my standard GCODE file edits. The macros I use create a standard header and footer as well as replacing plasma '''M''' codes with '''F''' and '''S''' codes to set up speeds and laser on/off.<br> | |
For the check part of this step, I use the free web based simulator "NC Viewer" at <u>'''[https://ncviewer.comn NCVIEWER.com]'''</u> | For the check part of this step, I use the free web based simulator "NC Viewer" at <u>'''[https://ncviewer.comn NCVIEWER.com]'''</u> | ||
Line 94: | Line 92: | ||
<br> | <br> | ||
− | + | Select the Open File button to upload your edited gcode file and hit the play button. You can watch the cut sequence while it draws through your shapes. The different colored lines represent paths for laser-off transit (Red) and laser-on cut (Blue). This is the clean-up part of this step and is a great way to check the quality of your gcode and isolate areas where you may want to make other changes.<br><br> | |
=== RunIt! === | === RunIt! === | ||
− | File should be ready to send to the laser. | + | File should be ready to send to the laser. I use a laptop running <u>'''[https://winder.github.io/ugs_website/guide/platform/#:~:text=The%20UGS%20Platform%20is%20the,by%20a%20home%20grown%20framework. UGS Platform]'''</u> which is another awesome freebie...<br> |
<br> | <br> | ||
Line 106: | Line 104: | ||
|- | |- | ||
| align="center" | Screenshot of the UGS Platform | | align="center" | Screenshot of the UGS Platform | ||
+ | |} | ||
+ | <br> | ||
+ | |||
+ | <br> | ||
+ | {| border="0" cellspacing="1" cellpadding="1" width="900" align="center" | ||
+ | |- | ||
+ | | align="center" | [[File:D2C_007.jpg|900px]] | ||
+ | |- | ||
+ | | align="center" | Balsa panel cut | ||
|} | |} | ||
<br> | <br> | ||
Line 125: | Line 132: | ||
:* <u>'''[https://winder.github.io/ugs_website/guide/platform/#:~:text=The%20UGS%20Platform%20is%20the,by%20a%20home%20grown%20framework. UGS Platform]'''</u><br><br> | :* <u>'''[https://winder.github.io/ugs_website/guide/platform/#:~:text=The%20UGS%20Platform%20is%20the,by%20a%20home%20grown%20framework. UGS Platform]'''</u><br><br> | ||
+ | === Comments? Questions? === | ||
+ | |||
+ | :'''<u>[mailto:qmar80@hotmail.com?Subject=About%20the%20Laser%20GCODE%20Conversion&body=Question? email me!]</u>''' | ||
<br><br> | <br><br> | ||
− | [[Category: | + | [[Category:Contents]] |
Latest revision as of 19:31, 4 February 2023
Introduction
I've been improving my ability to use my Bench-top Laser to cut balsa and plywood parts for some scratch build RC projects I have been doing. Some of the improvements have been on the machine itself now with a more powerful laser (10w), better stepper motors and drivers, air assist, etc. Other improvements have been in the method I use to create the gcode files needed to cut these parts. This article then is about the process I use to create these files.
CAD Work
If you have a CAD package which has the ability to design solid parts, create a virtual assembly and create/save DXF drawing files then this method will work for you. This method will also work if you do not have a CAD setup but do have the ability to get DXF drawings of your parts. I have a SolidWorks CAD package and there are many inexpensive and even free alternatives which can do this work quite easily. If you do not have a CAD setup, three are listed below that can get you there inexpensively
Three CAD packages:
- Fusion360 for Hobbyists by Autodesk is excellent and free
- Onshape is another free for Hobbyist platform which can do it all
- SolidWorks for Makers is an online version that costs $9.99/month
Of these three, Fusion360 is likely the easiest to learn for most folks without CAD experience.
In my CAD design software (SolidWorks in my case) after completing all part design I layout all similar thickness parts in an assembly, fitting them to virtual 4" (101.6mm) x 36" (914.4mm) balsa sheets.
All components laid out on three virtual panels |
In the above example I have laid out all the parts of a fuselage build within the boundaries of the three virtual panels represented by the dashed boxes. Once the layout is done I group each set of panel components, listed on the left, into three folders to represent the three panels. This gives me the ability to suppress the panel groups so I can send one panel at a time to a DXF drawing.
Two panels and the boxes suppressed |
I then (in SolidWorks) create a drawing from this assembly making the drawing size 4" x 36" and set the X and Y axis to the part edges.
Drawing ready to save to DXF |
Once this is done I save the drawing as a DXF. I then go back and suppress this first panel and un-suppress the next panel, saving it as the next DXF. Note: I also suppress the dashed box as it is not needed in the DXF file.
I am now ready to convert these three DXF files to three workable gcode files.
DXF to GCODE
In my method there are a couple of steps to this conversion using four free tools.
Step one is to upload each DXF to an online conversion tool to create generic gcode files. I use the free online converter found at "CNC-APPS.com". It is very easy to use and in my experience, has never written a bad or missed instruction.
Link: DXF to GCODE Converter
Below is a screenshot of the "DXF to GCODE" converter with the parameters I use. The "Plasma" Cutting Type will set a cut path that does the inside holes first. This cutting type also allows the use of a "Kerf Distance" (0.09mm for my laser).
Once the parameters are set, click on the "RUN" button and in a few seconds (up to a minute) three file types are offered for download. I use the "GCODE" file type.
The next steps are all about editing, checking and clean-up. You can edit the file in any text editor. I use "Notepad++". This is a really nice code editing tool that I have written macros in to do all my standard GCODE file edits. The macros I use create a standard header and footer as well as replacing plasma M codes with F and S codes to set up speeds and laser on/off.
For the check part of this step, I use the free web based simulator "NC Viewer" at NCVIEWER.com
Select the Open File button to upload your edited gcode file and hit the play button. You can watch the cut sequence while it draws through your shapes. The different colored lines represent paths for laser-off transit (Red) and laser-on cut (Blue). This is the clean-up part of this step and is a great way to check the quality of your gcode and isolate areas where you may want to make other changes.
RunIt!
File should be ready to send to the laser. I use a laptop running UGS Platform which is another awesome freebie...
Screenshot of the UGS Platform |
Balsa panel cut |
See Also
Referenced Links
CAD
- Fusion360 for Hobbyists by Autodesk is excellent and free
- Onshape is another free for Hobbyist platform which can do it all
- SolidWorks for Makers is an online version that costs $9.99/month
Tools
Comments? Questions?