Hello Guest it is December 15, 2019, 05:31:59 AM

Author Topic: Tool Number read from Mach's Tool Table?  (Read 14977 times)

0 Members and 1 Guest are viewing this topic.

Tool Number read from Mach's Tool Table?
« on: September 22, 2007, 04:26:07 PM »
Can the program be written to get my tool diameter automatically from the entries in my Tool Table Data when I type in a tool # in the NFW screen?

Thanks,
Pat
Re: Tool Number read from Mach's Tool Table?
« Reply #1 on: September 24, 2007, 10:07:42 PM »
Ron,

Is this included in the next upgrade or is it not doable?

Pat
Re: Tool Number read from Mach's Tool Table?
« Reply #2 on: September 28, 2007, 09:10:47 PM »
I do not think the tool table data is accessible to VB. There was some recent discussion on this, but I dont hink it will be possible.

Offline Graham Waterworth

*
  • *
  •  1,923 1,923
  • Yorkshire Dales, England
    • View Profile
Re: Tool Number read from Mach's Tool Table?
« Reply #3 on: September 30, 2007, 05:33:55 AM »
You can get the data like this :-

GetToolParam(SHORT toolnum, SHORT param) for tool parameters. Param numbers are 1 - n and correspond to the tool window in the mill or turn modes.

In turn for example, 1 is TipDia, 2 is Tip Radius..ect..

Graham.
Without engineers the world stops
Re: Tool Number read from Mach's Tool Table?
« Reply #4 on: September 30, 2007, 11:32:27 AM »
Graham,

Thanks.  It is exactly what I was hoping existed to get the tool info.

What is the best source for the complete list of VB functions?

Pat

Offline Chaoticone

*
  • *
  •  5,634 5,634
  • Precision Chaos
    • View Profile
Re: Tool Number read from Mach's Tool Table?
« Reply #5 on: September 30, 2007, 08:46:08 PM »
You got to watch Graham, he's pretty bad about pulling a rabbit out of the hat.  :)

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Tool Number read from Mach's Tool Table?
« Reply #6 on: September 30, 2007, 11:28:49 PM »
Graham,

Any way to get the "tool description" from the tool table in addition to the tool diameter and offset length?

Pat

Offline Graham Waterworth

*
  • *
  •  1,923 1,923
  • Yorkshire Dales, England
    • View Profile
Re: Tool Number read from Mach's Tool Table?
« Reply #7 on: October 01, 2007, 04:57:33 AM »
I have not found one for doing that.

Graham.
Without engineers the world stops

vmax549

*
Re: Tool Number read from Mach's Tool Table?
« Reply #8 on: October 01, 2007, 12:33:35 PM »
YOu can bring in the current tool # info by setting up a text Label using "TOOLDESC", it will retreive the currently loaded tool # description . I use it in an AUTO tool setting page. You would just need to setup the macro to load up the tool# you need the references on first then extrat the info.

You can also use the Get/Set Tool Param calls to modify the tool data. BUT you cannot change the tool description except in the tool Table Config.

(;-) TP
Re: Tool Number read from Mach's Tool Table?
« Reply #9 on: October 02, 2007, 12:33:19 AM »
Thanks, it works as advertized.  Where do you find this information in the documantation?

Also is there a way to read the label text from the TOOLDESC label in VB code after it displays the tool description?

Pat