Difference between revisions of "Software"

From ShapeOko
Jump to: navigation, search
(Created page with "==Computer Aided Design (CAD) Software== ==Computer Aided Manufacturing (CAM) Software== ==G-Code Sender== ==G-Code Interpreter== ===GRBL===")
 
(Specialty Software)
 
(175 intermediate revisions by 13 users not shown)
Line 1: Line 1:
==Computer Aided Design (CAD) Software==
+
The easiest thing to do is to download:
  
==Computer Aided Manufacturing (CAM) Software==
+
* http://carbide3d.com/carbidecreate
 +
* http://carbide3d.com/carbidemotion (if using a Nomad 883 or Shapeoko 3/XL/XXL) and if need be: http://carbide3d.com/carbideupdater
  
==G-Code Sender==
+
==Overview==
 +
[[File:gcode_flow.JPG]]
  
==G-Code Interpreter==
+
You'll go through five steps in creating a part with your ShapeOko.
===GRBL===
+
*Design the part in a [[CAD]] (Computer Aided Design) system.
 +
*Generate the [[G-Code]] that will drive your ShapeOko using a [[CAM]] (Computer Aided Manufacturing) program.
 +
*Check that G-code to ensure it does what you want in an efficient manner in a [[Previewing_G-Code|Previewer]].
 +
*Send the G-code from your PC to the controller for your ShapeOko using a [[Communication_/_Control|communication/control]] program.
 +
*Interpret the G-code to drive the stepper motors (some systems combine these last two steps).
 +
 
 +
