I work with a CNC-Milling machine with an attached laser, unfortunatly my controller only understands CCode comments in between brackets.
Is there any chance to change the comment syntax or a workaround?
GCode from Laserweb:
; this is a comment
GCode from my generic postprocessor e.g. fusion360:
I would check with what’s available from Fusion360 since the GCode standard is decades old and changing a package which supports the standard because a new plugin does not is likely going to get turned down.
Kiri:Moto( http://grid.space ) supports the GCode standard and so does FreeCAD and its postprocessors.
@dougl I think that’s missing the point. The question is whether LW can also support the different comment syntax, not whether fusion can. Fusion already has that post available; the question is what’s available to take the post role here.
Ya and I’m still confused as to what they are asking. It sounds like they are using Fusion360 to generate GCode, the controller on their machine only accepts GCode with comments wrapped in parentheses and they are doing design work in LaserWeb which puts comments after semicolons which their controller can’t recognize. If that’s the case and since both methods of comments are acceptable in the GCode standard it’s a reasonable request even though most controller firmware knows about semicolon delimited comments.
I didn’t think parenthesis based comments were legal and figured the Fusion360 post was an oddity and they should look for one not so odd. Maybe it’s their laser(or CNC) controller which is odd and only supports parenthesis based comments.
No doubt the LaserWeb dev has a complete understanding of this and will chime in. In the meantime, does laserweb support a post processor script which could change the comments on the way out to the controller?
In case someone else needs it (I use notepad++) make sure to escape before the parentheses like this in the replace line:
otherwise the parentheses will missing.
@dougl Yes you unterstood me right. Normally I’m milling wood with my CNC and process my designs in Fusion360 where I can choose a postprocessor wich only puts comments inside parentheses. But for Lasercutting/engraving I’m using vector-design software wich can’t be easily CAM-processed in Fusion360 (stationary Z-axis, different comments/parameters for the on/off/pwm signals and so forth). Laserweb brings all the things that I was looking for except the comment function.
Unfortunately my controller software is not capable of recognizing “;” as comment assigned line.
Is there a way to edit the postprocessor script in LW by myself? And would it be easy to change the comment syntax?
It would be really nice if this option is implemented in further versions!
I’m one of the LaserWeb devs but I didn’t develop the gcode generator. I made the backend (server) and the machine control part.
From my understanding of gcode standards, a ; declares the rest of the line to be comments (should be ignored by the machine controller). I don’t know any spec that defines that the ; cannot be the first character of a line.
If you use LaserWeb to run the gcode against your controller, then the backend is cutting out all comments to save serial data and speed up the processing, but I think you just use LW to generate the gcode and run that code on your controller, right?