Hello Guest it is December 07, 2024, 10:11:43 AM

Author Topic: Go To Zero Problem! Please to help me!  (Read 4518 times)

0 Members and 1 Guest are viewing this topic.

Go To Zero Problem! Please to help me!
« on: November 14, 2014, 01:25:24 PM »
Hello people..
I would ask if there are some option on Mach3 that when I finished my work job and want the X&Y Axis to Go To Zero (home position) except Z Axis?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Go To Zero Problem! Please to help me!
« Reply #1 on: November 14, 2014, 01:44:57 PM »
You can write a macro and place it in your macro folder for the profile you are using. Call it something like m123.m1s (custom macros should be greater than 100) and then if you place m123 at the end of your code it will do what is in the macro.

To do what you want the macro would simply contain

Code"G0X0Y0"

The above is for work offset zero, if it is machine coords zero then

Code"G53G0X0Y0"


hOOD
Re: Go To Zero Problem! Please to help me!
« Reply #2 on: November 14, 2014, 01:52:35 PM »
So nice, thanks you so much Hood,  but I think if there are another thing to do more simply from to enter the code and modify something there,, without to change the code text, just to press go to zero and return the two axis zero

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Go To Zero Problem! Please to help me!
« Reply #3 on: November 14, 2014, 01:58:16 PM »
Ok if you simply want a screen button then use one of the screen designers to change the GoToZ button to a VB button. You can then enter the above VB in to the button, when back in Mach (after loading your altered screenset) you go to Operator menu then Edit Button Script. The button you changed will be flashing, click it and then in the editor that pops up you simply enter the code in my previous reply. You then save and that is it.
From then on that button will just go to XY0 rather than Z zero.
Be aware that Safe Z will not work with the new button as it would with the original go to Z button.
Hood
Re: Go To Zero Problem! Please to help me!
« Reply #4 on: November 14, 2014, 03:12:10 PM »
Excuse me Hood, but i didn't understand you very well man, it's so complicated for me because i'm so new in CNC, what you mean in "use one of the screen designers to change the GoToZ button to a VB button"? how i can make this action? if you can explain more simply for me man.

Best regards!

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Go To Zero Problem! Please to help me!
« Reply #5 on: November 14, 2014, 06:01:15 PM »
Re: Go To Zero Problem! Please to help me!
« Reply #6 on: November 15, 2014, 10:26:32 AM »
Really i don't know how to thank you Hood! You are an amazing teacher!! Thanks so much man!
Re: Go To Zero Problem! Please to help me!
« Reply #7 on: November 15, 2014, 11:04:32 AM »
Oooh man, i have a trouble :( i did exact what you did on the video, but when i press go to zero, it tell me: "Error in line: 1 - Argument not optional"
What is this man?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Go To Zero Problem! Please to help me!
« Reply #8 on: November 15, 2014, 12:02:55 PM »
You have entered the code incorrectly, best idea is to paste either

Code"G0X0Y0"

or

Code"G53G0X0Y0"

into the editor depending on whether you want machine zero or offset zero.

Hood