Coder Social home page Coder Social logo

lucailvec / grbl_to_reprap Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 183 KB

A usefull translator that translates one file of gcode [grbl compatible] into another file of sanitized gcode [repetier firmware compatible].

License: MIT License

HTML 32.29% CSS 16.62% JavaScript 23.10% Java 27.99%

grbl_to_reprap's Introduction

GRBL_TO_REPRAP

A usefull translator that translates one file of gcode [grbl compatible] into another file of sanitized gcode [repetier firmware compatible].

Getting Started

This software is maded after a lot of spent searching a good FREE cam. Fusion 360, i think, is the best on the internet. Anyway if you want to use this transaltor for translate a random file of gcode probably it's only sanitize the gcode without removing any G-command.

Feauture

  • Remove M command.
  • Replace fast line with G1.
  • Restore row without the GXX field but obviusly work with it (grbl protocol).
  • Add in any negative Z the command ignore endstop S1.
  • Testing a little bit.
  • Remove home command (G28)
  • Possibility to remove G2 - G3 with G1 command.
  • Testing a little more.

Prerequisities

I tested with:

  • java version "1.8.0_77"
  • gradle version "2.9"

Installing

To use the program you must:

git clone https://github.com/lucailvec/GRBL_TO_REPRAP.git
cd GRBL_TO_REPRAP
./gradlew build

The last command give you in the folder ** ./build/libs/ **

the file GCODESanitizer.jar .

Using

To use the program you run in the main folder:

java -cp build/libs/GCODESanitizer.jar main.GCODESanitizer path/fileName.gcode

and if the file exist you will see the transale procedure in sysout:

Change str: G0 Z5 Into : G1 Z5
Change str: X18.221 Y11.778 Into : G1 X18.221 Y11.778

and the new file :

fileName.gcode_sanitized_

Open repetierHost doesn't show the preview but i tested the modified gcode first on a delta and then on a prusa and seems to work right.

Running the tests

The gradle envoironment test and build automatically. You can customize the build.gradle if you want, if not when execute:

./gradlew build

if the test or program build fail you get a message such as:

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4.971 secs

Authors

See also the list of contributors who participated in this project.

License

<<<<<<< HEAD This project is licensed under the MIT License - see the LICENSE.md file for details

This project is licensed under the MIT License - see the LICENSE.md file for details

d0a8c46118e3ddb6d741642bc5c5e033f7e5e020

grbl_to_reprap's People

Contributors

lucailvec avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.