Hello Guest it is April 18, 2024, 07:23:12 PM

Author Topic: What variable number do I choose  (Read 2935 times)

0 Members and 1 Guest are viewing this topic.

Offline beefy

*
  •  138 138
    • View Profile
What variable number do I choose
« 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.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: What variable number do I choose
« Reply #1 on: July 09, 2012, 10:49:05 AM »
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

Offline beefy

*
  •  138 138
    • View Profile
Re: What variable number do I choose
« Reply #2 on: July 09, 2012, 02:30:10 PM »
Much appreciated Terry  ;D