Hello Guest it is March 28, 2024, 03:03:59 PM

Author Topic: Auto tool zero  (Read 11501 times)

0 Members and 1 Guest are viewing this topic.

Auto tool zero
« on: April 20, 2007, 07:16:51 AM »
Hey, I'm new.

I want to use Auto tool zero with a microswitch and I have found this macro, but I don't have experience.
Can anyone explain me how to link the button and the macro? Which kind of extension needs?

Ciao and thank a lot

Fabio
'
Z zeroing macro by Scott Worden - Timber Lake Creations (and a little "Probe Var" tip from Brian ;-).
CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness = GetUserDRO(1151) 'You could put your z-plate thickness here instead
ProbeFeed = GetUserDRO(1152) 'You could put a probing feedrate here instead.
Code "G90 F" &ProbeFeed
If GetOemLed (825)=0 Then
Code "G4 P5" 'Time to get to the z-plate
Code "G31Z-5 F" &ProbeFeed
While IsMoving()
Wend
Code "G4 P0.25"
ZProbePos = GetVar(2002)
Code "G0 Z" &ZProbePos
While IsMoving ()
Wend
Call SetDro (2, PlateThickness)
Code "G4 P0.5" 'Pause for Dro to update.
Code "G0 Z2.0" 'Change the Z retract height here
Code "(Z axis is now zeroed)"
Code "F" &CurrentFeed
Else
Code "(Z-Plate is grounded, check connection and try again)"
Exit Sub
End If
Re: Auto tool zero
« Reply #1 on: April 20, 2007, 08:30:48 AM »
At the top of the screen go to Operator / Edit Button Script
You will see the Auto Tool Button flashing, click on it.
Now paste the Script that you have found one the web into the code window that opened and save.
Now to insure that you have everything save go to View / Save Current Screen set


That should do it..
THanks
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Auto tool zero
« Reply #2 on: April 20, 2007, 11:36:02 AM »
Hy Brian,
probaly I have an old version, because I don't have found Edit Button script, but only VB Script Editor.
Can I use this in the same way? thanks Fabio

Hood

*
Re: Auto tool zero
« Reply #3 on: April 20, 2007, 01:03:41 PM »
If you have an old version then I think you will need to use the old screen designer program to edit the button script.
Hood
Re: Auto tool zero
« Reply #4 on: April 20, 2007, 01:18:42 PM »
Hey Hood, what is the old designer program?where I can find it?
thanks,
Fabio

Hood

*
Re: Auto tool zero
« Reply #5 on: April 20, 2007, 01:32:14 PM »
Have attached it.

Hood
Re: Auto tool zero
« Reply #6 on: April 20, 2007, 01:47:57 PM »
Hood,
thanks a lot
Fabio