[http://docs.carbide3d.com/software-faq/what-software-comes-standard-with-each-machine/ What software comes standard with each machine?]
 +
 
 +
In order to keep things simple, we've moved most of the software information to specific sub-pages linked from the headers below. The basics are covered in:
 +
 
 +
* [http://docs.carbide3d.com/tutorials/hello-world/ Shapeoko 3 Hello World] --- this gets one started w/ writing out the machine's name using pre-generated G-code --- [http://shapeoko.github.io/Docs/helloworld.html Shapeoko 2: Hello World]
 +
* http://docs.carbide3d.com/tutorials/project-coaster/ or [http://shapeoko.github.io/Docs/firstjob.html First Job] --- milling a first object, a coaster out of cork, after drawing it up in [[Carbide Create]] or [[MakerCAM]], cf., [[Run Your Second Job]]
 +
 
 +
Regardless of which software toolchain you are planning to use, please read and review the above tutorials, since they cover the basics of the processes involved and introduce the relevant terminology. If anything is unclear, please refer to the [[Glossary]].
 +
 
 +
In addition, you may wish to try these alternative tutorials which show the usage of various other programs:
 +
 
 +
* [[Basic workflow 2D]] --- Using [[Inkscape]] to set some text, HeeksCNC to convert it to G-code and OpenSCAM to preview it
 +
* [[Basic workflow 3D]] --- Creating a part using an opensource CAD application, exporting it as an stp file and processing it using HeekSCNC and OpenSCAM
 +
 
 +
===[[CAD | Computer Aided Design (CAD) Software]]===
 +
 
 +
CAD programs are high precision drawing programs.  They can be used to create diagrams, models, and circuits.  Different programs are best suited for particular tasks, and it's also possible to use a general-purpose vector drawing program instead of a special-purpose CAD program.
 +
 +
* [[Carbide Create]] is freely available and includes CAM functionality, and will import DXF and SVG files.
 +
* [[Inkscape]] is the typical choice for beginning CAD and vector drawing.
 +
 
 +
A number of different [[file formats]] are used for exchanging 2D and 2.5D part files:
 +
 
 +
# DXF --- data exchange format, a CAD-specific format, feature support varies by version
 +
# SVG --- while scalable vector graphics were intended for web / on-screen usage, their RGB nature does not limit their usage for CAD/CAM as it does for print. A useful utility for them is: https://jakearchibald.github.io/svgomg/
 +
 
 +
3D CAD programs will define geometry in one of three ways[http://www.reddit.com/r/cad/comments/38jgbx/why_are_there_two_forms_of_3d_modeling/crvl7z7]:
 +
 
 +
# '''Point Clouds''' --- typically these are generated by 3D scanning and are difficult to edit.
 +
# '''Polygon Meshes''' --- triangles connected so as to define a polygonal 3D area. Typically stored as .stl files and often used for 3D printing.
 +
# '''Surfaces/NURBS''' --- shaped defined by curves. Resolution independent and easily edited.
 +
 
 +
===[[CAM | Computer Aided Manufacturing (CAM) Software]]===
 +
 
 +
CAM programs read files from a CAD program and create G-code from it.  G-code is the standard way of specifying the movements of a CNC machine.  Some programs combine CAD and CAM in a single program. G-code is provided for your first job, so you don't need to worry about CAM while setting up your machine.  It is also possible to [[Programmatic G-Code Generators | programmatically generate G-code]] or to [[Interactive_G-Code_Generators | generate it using an interactive system]].
 +
 
 +
* [[Carbide Create]] is freely available and has 2.5D CAM functionality as well as the ability to do V carving and texture toolpaths.
 +
* [[MakerCAM]], available at [http://www.makercam.com www.makercam.com] is the typical choice for beginning CAM.
 +
 
 +
===[[Previewing G-Code | Verify / Optimize G-Code]]===
 +
 
 +
Verifying and optimizing your G-code is optional, but can be helpful.  The verification step checks to be sure the G-code performs the right operations, does it in a logical order, and doesn't send the tool anywhere you don't want it (like through the piece you're making).  The optimization step attempts to create G-code that gets the job done as quickly as possible, removing unnecessary steps and sequencing the movements in an order that minimizes extra movement.
 +
 
 +
Some communication / control program (see below) include previewing functionality --- it is recommended that one utilize that function in Carbide Create or Universal G-Code Sender to begin.
 +
 
 +
===[[Communication / Control]]===
 +
 
 +
At the minimum, a G-code sender program will send G-code commands from the PC to the Arduino.  Some G-code sender programs can do a lot more, such as allowing you to "zero" the CNC machine and visualize the path of the tool. You will need a program to do this, either one listed below, or from the [[Communication / Control | communication / control]] page.
 +
 
 +
* [http://carbide3d.com/downloads/ Carbide Motion], a QT program that will run on Windows and Mac OS X will be the communication / control software for Carbide 3D machines (Shapeoko 3 or Nomad 883).
 +
* [[Universal-G-Code-Sender]], a Java program that will run on Windows, Linux and Mac OS X is the typical communication / control software choice.
 +
 
 +
'''Note:''' some programs directly control the machine rather than sending G-code to an interpreting controller, so are listed on the [[Communication / Control]] page.
 +
 
 +
Communication / Control is at the heart of how a CNC operates, as described in [[How a CNC operates|this page]].
 +
 
 +
===[[G-Code Interpreters]]===
 +
This is the final step in the process.  The standard G-code interpreter for ShapeOko is a program called [[GRBL]] that runs on the Arduino.  [[GRBL]] takes the G-code instructions sent by a [[Communication / Control]] program, interprets them, and outputs electrical signals through the stepper shield to the stepper motors.
 +
 
 +
* [[GRBL]] is a free, open source, high performance, CNC milling controller; written in optimized C that will run on a straight Arduino.  The basic documents here assume you will need to have [[GRBL]] installed on your Arduino when running your first job.
 +
 
 +
===[[Programmatic_G-Code_Generators | Programming]]===
 +
 
 +
Some users may find writing programs to achieve certain designs more efficient. In addition to the programs listed on the [[Programmatic G-Code Generators]] page, [[OpenSCAD]] is a [[CAD]] tool which uses a programming language as its interface.
 +
 
 +
===[[Interactive G-Code Generators]]===
 +
 
 +
Another alternative as noted above is to use a previously written program which is interactive. This style of usage is also termed “conversational” programming and is featured on some commercial machines.
 +
 
 +
===[[G-Code Utilities]]===
 +
 
 +
There are a number of utility programs for various tasks, such as scaling, rotating, and various other sorts of post-processing.
 +
 
 +
===Conversion Programs===
 +
 
 +
'''Note:''' Please note that there are also conversion tools which may be useful. These are listed in various sections, depending upon their input--output. Of especial note are:
 +
 
 +
* https://github.com/dawbarton/pdf2svg
 +
* ps2gc ([[Programmatic_G-Code_Generators |programming]]) --- converts from PostScript to G-Code
 +
* [http://www.helga-glunz.homepage.t-online.de/pstoedit/ pstoedit] --- suite of utilities which convert from many different formats to PostScript and back
 +
* grecode ([[Programmatic_G-Code_Generators |programming]]) --- converts G-Code to G-Code but allows shifting, rotation, mirroring, &c.
 +
* [[CAM#Conversion programs | DXF (and other) Conversion programs]]
 +
* http://www.greentoken.de/onlineconv/
 +
* DXF to SVG:
 +
** http://sourceforge.net/projects/dxf-svg-convert/ --- A dxf to svg converter. Can be used to create pure svg files or Inkscape svg files with extra information like layers.
 +
** http://sourceforge.net/project/showfiles.php?group_id=152775 from http://www.inkscapeforum.com/viewtopic.php?t=3208#p14977
 +
** OpenOffice Draw will open a DXF and save out an SVG: http://www.britishideas.com/2008/09/07/importing-dxf-files-into-inkscape/
 +
*  http://kyllikki.github.io/png23d/ 3d mesh generation tool will convert a PNG to a .stl or OpenSCAD
 +
* http://paulrowntree.weebly.com/stl--image-converter.html --- tool to load an STL or pixel image file and output a CSV containg a 3D toolpath to trace the surface.
 +
* https://sourceforge.net/projects/ncdr2cnc/ --- N/C Drill to G-Code convertor
 +
* https://github.com/lemgandi/3mf2stl --- 3mf to stl converter for Linux[https://www.reddit.com/r/3Dprinting/comments/55tkz2/3mf_to_stl_converter_for_linux/]
 +
 
 +
One interesting option is to chain utilities together to create a virtual printer which will convert to a .dxf under user control: http://gpl.coulmann.de/cnc/dxf-printer.html
 +
 
 +
http://tcicorp.com/converting-adobe-illustrator-splines-for-the-best-possible-cutting-path/
 +
 
 +
In a class by itself is: http://en.homeconstructor.de/converter-convert-music-in-g-code.html which will convert MIDI into G-code commands to play that tune.
 +
 
 +
==Mac OS X==
 +
 
 +
While all of the above works on Mac OS X, there aren't many documented OS X-centric workflows. One such was written up here: [http://www.shapeoko.com/forum/viewtopic.php?f=6&t=3690&p=27643 Re: Linux vs OSX to TinyG].
 +
 
 +
Basically all of the opensource stuff works on Mac OS X as it would on Windows or Linux, and a number of [[Commercial Software|commercial]] programs have Mac ports (though some of them may require XQuartz as some of the opensource apps do).
 +
 
 +
[[Carbide Create]] runs on Mac OS X as well as Windows.
 +
 
 +
[http://computeraideddesignguide.com/best-cad-software-for-mac-reviews/ 12CAD.com: Best CAD Software for Mac Reviews]
 +
 
 +
https://www.reddit.com/r/cad/comments/53gzt5/mac_os_x_apps_for_cadcam/
 +
 
 +
https://www.reddit.com/r/cad/comments/64v8pa/my_boss_refuses_to_allow_a_windows_machine_in_the/
 +
 
 +
List of commercial CAD/CAM apps for Mac OS X: http://www.shapeoko.com/forum/viewtopic.php?f=6&t=8378#p65275
 +
 
 +
==Linux==
 +
 
 +
Most, if not all of the opensource software runs under Linux, and Linux is used for a number of special-purpose systems such as the Raspberry Pi.
 +
 
 +
* http://caelinux.org/wiki/index.php/Main_Page --- a distribution focused on Computer Aided Engineering. http://www.linuxinsider.com/story/80277.html
 +
* http://fedoraproject.org/wiki/SIGs/3DPrinting
 +
 
 +
==[[Commercial Software]]==
 +
 
 +
Please note that commercial software, as well as otherwise free programs, which have significant licensing limitations have been moved to their own [[Commercial Software|page]].
 +
 
 +
==Machinist Notebook==
 +
 
 +
Jupyter Notebook --- server at: https://colab.research.google.com/notebooks/welcome.ipynb [http://community.carbide3d.com/t/jupyter-notebook-as-a-cnc-machinist-notebook/8819] [https://www.reddit.com/r/hobbycnc/comments/8jur87/jupyter_notebook_as_a_cnc_machinist_notebook/] [https://www.reddit.com/r/CNC/comments/6stx1w/machinist_notebook_software/dlfpcl3/]
 +
 
 +
==Specialty Software==
 +
 
 +
Note that some specialty software links are scattered throughout this wiki. Some of the more notable instances include:
 +
 
 +
* [[Materials#Feed_and_Speed_Calculators|Materials: Feed and Speed Calculators]]
 +
* http://www.kd-dietz.com/klausphp/pages/eng/webcam_standaloneV3/description/cam_description.html --- edge finder program for Windows.[http://www.shapeoko.com/forum/viewtopic.php?f=25&t=6882&p=54096#p54094]
 +
* https://sourceforge.net/projects/machmathkit/ --- Machinist Math Kit --- recursive Mill Rate calculator (changes the corresponding values as you manipulate the data)
 +
* http://apps.islandcnc.net/ --- utility to convert endmill/tooling information [https://www.reddit.com/r/hobbycnc/comments/hs6g9f/tool_library_conversion/]
 +
* Bill of Materials
 +
** https://www.openbom.com/
 +
** https://indabom.com/ [https://www.reddit.com/r/cad/comments/inmdtv/diy_or_free_database_for_file_and_project/g48lx5j/]
 +
 
 +
==Discussions==
 +
 
 +
https://www.reddit.com/r/3Dprinting/comments/3gj2x0/best_free_3d_software_for_a_beginner/ctytytw

Latest revision as of 15:06, 6 September 2020

The easiest thing to do is to download:

Overview

Gcode flow.JPG

You'll go through five steps in creating a part with your ShapeOko.

  • Design the part in a CAD (Computer Aided Design) system.
  • Generate the G-Code that will drive your ShapeOko using a CAM (Computer Aided Manufacturing) program.
  • Check that G-code to ensure it does what you want in an efficient manner in a Previewer.
  • Send the G-code from your PC to the controller for your ShapeOko using a communication/control program.
  • Interpret the G-code to drive the stepper motors (some systems combine these last two steps).

What software comes standard with each machine?

In order to keep things simple, we've moved most of the software information to specific sub-pages linked from the headers below. The basics are covered in:

Regardless of which software toolchain you are planning to use, please read and review the above tutorials, since they cover the basics of the processes involved and introduce the relevant terminology. If anything is unclear, please refer to the Glossary.

In addition, you may wish to try these alternative tutorials which show the usage of various other programs:

  • Basic workflow 2D --- Using Inkscape to set some text, HeeksCNC to convert it to G-code and OpenSCAM to preview it
  • Basic workflow 3D --- Creating a part using an opensource CAD application, exporting it as an stp file and processing it using HeekSCNC and OpenSCAM

Computer Aided Design (CAD) Software

CAD programs are high precision drawing programs. They can be used to create diagrams, models, and circuits. Different programs are best suited for particular tasks, and it's also possible to use a general-purpose vector drawing program instead of a special-purpose CAD program.

  • Carbide Create is freely available and includes CAM functionality, and will import DXF and SVG files.
  • Inkscape is the typical choice for beginning CAD and vector drawing.

A number of different file formats are used for exchanging 2D and 2.5D part files:

  1. DXF --- data exchange format, a CAD-specific format, feature support varies by version
  2. SVG --- while scalable vector graphics were intended for web / on-screen usage, their RGB nature does not limit their usage for CAD/CAM as it does for print. A useful utility for them is: https://jakearchibald.github.io/svgomg/

3D CAD programs will define geometry in one of three ways[1]:

  1. Point Clouds --- typically these are generated by 3D scanning and are difficult to edit.
  2. Polygon Meshes --- triangles connected so as to define a polygonal 3D area. Typically stored as .stl files and often used for 3D printing.
  3. Surfaces/NURBS --- shaped defined by curves. Resolution independent and easily edited.

Computer Aided Manufacturing (CAM) Software

CAM programs read files from a CAD program and create G-code from it. G-code is the standard way of specifying the movements of a CNC machine. Some programs combine CAD and CAM in a single program. G-code is provided for your first job, so you don't need to worry about CAM while setting up your machine. It is also possible to programmatically generate G-code or to generate it using an interactive system.

  • Carbide Create is freely available and has 2.5D CAM functionality as well as the ability to do V carving and texture toolpaths.
  • MakerCAM, available at www.makercam.com is the typical choice for beginning CAM.

Verify / Optimize G-Code

Verifying and optimizing your G-code is optional, but can be helpful. The verification step checks to be sure the G-code performs the right operations, does it in a logical order, and doesn't send the tool anywhere you don't want it (like through the piece you're making). The optimization step attempts to create G-code that gets the job done as quickly as possible, removing unnecessary steps and sequencing the movements in an order that minimizes extra movement.

Some communication / control program (see below) include previewing functionality --- it is recommended that one utilize that function in Carbide Create or Universal G-Code Sender to begin.

Communication / Control

At the minimum, a G-code sender program will send G-code commands from the PC to the Arduino. Some G-code sender programs can do a lot more, such as allowing you to "zero" the CNC machine and visualize the path of the tool. You will need a program to do this, either one listed below, or from the communication / control page.

  • Carbide Motion, a QT program that will run on Windows and Mac OS X will be the communication / control software for Carbide 3D machines (Shapeoko 3 or Nomad 883).
  • Universal-G-Code-Sender, a Java program that will run on Windows, Linux and Mac OS X is the typical communication / control software choice.

Note: some programs directly control the machine rather than sending G-code to an interpreting controller, so are listed on the Communication / Control page.

Communication / Control is at the heart of how a CNC operates, as described in this page.

G-Code Interpreters

This is the final step in the process. The standard G-code interpreter for ShapeOko is a program called GRBL that runs on the Arduino. GRBL takes the G-code instructions sent by a Communication / Control program, interprets them, and outputs electrical signals through the stepper shield to the stepper motors.

  • GRBL is a free, open source, high performance, CNC milling controller; written in optimized C that will run on a straight Arduino. The basic documents here assume you will need to have GRBL installed on your Arduino when running your first job.

Programming

Some users may find writing programs to achieve certain designs more efficient. In addition to the programs listed on the Programmatic G-Code Generators page, OpenSCAD is a CAD tool which uses a programming language as its interface.

Interactive G-Code Generators

Another alternative as noted above is to use a previously written program which is interactive. This style of usage is also termed “conversational” programming and is featured on some commercial machines.

G-Code Utilities

There are a number of utility programs for various tasks, such as scaling, rotating, and various other sorts of post-processing.

Conversion Programs

Note: Please note that there are also conversion tools which may be useful. These are listed in various sections, depending upon their input--output. Of especial note are:

One interesting option is to chain utilities together to create a virtual printer which will convert to a .dxf under user control: http://gpl.coulmann.de/cnc/dxf-printer.html

http://tcicorp.com/converting-adobe-illustrator-splines-for-the-best-possible-cutting-path/

In a class by itself is: http://en.homeconstructor.de/converter-convert-music-in-g-code.html which will convert MIDI into G-code commands to play that tune.

Mac OS X

While all of the above works on Mac OS X, there aren't many documented OS X-centric workflows. One such was written up here: Re: Linux vs OSX to TinyG.

Basically all of the opensource stuff works on Mac OS X as it would on Windows or Linux, and a number of commercial programs have Mac ports (though some of them may require XQuartz as some of the opensource apps do).

Carbide Create runs on Mac OS X as well as Windows.

12CAD.com: Best CAD Software for Mac Reviews

https://www.reddit.com/r/cad/comments/53gzt5/mac_os_x_apps_for_cadcam/

https://www.reddit.com/r/cad/comments/64v8pa/my_boss_refuses_to_allow_a_windows_machine_in_the/

List of commercial CAD/CAM apps for Mac OS X: http://www.shapeoko.com/forum/viewtopic.php?f=6&t=8378#p65275

Linux

Most, if not all of the opensource software runs under Linux, and Linux is used for a number of special-purpose systems such as the Raspberry Pi.

Commercial Software

Please note that commercial software, as well as otherwise free programs, which have significant licensing limitations have been moved to their own page.

Machinist Notebook

Jupyter Notebook --- server at: https://colab.research.google.com/notebooks/welcome.ipynb [3] [4] [5]

Specialty Software

Note that some specialty software links are scattered throughout this wiki. Some of the more notable instances include:

Discussions

https://www.reddit.com/r/3Dprinting/comments/3gj2x0/best_free_3d_software_for_a_beginner/ctytytw