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

Gcode files with no extrusion in them will not render #69

Open
zsoltmar opened this issue May 3, 2018 · 2 comments
Open

Gcode files with no extrusion in them will not render #69

zsoltmar opened this issue May 3, 2018 · 2 comments

Comments

@zsoltmar
Copy link

zsoltmar commented May 3, 2018

Love this viewer! I'm trying to use it for a laser engraving software where there are only G0 and G1 commands, no E for extrusion for obvious reasons. Is there a setting I'm missing that needs to be turned on in this scenario?
To reproduce, here's an example Gcode:

G1 X134.921151 Y103.746667 F300
G1 X134.685836 Y102.5131 F300
G1 X134.297769 Y101.318752 F300
G1 X133.763071 Y100.182461 F300
G1 X133.090173 Y99.122144 F300
G1 X132.289689 Y98.154525 F300
G1 X131.374243 Y97.294864 F300
G1 X130.35827 Y96.556717 F300
G0 X115.851093 Y105.000125 F5400
G1 X125.001469 Y114.150502 F300
G1 X134.151846 Y105.000125 F300
G1 X125.001469 Y95.849748 F300
G1 X115.851093 Y105.000125 F300

Thank you

@zsoltmar
Copy link
Author

zsoltmar commented May 3, 2018

As a workaround, I add an E value to each G1 movement, increasing every step. Once the code loaded into the viewer I then run a function that parses all the lines and removes the E values from the gcode. Not super efficient but at least it works until a proper fix is set in place. Cheers!

@Wingman4l7
Copy link

Yeah, ran into this issue pretty quickly -- makes the viewer unfortunately pretty useless for gcode-based pen plotters. 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants