GithubHelp home page GithubHelp logo

alsliahona / gcode-optimizer Goto Github PK

View Code? Open in Web Editor NEW
56.0 12.0 22.0 5.13 MB

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: BSD 3-Clause "New" or "Revised" License

C++ 100.00%

gcode-optimizer's Introduction

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

gcode-optimizer's People

Contributors

alsliahona avatar asandoval-openspan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gcode-optimizer's Issues

error message

I am getting a errors messag MSVCP120.dll is missing from your computer

Windows 8.1

Dropped Z Axis raise line

First of all many thanks for this tool. I was super happy to find this.

I optimized one of my sample g-code files that really performs a lot of nonsense seek operations. What I noticed from the output of the tool is that it dropped one line of the input. It looks like it is the first G0 Z15 command which is there to raise the spindle to it's safety height.

Apart from that the optimized program worked properly and reduced the time from ~21min to ~17min!

Another output of the program was:
WARNING!!!! Program Ends with cutter down, Z = -2.00

But actually the last command in the optimized program is G0 Z15, so this warning is clearly wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.