Code Monkey home page Code Monkey logo

dietzm / gcodeinfo Goto Github PK

View Code? Open in Web Editor NEW
46.0 46.0 20.0 718 KB

This is a small command line tool to analyse gcodes (control codes for 3D printers, CNC,...). It calculates various print details like -print time -used filament -yx move distance -print object dimension -average print speeds -number of layers -layer details -speed distribution -weight and price of the printed object ... I used it to optimize my slicer settings and print times for my reprap printer. Tested mostly with slic3r generated gcodes.

Home Page: http://gcodesim.dietzm.de

Java 100.00%

gcodeinfo's People

Contributors

dietzm 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gcodeinfo's Issues

The overall time estimates may appear in the incorrect order.

I just ran a few of my gcode files through GCodeInfo and the Overall Time estimates don't seem to match up.
The output for one such job is as follows:
Overall Time (w/o Acceleration): 0:14:56 (895.73sec)
Overall Time (w/ Acceleration): 0:17:09 (1028.5654sec)

Should the "w/o acceleration" time be 0:17:09 instead of 0:14:56?

GCodeInfoV99.jar

GCodeInfoV99.jar produces the following errors. Is it due to a Java update?

C:\Users\¿>"C:\Program Files\Java\jdk1.8.0_77\jre\bin\java.exe" -jar "c:/xampp/h
tdocs/GCodeInfoV99.jar" m "c:/xampp/htdocs/gCodeOutput/cube.stl.gcode" 2>&1
Load Model started
Parse GCODE GCDEF Exception:java.lang.IllegalArgumentException: No enum constant
de.dietzm.Constants.GCDEF.M542
Unknown Gcode 179: UNKNOWN M542 ....
Parse GCODE GCDEF Exception:java.lang.IllegalArgumentException: No enum constant
de.dietzm.Constants.GCDEF.M551
Unknown Gcode 180: UNKNOWN M551 P32000 S900....
Parse GCODE GCDEF Exception:java.lang.IllegalArgumentException: No enum constant
de.dietzm.Constants.GCDEF.M543
Unknown Gcode 181: UNKNOWN M543 ....
Parse GCODE GCDEF Exception:java.lang.IllegalArgumentException: No enum constant
de.dietzm.Constants.GCDEF.M542
Unknown Gcode 315: UNKNOWN M542 ....
Parse GCODE GCDEF Exception:java.lang.IllegalArgumentException: No enum constant
de.dietzm.Constants.GCDEF.M551
Unknown Gcode 316: UNKNOWN M551 P32000 S900....
Parse GCODE GCDEF Exception:java.lang.IllegalArgumentException: No enum constant
de.dietzm.Constants.GCDEF.M543
Unknown Gcode 317: UNKNOWN M543 ....
Load Model finished in ms:63
Detected 6 error(s) during parsing of Gcode file. Results might be wrong.


****************************** Model Details ******************************


Filename: c:/xampp/htdocs/gCodeOutput/cube.stl.gcode
Layers visited: 75
Layers printed: 73
Avg.Layerheight: 0.35mm
Size: 24.54mm x 24.54mm H26.05mm
Position on bed: -11.27/13.27mm x -11.27/13.27mm H26.05mm
XY Distance: 34123.27mm
Extrusion: 0.0mm
Bed Temperatur: 0.0°
Ext Temperatur: 250.07°
Avg.Speed(All): 68.09mm/s
Avg.Speed(Print): 29.96mm/s
Avg.Speed(Travel): 103.7mm/s
Max.Speed(Print): 52.5mm/s
Min.Speed(Print): 10.0mm/s
Gcode Lines: 24227
Overall Time (w/o Acceleration): 0:25:04 (1503.74sec)
Overall Time (w/ Acceleration): 0:25:28 (1527.9677sec)
Material(guessed):ABS 3.0mm
Mass: 0.0cm3
Weight: 0.0g
Price: 0.0?

Gcode Analyse Time: 0:00:00 Load time:0:00:00

