Problem with using gcode in Octoprint (comments removal)
pavelsr opened this issue · 1 comments
pavelsr commented
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 commented
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