variable assignment question

  • mcultrara
  • mcultrara's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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.

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

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
27 Jan 2012 02:57 #17177 by andypugh
Replied by andypugh on topic Re:variable assignment question
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
Replied by BigJohnT on topic Re:variable assignment question
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.119 seconds
Powered by Kunena Forum