Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: morengin on September 21, 2013, 11:01:39 PM

Title: Tool Setting Script
Post by: morengin on September 21, 2013, 11:01:39 PM
I have found a number of 'simple' tool setting scripts, but I would like to have one that after Z initially touches the sensor, it retracts a small amount and contacts the sensor again a little slower. By doing this it is taking out any over run of the spindle. I would also like to know how difficult it would be to write in the script to have the Z offset display not only the height of the sensor, but also the retract amount. Lets say that I am using a sensor that is 1.00 tall and I have a retract amount of .25, I would like to see the Z offset read
Z 1.25.  Any input would be appreciated.
Thanks, Jim
Title: Re: Tool Setting Script
Post by: ger21 on September 22, 2013, 06:56:08 AM
The Big Tex auto zero does a lot more than what you want, but it does do the double probe, so you can see how it's done.

http://www.cnczone.com/forums/mach_wizards_macros_addons/100594-mach_3_tool_setter_big-tex_version.html

For you're second question, it depends on what you actually mean. If you're talking about the actual Z offset on the Offset page, then no. The Z offset is the difference between Z zero in Machine Coordinates and the top of your workpiece.

If you just want the Z axis DRO to read 1.25 after zeroing, it should automatically, because that's the position where it will be. You can't force a DRO to display an arbitrary number.

Or, you may be talking about something else completely, because I don't know what DRO would display the height of the sensor, as you said?
Title: Re: Tool Setting Script
Post by: morengin on September 22, 2013, 09:49:20 AM
Gerry,
Thanks for the reply. As far as the script from Big Tex, I will check it out. And for the second part of my question....all the scripts I have tried will only show the retract amount in the DRO and not the sensor size plus the retract amount (actual Z position above the work piece).
Again thanks for the reply,
Jim
Title: Re: Tool Setting Script
Post by: ger21 on September 22, 2013, 10:03:07 AM
The DRO should show the actual position, which would be the plate thickness + the retract amount. If they don't, then your Z zero isn't set correctly.