Hello
Guest
it is
December 07, 2024, 10:11:43 AM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
General Mach Discussion
/
Go To Zero Problem! Please to help me!
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Go To Zero Problem! Please to help me! (Read 4518 times)
0 Members and 1 Guest are viewing this topic.
wakedabed
99
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?
Logged
Hood
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
Logged
wakedabed
99
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
Logged
Hood
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
Logged
wakedabed
99
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!
Logged
Hood
25,835
Carnoustie, Scotland
Re: Go To Zero Problem! Please to help me!
«
Reply #5 on:
November 14, 2014, 06:01:15 PM »
You will find screen4 here
http://www.machsupport.com/wp-content/uploads/2013/04/Screen4.zip
And here is a video I made to show you how to do it.
https://www.youtube.com/watch?v=MUOmpAXzuvU&feature=youtu.be
Hood
Logged
wakedabed
99
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!
Logged
wakedabed
99
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?
Logged
Hood
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
Logged
Print
Pages:
1
Go Up
« previous
next »