CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Re: G-code user variables; convention?

Posted by Brian Pitt
on 2001-01-05 01:41:14 UTC
Alan,

for a roll your own interpreter the #NamedVariables would be fine ,but
the programs would not be portable to a diffrent machine,not very
many are anyway of course ;-)
they would make programs more readable
you could also keep the usual numbered variables and add a
NAME field to the variable table ie.

#0100 [ALIAS #MyVariable]; (sets the name field)
#MyVariable = 2.54;

or even

#define #0100 #MyVariable

and pass the program thru a preprocesor step before running it
(could also check for out of range numbers,bad calls,etc)

Brian
Ps Okuma and one or two others use 'V' for variables as well
most mills I've seen to use the'#' sign



On Thursday 04 January 2001 23:20, you wrote:
> Jon,
>
> If variables are preceded with a #, then #MyVariable could be
> distinguished from a 'M', for example. Shouldn't be that hard. Is this
> useful? reasonable? Otherwise, a "separator" (white space), or the
> start of a numeric field could be used, and "words" would have to be
> "whole" (Avar7 would NOT be recognized as 'A'). Other ideas?
>
> CNCpro uses V0 - V100 e.g., "V59=2.34", although I really didn't want to
> copy him!
>
> Alan KM6VV

Discussion Thread

Jon Elson 2001-01-04 21:47:21 UTC Re: G-code user variables; convention? dave engvall 2001-01-04 22:38:22 UTC Re: [CAD_CAM_EDM_DRO] Re: G-code user variables; convention? Alan Marconett KM6VV 2001-01-04 23:22:06 UTC Re: G-code user variables; convention? Brian Pitt 2001-01-05 01:41:14 UTC Re: [CAD_CAM_EDM_DRO] Re: G-code user variables; convention? Brian Pitt 2001-01-05 02:16:36 UTC Re: [CAD_CAM_EDM_DRO] Re: G-code user variables; convention? Alan Marconett KM6VV 2001-01-05 13:28:35 UTC Re: G-code user variables; convention? Brian Pitt 2001-01-05 23:41:49 UTC Re: [CAD_CAM_EDM_DRO] Re: G-code user variables; convention? Alan Marconett KM6VV 2001-01-06 11:31:34 UTC Re: [CAD_CAM_EDM_DRO] Re: G-code user variables; convention? ballendo@y... 2001-01-06 14:46:30 UTC Re: G-code user variables; convention? Brian Pitt 2001-01-06 17:41:30 UTC Re: [CAD_CAM_EDM_DRO] Re: G-code user variables; convention? ballendo@y... 2001-01-06 23:16:52 UTC Re: Re: G-code user variables; convention? Brian Pitt 2001-01-07 01:00:09 UTC Re: [CAD_CAM_EDM_DRO] Re: Re: G-code user variables; convention?