variable assignment question
- mcultrara
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
26 Jan 2012 16:30 #17169
by mcultrara
variable assignment question was created 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.
let (depth)=1
g01 z(depth)
can i do this? need proper form.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Away
- Moderator
-
Less
More
- Posts: 23212
- Thank you received: 4892
27 Jan 2012 02:57 #17177
by andypugh
Replied by andypugh on topic Re:variable assignment question
mcultrara wrote:
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.
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.
- BigJohnT
-
- Offline
- Administrator
-
Less
More
- Posts: 7000
- Thank you received: 1175
27 Jan 2012 13:28 #17185
by BigJohnT
Replied by BigJohnT on topic Re:variable assignment question
Please Log in or Create an account to join the conversation.
Time to create page: 0.119 seconds