Hello Guest it is February 27, 2021, 08:15:08 PM

Author Topic: Tool Probe  (Read 6209 times)

0 Members and 1 Guest are viewing this topic.

Tool Probe
« on: January 25, 2007, 05:58:01 PM »
Just curious if you guys had any help or direction on how to setup the probe on my table in Mach 3 to allow for tool compensation, IE, for tool changes.  I already have the probe on the table just need to know how to get it working and setup, any help would be greatly appreciated.

Thanks,
Justin
Re: Tool Probe
« Reply #1 on: January 25, 2007, 06:12:27 PM »
Heres some extra info:

I know there needs to be a macro, but i really odn't know how to make one.  Is there any basic ones already done?
I have a very basic 3Axis router and on a bed around 580mmx1700mmx150.  I also need to know where to put the macro, etc.  Its also a manual tool change.

Just need it to go, touch off, the i guess go to G28 (,0,0,0) and touch off again?

thanks
« Last Edit: January 25, 2007, 06:16:57 PM by skymac »

Offline rcrabb

*
  •  146 146
    • View Profile
Re: Tool Probe
« Reply #2 on: January 25, 2007, 06:28:16 PM »
I think the info you need will be in this thread http://www.machsupport.com/forum/index.php?topic=2136.0
Ryan

Offline rcrabb

*
  •  146 146
    • View Profile
Re: Tool Probe
« Reply #3 on: January 25, 2007, 06:33:40 PM »
If you read all the posts in that thread you'll find a example of some code used in a scripted button. I have used this code and it works. You would have to add a button to one of your screens with Screen4 and edit the script for the button in Mach3. If you need help, send me your screen I can edit it and send it back to you. Good luck.
Ryan
Re: Tool Probe
« Reply #4 on: January 25, 2007, 07:24:59 PM »
I have this now:
-----------------------------------
'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
-------------------------------------

Now is that all I do is insert it directly, no changes? And screen 4?

Offline rcrabb

*
  •  146 146
    • View Profile
Re: Tool Probe
« Reply #5 on: January 25, 2007, 09:47:26 PM »
You'll need to add a button to activate this code. You will also need to add two DRO's, one for the thickness of you probe setup, and one for the speed you want this probe function to move at. there is a tutorial for Screen4 in the tutorial section of this site.
« Last Edit: January 25, 2007, 09:51:14 PM by rcrabb »
Ryan