Hello Guest it is October 14, 2024, 10:31:57 PM

Author Topic: Tool zeroing macro help  (Read 33207 times)

0 Members and 1 Guest are viewing this topic.

Re: Tool zeroing macro help
« Reply #10 on: November 18, 2013, 08:35:47 AM »
How do you activate the script?  Is it attached to a button, or is it saved as a macro and called via an "M*********" code in the MDI?  Have you tried re-installing Mach3 (saving your xml file first with the settings), as well as rebuilding the hardware?  I will try to remember to get you a copy of my macro off my controller this evening.  Note that I have given it a macro number and it is assigned to the "Auto Tool Zero" button.

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: Tool zeroing macro help
« Reply #11 on: November 18, 2013, 09:05:46 AM »
The second one is not complete, and appears to be missing quite a few lines.
There's an if statement with no "end if" and the last line is an error message that should have some other code to go with it.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Tool zeroing macro help
« Reply #12 on: November 18, 2013, 09:56:13 AM »
Gerry - yes indeed!  The first one is rather skimpy too.
Re: Tool zeroing macro help
« Reply #13 on: November 18, 2013, 01:32:31 PM »
IT IS ATTACHED TO A BUTTON. THE AUTOZERO ONE
Re: Tool zeroing macro help
« Reply #14 on: November 18, 2013, 05:02:24 PM »
OK, here is my script (attached).  You will need a button script that simply calls this - something like

Code "M900"

should do it I think IIRC.  Save the macro in the "macros" folder - save it as M900 not with my extension _jh.

This macro is based on one from someone else on this forum, but I have extended it somewhat and added many comments.  It works for me, if it still doesn't work for you I suspect you must have a software config problem.

Good luck!

John
Re: Tool zeroing macro help
« Reply #15 on: November 20, 2013, 02:33:06 AM »
Couple of additional points.  I have made a setting gauge which has an electrically isolated button set at 38.84 mm  above its magnetic base.  The button connects to the probe input.  In use I pop the gauge on the table, position the tool just above the button with the button  connected, click auto tool zero, and the macro then executes, leaving the tool 50 mm above the table surface which is the Z coordinate zero I prefer.  For other touch place thicknesses and desired end points, it's fairly obvious where you modify these numbers.
Re: Tool zeroing macro help
« Reply #16 on: November 25, 2013, 06:09:25 PM »
Um, did that help?  Hello?
Re: Tool zeroing macro help
« Reply #17 on: November 25, 2013, 11:50:58 PM »
hey man!!!!!!  I really appreciate your help.  so far, I have not been able to try the las one you sent me due to my job dedication, I work on an adult community and have no help and because of the fall clean ups  most of my time is taken by that; hopefully by the winters' first weeks I will Have a chance to go back to it and I promise I'll keep you posted.


BEST REGARDS:

Elias Agredo
Re: Tool zeroing macro help
« Reply #18 on: November 26, 2013, 01:55:11 AM »
Ok, good luck, let me know how you get on.

Where are you located?
« Last Edit: November 26, 2013, 01:56:48 AM by JohnHaine »
Re: Tool zeroing macro help
« Reply #19 on: November 26, 2013, 08:19:07 AM »
Jackson, Nj and yourself?