Machsupport Forum

Mach Discussion => Mach4 General Discussion => Mach4 Toolbox => Topic started by: poppabear on June 04, 2014, 06:21:20 PM

Title: #var (Pound Var) parameters list docs..
Post by: poppabear on June 04, 2014, 06:21:20 PM
Greetings,

Ya-Nvr-No and I have kicked around trying to get a Parameters list together...
BUT..... It is in "Beta" form, please add to, correct, or clairfy....
this list is from the api and trial and error.

If (When), you find errors, or make corrections, or whatever.... PLEASE repost so everyone can benefit...

The list is posted in two formats: MSword.doc, and PDF

Scott
Title: Re: #var (Pound Var) parameters list docs..
Post by: BR549 on June 04, 2014, 07:37:37 PM
There are problems with the G65 local #vars The following do not populate the #var when called. Some are reserved such as e and g

e g n o p q r s t u v x x y z

Also there is a range of Global Persistant Vars  starting at 500 and I got as high as 1100 that WERE persistant. 

The ranges should be
1-34 G65 local #vars NON persistant
100-199 Global NON persistant
500-999 Global Persistant

Above 1000 = system Parameters
Title: Re: #var (Pound Var) parameters list docs..
Post by: Ya-Nvr-No on June 04, 2014, 09:17:56 PM
The only one I cant see work is #10

the rest seem to work as far as i can tell so far
Title: Re: #var (Pound Var) parameters list docs..
Post by: poppabear on June 04, 2014, 09:45:58 PM
Brian Barker, Just returned the list to me, with his corrections that he is aware of...
see attached...

Terry, and others, as requested, IF YOU FIND ERRORS, or corrections or whatever, PLEASE correct/add-to/clairify whatever to the document then re-upload them.

the Brian reviewed docs just have a 1 at the end of the doc name, if you put one up, put a 2 at the end,
etc. so we know what "Version" we are on.

Scott
Title: Re: #var (Pound Var) parameters list docs..
Post by: BR549 on June 04, 2014, 10:24:18 PM
HIYA Craig I JUST ran this program that populates the Vars with eth same value as the Var#. Makes it easy to track. You can see that there are many VARS EMPTY and 2 with the WRONG values applied. Look at D and P. AND I just spotted one more wrong value M
Title: Re: #var (Pound Var) parameters list docs..
Post by: Ya-Nvr-No on June 05, 2014, 07:49:34 AM
I single block thru this program to watch the variables change, couple of odd ones have to admit. But for the most part it follows the logic

 ???
Title: Re: #var (Pound Var) parameters list docs..
Post by: BR549 on June 05, 2014, 09:11:34 AM
YOU did not notice that the  vars were being updated by the Axis motion calls AND every Gcode WOrd letter. TOp screen look at the last line of Gcode N6 X1.50 Y4.5   NOW look at the VAr values for Xand Y  #24 =1.5 #24 =4.500.

Now look at #19(S) == Spindle speed call S311, and #13(M) = 5 the last Mcode called M5

Can't have that happening, The letters can ONLY populate the #vars from the G65 LINE and NO other time or place.  AND the #vars should not be able to be populated OUTSIDE of the G65 MACRO. THAT is why they are suppose to be LOCAL vars. bUT IN MACH4 you can populate ANY local var any time or place.

JUST A THOUGHT,

(;-) TP
Title: Re: #var (Pound Var) parameters list docs..
Post by: Ya-Nvr-No on June 05, 2014, 09:35:55 AM
run the file i provided in single block and check the variables
something is not quite right I admit, but these are some things you can do to prove to yourself what going on. ;)

just a thought
Title: Re: #var (Pound Var) parameters list docs..
Post by: rellimmot on September 14, 2017, 04:51:45 PM
This list was really helpful, thank you.

Has anybody seen the variable for current G Code Line Number? Alternatively, know of a good script or direction you can point me in?

I'd like a way to access these variable numbers outside of the dialog in the software, for perhaps faster polling or search ability. I've yet to break out the debug software but I may have to in order to find if there's a good Line Number variable.


Also, #5041: Absolute X Current Position, #5042, Absolute Y Current Position (from Reference). The 5021/5022/5001/5002 are offset coordinates I believe.
Also, #3101: Pi, #3102: Eulers Number (e) :)
Title: Re: #var (Pound Var) parameters list docs..
Post by: joeaverage on October 06, 2017, 09:03:05 PM
Hi,
how did you find #3101 and #3102?

Craig
Title: Re: #var (Pound Var) parameters list docs..
Post by: rellimmot on October 10, 2017, 12:36:33 PM
In the RegFile plugin dialog, I opened #Variables, and manually set range #'s from the beginning til up in the 10,000's, looking for numbers relevant to what I was doing. I just happened across those two very familiar looking numbers pi and eulers in the process.
Title: Re: #var (Pound Var) parameters list docs..
Post by: Spandex on October 22, 2018, 04:57:18 AM
Here is a document that describes parameters for Mach 3. Not sure how much you can trust it however as I'm not sure which version it applies to. Hopefully someone can attest as to which version this is likely related to?