THIS FUNCTIONALITY WAS IMPLEMENTED
see http://www.linuxcnc.org/docview/devel/html//gcode_overview.html#sub:Named-Parameters
Named parameters for rs274ngc
#<named parameter here> is a
local named parameter. By default, a named parameter is local to the scope in which it is assigned.
#<_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:
- a choice was made to have the default define *local* parameters while the '_' case defines global parameters. The reason for this is that local parameters are probably more common.
- the global parameters _a, _b, _c, ... _z have been reserved for special use. In the future, they may provide access to the last Aword, Bword, Cword, etc. This will be used as part of an implementation of User Defined Gcodes.
- all parameter names are converted to lower case and have whitespace removed. This is an unfortunate consequence of the rs274ngc standard.
see also
done
new comment features
finally done named o-words