see the documentation: http://linuxcnc.org/docs/devel/html/gcode_main.html#r2_3_2 |
THIS FUNCTIONALITY WAS IMPLEMENTEDsee http://www.linuxcnc.org/docview/devel/html//gcode_overview.html#sub:Named-Parameters |
see http://www.linuxcnc.org/docview/devel/html//gcode_overview.html#sub:Named-Parameters
#<_global named parameter here>. is a global named parameter. They are accessible from within called subroutines and may set values within subroutines that are accessible to the caller. As far as scope is concerned, they act just like regular numeric parameters. They are not stored in files.
examples:
#<_endmill_dia> = 0.049 ( declaration of named global variable ) #<_endmill_rad> = [#<_endmill_dia>/2.0] ( reference to previously declared global varaiable ) o100 call [0.0] [0.0] [#<_inside_cutout>-#<_endmill_dia>] [#<_Zcut>] [#<_feedrate>] ( mixed literal and named params )Notes:
finally done named o-words