Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: JMF on May 01, 2014, 05:10:44 PM
-
How can I setup a script to move to a X, Y location which I would specify in two DRO's ?
I'm not sure how to do something like this,
Code "G53z0"
While IsMoving()
Wend
Code "G53x0y0"
Where only x and y for the last line would be from two DRO's
Like this,
Code "G53x(dro_xvar)y(dro_yvar) something like this, I tried it but gives me errors.
Thanks,
John
-
Existing DRO's, or new ones?
You need to do something like:
xval = getoemdro(x)
yval = getoemdro(x)
Code "G53 X" & xval & " Y" & yval
the (x) in the GetOEMDRO(x) is the DRO #.
-
Ger21,
Thanks for the reply, these will be new DRO's
I will try the code right away.
--------
Just tried it, it works great, thanks !!