Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor gCode generation allowing marlin compatibility #473

Merged
merged 3 commits into from Apr 26, 2018

Commits on Apr 24, 2018

  1. Copy the full SHA
    6d8ed03 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2018

  1. refactor gCode generation allowing marlin compatibility

    Create a GCode generator field for each machine.
    Default is for grbl.
    In cam-gcode-raster and cam-gcode-laser-cut, each gcode writing will pass inside the generator and will return the appropriate GCode.
    
    No modification in gCode writing with default generator but with the generator "marlin" this will change the way the laser will turn on and movements to be compatible with stock marlin on 3D printer or so.
    For tool on/off the "gCodeToolOn" will be insert at each Intensity change and you can use $INTENSITY variable inside gCodeToolOn to get back the intensity.
    By exemple, the GRBL gcode :
    
    G0 X10.0 S100
    
    Will become on Marlin, with gCodeToolOn set to "M106 $INTENSITY" :
    
    M106 S100
    G0 X10.0
    
    In Raster mode, GRBL gcode
    G1 X10.0 Y20.0 S100
    X11.0 Y20.0 S30
    
    will become in marlin :
    M106 S100
    G1 X10.0 Y20.0
    M106 S30
    G1 X11.0 Y20.0
    Tibus committed Apr 25, 2018
    Copy the full SHA
    aae179c View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2018

  1. change back permission to 755

    Tibus committed Apr 26, 2018
    Copy the full SHA
    b64c5d5 View commit details
    Browse the repository at this point in the history