Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: beefy on July 08, 2012, 10:38:52 PM
-
Hi Everyone,
I'm just getting into screen design, VB macros, etc. I'm managing to get some grip on the code in macros written by others, but one thing I can't find info on is the variables numbers used in the VB code.
Example:
SetVar(601,Getdro(2)) 'Set variable to Z position
Why did the author choose the number 601 for this variable.
Is there any info, or a list of variables that are used in Mach3 (a question I've noticed others have asked in the past and don't seem to have got a straight answer to).
I've read there's over 10,000 variables in Mach but have no idea if some are "special / reserved / used" for certain purposes, and if others are general use for anything.
Can anyone enlighten me please.
Thanks,
Keith.
-
With Mach3 you are safe with about anything between 1-1000. As to which to use it is YOUR choice what is your favorite number(;-).
Mach3 has never been mapped out as to actual #var definitions. There is some useage in the upper bands for fixture offsets but very little else that I am aware of.
AND the max vars = 32767 so far as I know.
(;-) TP
-
Much appreciated Terry ;D