You can use
Code "G0 G53 X-9.798 Y-0.577 Z-7.502"
in your script.
Running a syil x4 with mach3
I set up the auto tool function to work with a touch off plate. But I want the auto-tool button to send the tool up and then over to the plate location.
It is located at -9.798,-.577, -7.502 in machine coordinates. I tired using g53 but got an error that machine coordinates are not allowed in the script. So now I have to remember to find the m6 call out each time and enter g53 x-9.798 y-.577 before the m6 line. It's not really a pain to do since we run short programs, I just don't want to ruin anything as I am not the only one who uses the machine.
How can I go about doing this?
Thanks,
You can use
Code "G0 G53 X-9.798 Y-0.577 Z-7.502"
in your script.
Gerry
Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Wow, thanks.
So I just needed g0 before the g53 command?
also, since I have your attention, what do I use to make mach3 wait before going to the next line? I want it to finish moving before displaying a msgbox advising to change tool now or that the job is finished.
I don't know, as I've never seen the error you got, or what you were trying to do. But what I posted will do what you want.
Gerry
Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Anytime you have movement occurring in a script, it should be followed by:
While IsMoving
Wend
To make sure the move is completed before further code is run.
If you want to pause, use:
Sleep(1000)
for 1 second. (# is milliseconds)
It's good practice that anytime DRO's need to be updated, that a minimum of 1/10 second delay ( Sleep(100) )be used to allow the DRO's to update before moving on. Failure to do so may cause problems.
Gerry
Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
got it, thanks. I'll update my script tomorrow.
next task is making a pnp....