Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:19:37 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  Newfangled Solutions Wizards (Moderator: Ron Ginger)
| | |-+  Tool Number read from Mach's Tool Table?
Pages: 1 2 3 »   Go Down
Print
Author Topic: Tool Number read from Mach's Tool Table?  (Read 5864 times)
0 Members and 1 Guest are viewing this topic.
gtoguy
Active Member

Offline Offline

Posts: 28


View Profile
« on: September 22, 2007, 03: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
Logged
gtoguy
Active Member

Offline Offline

Posts: 28


View Profile
« Reply #1 on: September 24, 2007, 09:07:42 PM »

Ron,

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

Pat
Logged
Ron Ginger
Active Member

Offline Offline

Posts: 568



View Profile WWW
« Reply #2 on: September 28, 2007, 08: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.
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #3 on: September 30, 2007, 04: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.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
gtoguy
Active Member

Offline Offline

Posts: 28


View Profile
« Reply #4 on: September 30, 2007, 10: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
Logged
Chaoticone
South Carolina, US
Administrator
*
Offline Offline

Posts: 3,598


Precision Chaos



View Profile WWW
« Reply #5 on: September 30, 2007, 07:46:08 PM »

You got to watch Graham, he's pretty bad about pulling a rabbit out of the hat.  Smiley

Brett
Logged

Grin If you could see the things I have in my head, you would be laughing too. Grin
www.precisionchaos1.com
My guard dog is not what you need to worry about!
gtoguy
Active Member

Offline Offline

Posts: 28


View Profile
« Reply #6 on: September 30, 2007, 10: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
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #7 on: October 01, 2007, 03:57:33 AM »

I have not found one for doing that.

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
vmax549
Guest
« Reply #8 on: October 01, 2007, 11:33:35 AM »

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
Logged
gtoguy
Active Member

Offline Offline

Posts: 28


View Profile
« Reply #9 on: October 01, 2007, 11:33:19 PM »

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
Logged
Pages: 1 2 3 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!