Is there a way to set the material and prices as an argument?

GCodeInfo is making a guess that the material used in my gcode files is ABS but I'm using PLA which weighs slightly more thus the estimates for the weights a off by a little bit. I would be nice to be able to set the value of this to force another material.
Also, can the price per unit be set as an argument as well so that I can specify my cost / unit of material?

wire melting 3d printer

HI!

First thank you for your product it seems from first point that it's exactly what I need.
I want to attach laser wire melting assembly on 3d printer. There is a need to control additional stepper motor, and I hope you can get the control possibility through your SW - GCODE simulator and printer.
For more info how assembly should work check this topic on metalbot forum:

http://www.metalbot.org/forum/viewtopic.php?f=8&t=263

I would appreciate few starting tips on required changes of source code to accomplish this mission. :)

thanks and regards
Zhivko

Problem with large files

Hi,

Thanks for a very nice app. I love it.

I'm running your app on a small Denver Pad, I have around 50k mem to use when I have loaded the App.
I loaded a G-code file with 222414 lines of G-code. The first 50% goes fast and then it slows down alot. But the file loaded into mem.
How ever, 2 hours into the print, the Pad crashed.
I was wondering if it was possible to read the G-code 10 - 50 lines at a time from the disk, instead of loading it all into mem at once.
I have also tried to load larger files, but they error out at line 270001 for some reason.

Kind regards,
Vendorf

M101/M113 Gcodes caused model load failure

Not supported Gcode:M101
Not supported Gcode:M103
Not supported Gcode:M101
Not supported Gcode:M103
Not supported Gcode:M101
Not supported Gcode:M103
Not supported Gcode:M101
Not supported Gcode:M103
Not supported Gcode:M101
Not supported Gcode:M103
Not supported Gcode:M103
Not supported Gcode:M113
Detected 84 error(s) during parsing of Gcode file. Results might be wrong.

Z-axis endstop crash

Hi, I'm running simulator free with a Mendel90 printer and I have a problem where the Z-axis will move up past the endstop, causing damage to the Z-axis bracket. This does not happen when using the move buttons using pronterface. Any idea why the endstop signal would be ignored when controlling the printer via Gcodesimulator? Is this is bug or a configuration issue? Thanks!

Could GCodeInfo add support for MakerBot gcode files?

I tried using a gcode file generated with MakerWare (using Miracle Grue as the slicer) but GCodeInfo stopped with this error:
Unknown Gcode 1: M136 (ENABLE BU....
Unknown Gcode 2: M73 P0....
Unknown Gcode 3: G162 X Y F2000(....
Unknown Gcode 4: G161 Z F900(HOM....
Exception in thread "main" java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Float.parseFloat(Unknown Source)
at de.dietzm.GCode.parseSegment(GCode.java:539)
at de.dietzm.GCode.parseGcode(GCode.java:432)
at de.dietzm.Model.loadModel(Model.java:489)
at de.dietzm.Model.loadModel(Model.java:476)
at de.dietzm.GCodeUtil.main(GCodeUtil.java:51)

I assume this is because MBI has modified some of the commands used in a standard gcode file but I was hoping support for this could be added.

İs the app dead?

Hi,
is the App dead?
I cant find any Help anywhere G+ is not available anymore...

Problems connecting to CH340 arduino mega 2560

Hi,
I'd like to use your software for my printers (I'm a manufacturer) but unfortunately the device will not connect. I'm connecting via USB-OTG and have tried 4 different tablets now. Not many seem to have OTG support for CH340, however the Aoson M751S does. 3D Fox software works well, but has left out too many important features. I'd love to give your software a chance, but unfortunately it will not connect. The tablet fails to connect after a window pops requesting permission to access the USB device. The device is discovered. The same hardware and software works if the arduino has the atmel comm chip instead of CH340.
Thanks,
Jared

Filetypes on Mac

On a Mac all of the files are greyed out when I try to Load File. I've tried .txt and .gcode extensions, but neither work.

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.