19401
General Mach Discussion / Re: how to go to z without traveling dagonally
« on: April 25, 2009, 02:55:30 PM »
If going up to safe Z first then to X and Y together is no use for your setup then you could write either a short macro or have the VB in a button similar to the Go To Z button.
You would need something like this in either the button or the macro
code("G0")
Code("G53Z0")
While IsMoving()
Sleep(10)
Wend
Code("G0Y0")
While IsMoving()
Sleep(10)
Wend
Code("G0X0")
While IsMoving()
Sleep(10)
Wend
Code("G0Z0")
While IsMoving
Sleep(10)
Wend
Hood
You would need something like this in either the button or the macro
code("G0")
Code("G53Z0")
While IsMoving()
Sleep(10)
Wend
Code("G0Y0")
While IsMoving()
Sleep(10)
Wend
Code("G0X0")
While IsMoving()
Sleep(10)
Wend
Code("G0Z0")
While IsMoving
Sleep(10)
Wend
Hood