Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: PerE on September 13, 2006, 09:50:55 AM
-
I want a simple macro that lower the z-axis down until i hits the probe and then the thickness (that i know) of the probe get into the z-axis DRO.
Do i have to put the thickness of the probe in the macro or can the macro ask me if i want to set another thickness of the probe and save it even if i switch the computer off ?
Best regards from
Per
-
I think if you look there is a tool probe macro on the forum that will do just that! It is a few messages down and if you can't find it post here and I will help you :)
Thanks
Brian
-
Thanks Brian.
I have read it before and i thought it was just a toolchanger macro but i will read it again and try to write my own code.
When i think i am done so will i post it here. :)
Per
-
if you have any trouble please feel free to post your questions
-
Thank you again.
Ihave made this one and it is working now for me. Maybe you can do this better but it works.
Code”G31 Z-100 F25” ’Down with Z
While IsMoving()
Wend
GetVar(2002)’Hit the probe
Call SetDRO(2,2.000)’Sets the probehigh
Code”G00 Z10.000"’Safehigh
Per
-
To clear this what i am doing:
I have an isolated plate that is 2.000 mm thick that i put on the surface of my workingpiece and it is connected to pin 13 at port 2.
Its a very simple macro but it helps me to set the tool more accurate then a piece of paper ;)
Per
-
Great job! Nice to see that you got there data on the forum to work for you...
Keep up the good work
Brian
-
I will like to ask when You write a macro How and where do You actually put the code? at the beginning of the gcode? or is this a separated issue? I have just started with Mach so patience will be appreciated.
Thank You,Marco.
-
Hi Marco.
This macro is in the Mach3 screen "program run" - "tool information" and i put it in the button "auto tool zero".
You have to write the macro in notepad or word then copy it.
After that you have to open Mach3Screen and double clic on the "auto tool zero" button then paste the macro you have in there.
Hope this will help you a little bit.
Good luck.
Per
-
Thank You for the fast responce Per,Marco.
-
I keep trying to auto z and the machine goes up does not z out first
-
Put in a G91 to make the move incremental
Also be sure to put a G90 at the end of the macro