Hello Guest it is April 16, 2024, 05:49:50 PM

Author Topic: How to change Goto Zero's function  (Read 6355 times)

0 Members and 1 Guest are viewing this topic.

How to change Goto Zero's function
« on: April 04, 2009, 08:35:42 PM »
I am using Mach 3 to run a Phlatprinter CNC machine which cuts foam.   

It uses a Dremel tool in a gantry which raises from the bottom to cut foam being fed across the top of the cabinet.

I have now ruined 2 or 3 sheets of foam and broken a few bits because the 'Send Printer Home' button moves the X and X axis BEFORE sending the Z axis home.   

In our configuration, it is not easy to see if the bit is in the material since it feeds from the bottom, so if the bit is in the foam when you hit the send printer home button, you are either going to rip the foam up or break the router bit.

When I used the screen editor to see what function is implemented by that button it shows "Goto Zero's" as the function name.

How can I change its behaviour so that the Z axis is moved FIRST instead of LAST, and why on earth would it be programmed this way in the first place?

Offline Greolt

*
  •  956 956
    • View Profile
Re: How to change Goto Zero's function
« Reply #1 on: April 04, 2009, 09:08:29 PM »
I don't know why that button would zero the X and Y before the Z.  I never use it.

Designate the button of your choice to "VB Script Edited in Mach3"

Then put this into the button script,

Code "G0Z0"
While IsMoving ()
Wend
Code "G0X0Y0"

EDIT:  I fiddled with it a bit and using the "Safe Z" settings will effect which moves first also.  Safe Z is another feature I never use.  :)

« Last Edit: April 04, 2009, 09:18:35 PM by Greolt »
Re: How to change Goto Zero's function
« Reply #2 on: April 04, 2009, 09:58:08 PM »
Ahhh!  Thank you so much.  Greatly appreciated.


I don't know why that button would zero the X and Y before the Z.  I never use it.

Designate the button of your choice to "VB Script Edited in Mach3"

Then put this into the button script,

Code "G0Z0"
While IsMoving ()
Wend
Code "G0X0Y0"

EDIT:  I fiddled with it a bit and using the "Safe Z" settings will effect which moves first also.  Safe Z is another feature I never use.  :)