Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
German Forum
Italian Forum
Portugese Forum
Resources
Links
User Reviews
User Videos
Contact Us
CNCZone
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
December 02, 2008, 10:22:13 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Third party software and hardware support forums.
Newfangled Solutions Wizards
Tool Number read from Mach's Tool Table?
Pages:
«
1
2
3
Go Down
« previous
next »
Author
Topic: Tool Number read from Mach's Tool Table? (Read 2513 times)
0 Members and 1 Guest are viewing this topic.
keithorr
Active Member
Offline
Posts: 15
Re: Tool Number read from Mach's Tool Table?
«
Reply #20 on:
March 10, 2008, 10:53:32 PM »
Just a little add onto this thread:
' append to file = C:\Mach3\macros\toolinfo.txt
N = GetToolDesc(1)
D = GetToolParam(1,1)
L = GetToolParam(1,2)
textFilePath = "C:\mach3\macros\toolinfo.txt"
Const ForAppending = 8
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.opentextfile(textFilePath,ForAppending)
objTextFile.WriteLine("Tool1: " & N &" Diameter: "& D &" Length: " & L)
objTextFile.Close
'End
'Now to learn how to scroll through the tool table (until there are no more descriptions) and overwrite the text file.
'Put it all in a button and I can "export" the info.
'I'm just wanting a tool information cheat sheet to take back to my desk while I fiddle with the CAM.
'All suggestions graciously accepted.
«
Last Edit: March 11, 2008, 08:58:37 PM by keithorr
»
Logged
There are some enterprises in which a careful disorderliness is the true method.
keithorr
Active Member
Offline
Posts: 15
Re: Tool Number read from Mach's Tool Table?
«
Reply #21 on:
March 11, 2008, 01:04:55 AM »
This reads information from the tooldata file and overwrites a text file up to 100 tools
Stops writing with the first instance of "Empty" as a tool description
////'PLEASE BE SURE YOU UNDERSTAND WHAT YOU'RE DOING WITH THIS FILE OR ELSE JUST WALK AWAY/////
'Create a New Button on a Screen using the Mach3Screen.exe.
'(Load the screen set you usually use) I placed one on the Offsets Screen for my use. You may have a better location.
'Paste the text below into the VB window of the Button Properties Screen
'The new button will create and update a text file on your desktop showing tool information up to 100 tools.
'Useful to have when your CAD/CAM is on another PC.
' overwrite file = C:\Documents and Settings\All Users\Desktop\ToolInfo.txt
textFilePath = "C:\Documents and Settings\All Users\Desktop\ToolInfo.txt"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile(textFilePath)
Do Until num=100
num=num+1
N = GetToolDesc(num)
D = GetToolParam(num,1)
L = GetToolParam(num,2)
objTextFile.WriteLine("Tool"& num &" "& N &" Diameter: "& D &" Length: "& L & Chr(13) & Chr(10))
If N ="Empty" Then num = 100
Loop
objTextFile.Close
'End
«
Last Edit: March 11, 2008, 08:58:53 PM by keithorr
»
Logged
There are some enterprises in which a careful disorderliness is the true method.
keithorr
Active Member
Offline
Posts: 15
Re: Tool Number read from Mach's Tool Table?
«
Reply #22 on:
March 11, 2008, 02:33:48 PM »
newer version will poll up to 225 tools and skip any tool with a description of "empty"
' overwrite file = C:\Documents and Settings\All Users\Desktop\ToolInfo.txt
textFilePath = "C:\Documents and Settings\All Users\Desktop\ToolInfo.txt"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile(textFilePath)
Do Until num=225
num=num+1
N = GetToolDesc(num)
D = GetToolParam(num,1)
L = GetToolParam(num,2)
If N <>"Empty" Then
objTextFile.WriteLine("Tool"& num &" "& N &" Diameter: "& D &" Length: "& L & Chr(13) & Chr(10))
Else
End If
Loop
objTextFile.Close
'End
«
Last Edit: March 11, 2008, 08:58:15 PM by keithorr
»
Logged
There are some enterprises in which a careful disorderliness is the true method.
zealous
Administrator
Offline
Posts: 331
Re: Tool Number read from Mach's Tool Table?
«
Reply #23 on:
March 21, 2008, 07:41:31 AM »
thanks Keith very helpful and nice way to do it
Logged
Regards, Jason Blake
vmax549
Guest
Re: Tool Number read from Mach's Tool Table?
«
Reply #24 on:
March 22, 2008, 11:12:48 PM »
Keith thanks for the macro, I have asked Art in the past for such a thing. It is extremely handy to have the tool table handy when you are3 working in cad or just loading up a tool carousel for a job.
You may want to consider posting all parameters of each tool to the file. the tool may measure say .375 but actually cut.3765, so the wear diam are very important also. We use them to setup the exact cutting diam if known.
(;-) TP
Logged
vmax549
Guest
Re: Tool Number read from Mach's Tool Table?
«
Reply #25 on:
March 25, 2008, 08:07:30 PM »
HI Keithorr, WOuld it be possible to have the utility write to a LPT port to print the tool table??? It would be nice to make sure the toolbook was current.\
(;-) TP
Logged
Pages:
«
1
2
3
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*e*i*n*g
=> Mach Screens
=> Feature Requests
=> Non English Forums
=> FAQs
===> Finished Plugins for Download
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> Lazy Cam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Promote and discuss your product .
=> Sieg Machines
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
=> One on one phone support.
=> Forum suggestions and report forum problems.
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
Loading...