Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 09:49:09 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  How to change Goto Zero's function
Pages: 1   Go Down
Print
Author Topic: How to change Goto Zero's function  (Read 1217 times)
0 Members and 1 Guest are viewing this topic.
Flashsolutions
Active Member

Offline Offline

Posts: 2


View Profile
« on: April 04, 2009, 07: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?

Logged
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #1 on: April 04, 2009, 08: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.  Smiley

« Last Edit: April 04, 2009, 08:18:35 PM by Greolt » Logged
Flashsolutions
Active Member

Offline Offline

Posts: 2


View Profile
« Reply #2 on: April 04, 2009, 08: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.  Smiley


Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!