G-code optimizer

352 views
Skip to first unread message

Johan Lindström

unread,
Jan 14, 2016, 4:10:55 PM1/14/16
to XYZBots Support for GRBLWeb and RepRapWeb
http://xyzbots.com/gcode-optimizer/

Unable to "upload" gcode.

after i load the g-code nothing happens. Can only choose file then after that. nothing.

andre...@gmail.com

unread,
Jan 14, 2016, 9:25:27 PM1/14/16
to Johan Lindström, XYZBots Support for GRBLWeb and RepRapWeb
It's probably just a different format of gcode, like G00 not G0.

Send the file.



Andrew
--
You received this message because you are subscribed to the Google Groups "XYZBots Support for GRBLWeb and RepRapWeb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xyzbots-suppo...@googlegroups.com.
To post to this group, send email to xyzbots...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xyzbots-support/09c342f5-8f2b-4f5c-8302-3a5bb8001248%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Johan Lindström

unread,
Jan 15, 2016, 12:27:52 PM1/15/16
to XYZBots Support for GRBLWeb and RepRapWeb, johan.von...@gmail.com
Here it is
visitkort.gcode

Andrew Hodel

unread,
Jan 15, 2016, 1:22:31 PM1/15/16
to Johan Lindström, XYZBots Support for GRBLWeb and RepRapWeb
Yes that file is using G00 not G0

As you can see in the code of the optimizer, it is expecting G0.


You could change the source and run a local copy (which would take about 30 seconds) or your could change the file (which would be easy with sed).

You could also change the source of the code and submit a pull request on github to fix your situation, then I could submit the change to the main project and it would resolve the problem for others using G00 (this is how open source is supposed to work, not one developer doing everything).  The issue is that the toolchain I use doesn't output G00 it outputs G0 so there's no real motivation for me to modify the code to support everyone's toolchain as the project pays nothing monetarily.

It sure would be nice if some of these behemoth's offered a chance for work, but the reality is that they don't so open source is a step by step project to replace the problem of decay in the normal business workflow caused by repetition and adding "features" just for the sake of adding features.

It's probably easier to just write a regex to convert your file from G00 to G0, really it is just s/G00/G0/g and done.




Andrew

Reply all
Reply to author
Forward
0 new messages