Hello Guest it is April 24, 2024, 05:41:27 AM

Author Topic: Tool Lenght from Probe  (Read 2497 times)

0 Members and 1 Guest are viewing this topic.

Tool Lenght from Probe
« on: October 04, 2012, 07:51:27 AM »
I am having a hard time finding any information on using a G31 Z-********* command. I get the tool to travel down and stop on the probe.  I think the the value of that position is in #2003. I would like to write that value to the tool table #tool table = #2003. The end goal is to use the probe to check if the tool is broken during a lights out operation.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Tool Lenght from Probe
« Reply #1 on: October 04, 2012, 09:35:19 AM »
NOW would be a good time to download and study the MACH3 programmers manual for CB.

GetVar(2003) retreives the Z axis probed value

SetToolParam(1,2,1.000) Sets the Tool#1 diam to 1.00

ToolLenghtOffset()  retrieves the CURRENT tool length offset.

Probe the tool in use then compare it to what the tool should be and there you have it. If it is the same(+/-) then continues else stop.


Just a thought, (;-) TP