[Home]New Comment Features

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

There are now two additional types of special comments.

Comments that look like: (debug, rest of comment) are the same as comments like (msg, rest of comment) with the addition of special handling for parameters (below).

Comments that look like: (print, rest of comment) are output to stderr with special handling for parameters.

For example: to print a named global variable to stderr (the default console window) add a line to your gcode like...

(print,endmill dia = #<_endmill_dia>)


Special handling for parameters:

Inside the above types of comments, sequences like #123 are replaced by the value of the parameter 123. Sequences like #<named parameter> are replaced by the value of the named parameter. Remember that named parameters will have whitespace removed from them. So, #<named parameter> is the same as #<namedparameter>.

see also

the documentation: http://linuxcnc.org/docs/devel/html/gcode_main.html#r2_5

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited November 16, 2007 1:03 pm by Fenn (diff)
Search:
Published under a Creative Commons License