Skip to content

A command-line tool that optimizes CNC Mill and Laser Engraver gcode generated from programs like MakerCAM - also optionally converts mill gcode to laser gcode

License

Notifications You must be signed in to change notification settings

Jyx/gcode-optimizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcode-optimizer

Copyright (c) 2014 - Andrew L. Sandoval (See LICENSE file for details.)

A command-line tool that optimizes CNC Mill and Laser Engraver gcode generated from programs like MakerCAM - also optionally converts mill gcode to laser gcode.

The image below shows a sign I made for my family opened in the "Universal gcode sender" with it's visualization view. The left-hand side is the original MakerCAM generated file and the right-hand side is the optimized file. Note that the blue lines all represent "rapid linear motion" (G0 codes) that indicate movement of the cutter above the surface of the material (or in the laser case, with the laser powered off.) The more of these you have, and the further the travel, the longer it will take to produce the final product.

Alt text

Here is an image of the Shapeoko 2 burning the image from the gcode that was optimized. The laser is a 2 watt 445nm laser in an custom machined aluminum heatsink attached to the opposite side the of spindle just under the X-axis motor. It is fixed-focused based so that Z motion is not relavent and focus is set prior to starting the operation.

Alt text

The final piece looks like this:

Alt text

About

A command-line tool that optimizes CNC Mill and Laser Engraver gcode generated from programs like MakerCAM - also optionally converts mill gcode to laser gcode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.3%
  • CMake 1.7%