Hello Guest it is March 28, 2024, 07:59:43 PM

Author Topic: #var (Pound Var) parameters list docs..  (Read 14826 times)

0 Members and 1 Guest are viewing this topic.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
#var (Pound Var) parameters list docs..
« 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
fun times

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: #var (Pound Var) parameters list docs..
« Reply #1 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
Re: #var (Pound Var) parameters list docs..
« Reply #2 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

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: #var (Pound Var) parameters list docs..
« Reply #3 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
fun times

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: #var (Pound Var) parameters list docs..
« Reply #4 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
« Last Edit: June 04, 2014, 10:25:51 PM by BR549 »
Re: #var (Pound Var) parameters list docs..
« Reply #5 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

 ???

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: #var (Pound Var) parameters list docs..
« Reply #6 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
« Last Edit: June 05, 2014, 09:20:28 AM by BR549 »
Re: #var (Pound Var) parameters list docs..
« Reply #7 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
« Last Edit: June 05, 2014, 09:42:25 AM by Ya-Nvr-No »
Re: #var (Pound Var) parameters list docs..
« Reply #8 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) :)
Re: #var (Pound Var) parameters list docs..
« Reply #9 on: October 06, 2017, 09:03:05 PM »
Hi,
how did you find #3101 and #3102?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'