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

Problem with using gcode in Octoprint (comments removal) #15

Open
pavelsr opened this issue Nov 25, 2017 · 1 comment
Open

Problem with using gcode in Octoprint (comments removal) #15

pavelsr opened this issue Nov 25, 2017 · 1 comment

Comments

@pavelsr
Copy link

pavelsr commented Nov 25, 2017

Typical gcode generated by gcodetools looks like:

%
(Header)
(Generated by gcodetools from Inkscape.)
(Using default header. To add your own header create file "header" in the output dir.)
M3
(Header end.)
G21 (All units in mm)

(Start cutting path id: path11917)
(Change tool to Default tool)

G00 Z3.000000
G00 X8.351943 Y249.047186

My CNC machine has Repetier FW so I'm using Octoprint for remote control.
But each time I have to remove strings with comments (like(Start cutting path id: path11917)). Otherwise Octoprint doesn't work and showing Unhandled communication error

I think it's a good idea to add "comments removal" option to Preferences or Options tab of Path to gcode mode

@SEKCobra
Copy link

SEKCobra commented Oct 5, 2020

Hi there, I realize this is a quite old thing, but I ran into the same problem. I fixed it by editing "gcodetools.py" and replacing all the functions that create comments with a ; at the beginning.

I hope this might help someone in the future

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