Closed risacher closed 1 year ago
Thank you for the suggestion! I agree, such comments would be nice. The problem is that different controllers use different syntax for comments. Some use braces, some use leading semicolons etc.. And I want to keep the UI simple...
Gcode is standardized as ISO 6983-1:2009. I wonder what the official comment format is in the standard, and whether that format would be consistently supported. Alas, access to ISO standards is expensive and I can't find a free source.
I did find a preview online that included this text:
If there is any group of characters that is not to be processed in accordance with this part of ISO 6983, this group shall be within parenthesis characters (control out – control in). Any such group shall not contain either “:” or “%” characters. This group may be processed for display purposes, e.g. as instructions to an operator.
Can anyone identify a controller that doesn't support (comments)
like this? (What are called "parentheses" in American English and "brackets" or "round brackets" in British English?)
Hi, I've added a "comment-style" dropdown in the "Save GCode"-dialogue. You can choose between
Selected style is persisted in localStorage.
Comments emitted are:
Hope you find this useful.
You are amazing!
I saved many gcode files for a project recently, and I had trouble remembering what starting heights I chose for the operations. It might be nice to add comments into the gcode for the various operations, date/time and/or documenting the names of the SVG files used.