Hello Guest it is July 20, 2019, 08:42:35 PM

Author Topic: Tool change location problem  (Read 5003 times)

0 Members and 1 Guest are viewing this topic.

Tool change location problem
« on: March 08, 2013, 04:38:02 PM »
I'm experiencing a problem involving manual tool changes, but first I want to ask, where do you set up the default tool change location?  I'm certain I've messed with it before, but now I'm not finding it.

So the problem I had today– at the end of the first tool's operation it went off the part to what I'm assuming is the tool change location.  I had to more it more to do the tool change and when I resumed the code the tool moved further from the part, stopped, and then headed in another direction until it hit the axis limit switch.  I'm not very code savvy but there are no move command in that line that would be sending it out to the wild unknown.  After trying for quite a time I gave up and ran the code from the beginning with the second tool installed (it was small so didn't cause a problem), and it ran through that tool change to the end of the code without a problem. 

Can anyone tell me what the cause of the problem is?

Thanks,
Glenn

Offline Chaoticone

*
  • *
  •  5,526 5,526
  • Precision Chaos
    • View Profile
Re: Tool change location problem
« Reply #1 on: March 11, 2013, 10:41:17 AM »
Glenn, there is no default tool change location.  You will need to do all of this in your m6start and/or/maybe your m6end macros and enable the tool change in general config.

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 change location problem
« Reply #2 on: March 11, 2013, 11:18:05 AM »
I just jog to a convenient position to change the tool, change it, reset z using a touch plate, and click "Start".  Mach3  moves x and y back to the correct positions to resume.
Re: Tool change location problem
« Reply #3 on: March 11, 2013, 11:23:46 AM »
Dadof4-
That's what I've always done, and I usually don't have a problem, so I don't know why I had the problem I had the other day. 

I am going to try to change the tool change location to make things simpler, but I've never messed with the macros before.

Glenn
Re: Tool change location problem
« Reply #4 on: March 11, 2013, 03:34:39 PM »
Brett, I found the M6 macros and the VB script editor to view them, but I have no idea how to interpret them.  They actually have the exact same code as far as I can tell, and I don't see any distance information anywhere, so I really don't understand what they are doing.  I took screen shots but I don't see how to post them.  Can you direct me to a resource from which to learn about editing these macro?

Thanks, Glenn

Offline Chaoticone

*
  • *
  •  5,526 5,526
  • Precision Chaos
    • View Profile
;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 change location problem
« Reply #6 on: March 12, 2013, 09:42:58 PM »
Brett,

I'm sorry, but I'm still not making sense of things.  I wish I had time to learn programing but I just don't.  I manage a multi-function student shop at a small college and am using Mach3 on a bridgeport mill which a student converted to CNC some years ago (he's much brighter than I am).  From what reading I did, it seems that the M6start/end are about returning the machine to the x,y location it was at when the tool change command comes up, after having been moved in order to make the change.

When you say there isn't a default tool change location, you mean that Mach3 doesn't have one?  I thought that there is a location which can be specified for a specific machine in Mach3.  Is that what you were referring to when you wrote, "enable the tool change in general config."?  I looked in general config and couldn't find anything about tool change location (just the 3 button options), or anything at all with x,y coordinates.

What am I missing?

Glenn
Re: Tool change location problem
« Reply #7 on: March 12, 2013, 11:16:30 PM »
Glenn:   I had a similar problem (though it might not be exactly the same) last week when I tried to "upgrade"  from running Mill .020 to something newer.

The machine would just take off for the north (west) forty so to speak.  I looked at everything I could think of...soft limits, configuration stuff....  Finally in a durr moment, I opened up the m6start macro, and it was the same as the one for .020.  Then, the m6end macro, and sure enough, it has a bunch of code that seemed to be for checking the SafeZ clearance.  The old .020 m6end was actually empty.  A bunch of REM statements, and it works just fine, at least for me!   I am sure it could cause some Safe Z problems, but I run all my tools with preset Z values and it has always worked in the past. 

I will be doing some learning of how to write the scripts when I finally get my tool changer set up in the future, but for now it at least works and makes chips.

Just something you might check.

Jim

Offline Chaoticone

*
  • *
  •  5,526 5,526
  • Precision Chaos
    • View Profile
Re: Tool change location problem
« Reply #8 on: March 13, 2013, 08:48:28 AM »
Hey Glenn, I'm sorry, I also meant to tell you how to post pictures.  When your typeing a reply or new topic you will see additional options below where you type.  Click on it and it will let you browse for an attachment.  Make sure it has a unique name and isnt too large.

I'm almost in the same boat with you on being able to write macros.  Anything I do in programming is a struggle for me but some of the other guys could write it in their sleep I think.  You need to figure out exactly what you want it to do first.  Lots to consider really.  I'm assuming you will want the tool data updated.  If so, where does this data come from?  Are your tools preset?  If not, how do you set them?  Do you need anything else to happen, turn off coolant, vaccum, etc. then turn it back on when you press cycle start again or when it returns to a specific location?  Get all this figured out and post it and maybe some of the guys who already know how to make the magic happen will help.

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 change location problem
« Reply #9 on: March 13, 2013, 12:48:31 PM »
Thanks for the comments guys.  Today I worked with the machine again with the same problem, but then I set a different origin location for the piece and the machine didn't run outside of its limits on the tool change.  I'm still trying to understand where the location command is coming from for the tool change.  I hope someone can look at the attached code and tell me what it's saying.

Thanks
Glenn