Coder Social home page Coder Social logo

gcodeconverter's Introduction

GcodeConverter

Gcode converter from LaserWEB4 generated Gcode to Marlin compatible Gcode I use my old 3D printer with RAMPS and Marlin fimware for laser engraving and cutting, but pretty good program LASER WEB is not compatible with Marlin firmware, I hope, that is only temporary solution and Laser WEB will support Marlin firmware soon.
sorry only for Windows (Visual Studio 2017)
windows binary

Gcode from LaserWEB application

G0 X34.26 Y63.52 S0.0000
G1 X34.36 S0.0196
X34.56 S0.0627
X34.76 S0.5882

to Marlin compatible form

M107
G0 X34.26 Y63.52
M106 S4
G1 X34.36
M106 S15
G1 X34.56
M106 S149 ; S0.5882
G4 P50 ; laser start time, added by GcodeConvertor
G1 X34.76

Version 1.0

  • make verbose Gcode command, X10 S1.0 is converted to M106 S255 and G1 X10
  • if laser start time > 0 then command G4 Pxx is added
  • when PWM is disabled converter uses M106 without S parameter
  • you can customize LASER ON and OFF commands (for RAMPS D9 output for PWM )
  • multiple X commands without S parametr are converted to single command G1 Xlast_position, all the same for Y command

gcodeconverter's People

Contributors

marvinmb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

mymlayxi

gcodeconverter's Issues

PWM numbers multiplied by 256

Thanks for writing this. I really wanted to try LW4, but they decided not to support Marlin :(

The issue I have is the S values post-conversion are all multiplied by 256, which results in just a full strength burn instead of the varying levels.

Thanks again

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.