Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 06:35:27 PM
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
Mach Discussion
General Mach Discussion
Help with tool changes
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Help with tool changes (Read 704 times)
0 Members and 1 Guest are viewing this topic.
SWATH
Active Member
Offline
Posts: 37
Help with tool changes
«
on:
March 21, 2011, 12:39:21 AM »
Hello,
I'm a new Mach user so I don't know much but I'm in the process of customizing some things and I don't know how to do it.
Here is what I want to happen:
When Mach encounters an M06 for tool change I want the Z to move up to either the home switch/limit switch/or a predefined machine coordinate high in the Z but I want X and Y to not change. I would also like a pop up window to display a message with the details of the requested tool (i.e. "Please load tool #3 .5 flat endmill", or "Please load tool #4 3.15 45deg facemill", etc.) and possibly even a photo image of it and a beep or a .wav saying "please load new tool" or something. I would also like to put a "go to tool change location" button on the program screen that executes this action.
As an aside, how do you control tool #0? I would like to use T0 for the indicator reference tool but I can't figure out how to use the T0 so I have it as T1.
Thanks for the help
«
Last Edit: March 21, 2011, 12:56:44 AM by SWATH
»
Logged
Hood
Active Member
Offline
Posts: 17,366
Carnoustie, Scotland
Re: Help with tool changes
«
Reply #1 on:
March 21, 2011, 05:55:48 AM »
You would have to enable the Auto Changer option and then write some VB for the M6 macro to do what you want it to do.
Hood
Logged
SWATH
Active Member
Offline
Posts: 37
Re: Help with tool changes
«
Reply #2 on:
March 21, 2011, 08:17:00 PM »
Thanks that is what I figured. Here is what I got to get the z to where I specify on the tool change location DRO.
Z = GetUserDRO( 1202)
code" G53G0 Z" & Z
and I saved it in the M6start.m1s
the problem is that is doesn't stop and wait for the cycle start button to be pushed, it just hits the Z location then proceeds with the program. What's next?
Logged
ger21
Global Moderator
Offline
Posts: 2,619
Re: Help with tool changes
«
Reply #3 on:
March 21, 2011, 08:46:34 PM »
In general config, check "Stop spindle, wait for Cycle Start". This runs the M6 start, then waits for cycle start, then runs m6 end, then continues with the program.
Logged
Gerry
2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
SWATH
Active Member
Offline
Posts: 37
Re: Help with tool changes
«
Reply #4 on:
March 21, 2011, 09:21:12 PM »
Ahh that's perfect, thanks a lot.
So now it goes to Z home and waits for cycle start, so far so good. Now I would like a pop up dialog box displaying the requested tool info. I tried getting a dialog box which sort of worked but I couldn't get the tool info.
Something like:
Please change to Tool #4
3.15" 45deg Facemill and
then press cycle start.
OK
Logged
ger21
Global Moderator
Offline
Posts: 2,619
Re: Help with tool changes
«
Reply #5 on:
March 21, 2011, 09:32:10 PM »
In the programmers manual, see the following:
GetCurrentTool
GetSelectedTool
GetToolParam
GetToolDesc
Put the info in a string and display it in a message box.
Logged
Gerry
2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
SWATH
Active Member
Offline
Posts: 37
Re: Help with tool changes
«
Reply #6 on:
March 22, 2011, 12:31:55 AM »
Ok here is what I got so far:
Z = GetUserDRO( 1202)
code" G53G0 Z" & Z
NewTool = GetSelectedTool ()
SetCurrentTool (NewTool)
Message "Please Load Tool #" & GetCurrentTool () & Space (1) & GetToolDesc (GetCurrentTool () )
TNum = GetCurrentTool ()
TDec = GetToolDesc (GetcurrentTool ())
MachMsgTypeOK = 0
Ret = MachMsg ("Please Load Tool #" & GetCurrentTool () & Space (2) & GetToolDesc (GetCurrentTool ()), "Tool Change Rquired", MachMsgTypeOK)
I have a couple of questions I can't figure out.
!. How do you Bold text in a message box
2. How do you break a message into 2 lines in a message box?
3. How do you add an image to a message box?
Logged
ger21
Global Moderator
Offline
Posts: 2,619
Re: Help with tool changes
«
Reply #7 on:
March 22, 2011, 05:57:59 AM »
1) You can't
2) add a carriage return, don't know it off the top of my head though.
3) You can't, I don't think. You can get different symbols to display. I think the info is in the cypress manual.
Logged
Gerry
2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
SWATH
Active Member
Offline
Posts: 37
Re: Help with tool changes
«
Reply #8 on:
March 22, 2011, 10:49:36 AM »
Ok I got the new line done. It is disappointing not to be able to insert an image into the text box somehow, there has got to be a work around.
Anyway how do you edit tool #0? It's there but I can't do anything with it?
Logged
SWATH
Active Member
Offline
Posts: 37
Re: Help with tool changes
«
Reply #9 on:
March 22, 2011, 10:41:45 PM »
OK I now have a problem. The above script works perfectly on my laptop. However when I run it on my machine computer it does not get the new tool specified in the Gcode it just asks for whatever the current tool is regardless of what the T() is. What is going on here and how can I fix it?
Logged
Pages:
1
2
»
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.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****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
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...