View Full Version : Z Location - Where is the tool tip?


brendanjerwin
01-18-2008, 10:15 AM
Hi all. I'm building a CNC conversion for a X2 but have no experience in CNC or machining in general. Learning a lot from the internet but I'm unable to wrap my mind around a couple of things.

Here is one of them:

How does the CNC software know where the end of the tool is? It seems to me that the length of the end mill would vary from tool to tool which would mean that the tip would vary every time I change tools.

philbur
01-18-2008, 12:50 PM
Hi,

down load this manual and read section 7.3.

http://www.machsupport.com/documentation/Mach2-6-11.pdf

Basically you tell the software the length of each tool, either directly in a tool table or by "touching" each tool, when mounted, to a known refrerence point.

Phil


Hi all. I'm building a CNC conversion for a X2 but have no experience in CNC or machining in general. Learning a lot from the internet but I'm unable to wrap my mind around a couple of things.

Here is one of them:

How does the CNC software know where the end of the tool is? It seems to me that the length of the end mill would vary from tool to tool which would mean that the tip would vary every time I change tools.

mikkojay
01-18-2008, 10:44 PM
I use mach3 for my mill, and it has a button that allows you to customize the auto tool zero function.
Here is a video I put on youtube that shows it working:
http://youtube.com/watch?v=jGey4aVXBm0
Hope that helps, Mike

brendanjerwin
01-19-2008, 12:08 AM
Very cool. thx both of you. Documentation and Video to back it up. Now I need to make sure EMC2 can support that kind of magic. :)

Rodm1954
01-19-2008, 04:55 AM
In the simplest form you can put a piece of thin paper (tobacco rolling paper is perfect) on the workpiece and move the Z axis down until your bit grips the paper but does not cut through. Moving the paper as you move the Z axis down helps you feel when it makes contact.
In the absence of other more sophisitaced measuring devices this will be your easiest choice.
A simple, cheap and accurate Z zeroing method is explained here.
http://www.cnczone.com/forums/showthread.php?t=36099

bobkeyes
01-22-2008, 11:59 AM
I use mach3 for my mill, and it has a button that allows you to customize the auto tool zero function.
Here is a video I put on youtube that shows it working:
http://youtube.com/watch?v=jGey4aVXBm0
Hope that helps, Mike

I also use Mach3. I have the latest beta from the site. The auto tool function says, "Not Yet Implemented". How did you get it to work??

Thanks in advance.

Bob Keyes (new member)

mikkojay
01-22-2008, 05:01 PM
Hey Bob,
You need to go in and edit the script that is associated with that particular button. If you go in and look at the script: from the menu --> operator/edit button script (sorry, from memory), then click on that button when it starts blinking, you will see that the default script is something to the effect of a message that says just what you are seeing. I can post a copy of the script that I am using when I get home tonight. Keep in mind that this should be used as a starting point, because my script is custom tailored to my machine. That's why they let you write a custom script that fires when the button is pressed- every one has a different machine & needs. You must be VERY careful messing with this script, because the machine will do exactly what you tell it to. Tell it something strange in the script, and the machine will be more than happy to oblige by crashing your tool into the table!
-Mike

bobkeyes
01-22-2008, 06:38 PM
That would be great Mike. I WILL be careful. In fact, I'm running this without the motors attached to the machine. Kind of a simulation of sorts. That way if it doesn't work right-no harm.

Thanks again for your help.

BrassBuilder
01-22-2008, 07:06 PM
Hey Mike,
What exactly is that auto tool zero sensor? Is it something that you built? I searched around and I cannot find anything on it.
Thanks
Mike

mikkojay
01-22-2008, 07:06 PM
Attached is the script I am using.
If it looks foreign, try Googling some of the function names like SetDRO.
-Mike

mikkojay
01-22-2008, 07:12 PM
My sensor is a piece of solid copper pcb.
I sandwiched it on some foam from a foam paint brush. I did this so that (while I experimented with the script), if I screwed up and sent the tool the wrong direction, it would smush the foam down instead of snapping my tool in half. This actually happened once, so I am glad I did- and had my hand on the e-stop button! Now that I have it working right, I might ditch the foam and just use a piece of solid copper pcb by itself.
The pcb has a single wire soldered to it, the end of which is attached to a parallel input pin. This pin is designated in the ports/pins config as the probe pin.
-Mike

bobkeyes
01-22-2008, 07:19 PM
Gee, thanks Mike. I REALLY appreciate it a lot. This will give me an idea of what I can do and educate me on VB scripts as well.

Thanks again.

BrassBuilder
01-22-2008, 07:47 PM
The pcb has a single wire soldered to it, the end of which is attached to a parallel input pin. This pin is designated in the ports/pins config as the probe pin.
-Mike

This would actually go on the breakout board on one of the input ports, right? If so, that sounds simple enough to make. I think I can figure out the VB stuff. I used to write a little for Microsoft Access databases.

Mike

mikkojay
01-22-2008, 07:54 PM
Yep, you got it. The tool in the holder is grounded to the machine's electrical ground level 0vdc. The input pin/plate are hi, so when the tool touches the plate, mach3 sees the pin go lo 0vdc. It then knows to kick the vbscript out of the loop it is in and go on to the next step. Having a little script experience will definitely come in handy.
-Mike

seanreit
04-13-2008, 06:56 PM
Yep, you got it. The tool in the holder is grounded to the machine's electrical ground level 0vdc. The input pin/plate are hi, so when the tool touches the plate, mach3 sees the pin go lo 0vdc. It then knows to kick the vbscript out of the loop it is in and go on to the next step. Having a little script experience will definitely come in handy.
-Mike

Where are the instructions to make this device and hook it up to the Taig Controller box? I have searched all day for it and this thread was the closest I could find to describing it.

Thanks so much.