variable assignment question

More
26 Jan 2012 16:30 #17169 by mcultrara
i would like to assign a variable. need proper format. i have some Q-Basic experience.

let (depth)=1
g01 z(depth)

can i do this? need proper form.

Please Log in or Create an account to join the conversation.

More
27 Jan 2012 02:57 #17177 by andypugh
mcultrara wrote:

i would like to assign a variable. need proper format. i have some Q-Basic experience.

let (depth)=1
g01 z(depth)

can i do this? need proper form.


Either:

#1 = 1
g01 Z#1

Using numbered parameters (in old-school G-code you could have a limited number of variables)
or:

#<depth> = 1
G01 Z #<depth>

Where #<somestringhere> defines a variable.

Note that some numeric variables (mainly those above #5000) have specific meanings and can be used to read machine state.

Please Log in or Create an account to join the conversation.

More
27 Jan 2012 13:28 #17185 by BigJohnT
For 2.5 is it described here 2.4 is similar.

John

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum