Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: panaceabeachbum on September 09, 2008, 09:53:14 PM

Title: another tool change question , g32 g25 g28 ???
Post by: panaceabeachbum on September 09, 2008, 09:53:14 PM
Just curios how to easily get the z axis to return to a preset point , pref z home , when I call out m6 T** ?

My Milltronics uses g32 to return the head  to the tool change position  which can be defined in setup as z** relative to the home switch , I believe the Centroid my Dad has been using uses g25 Z H0 to return the z axis to the home switch when m6 is called out . We have been playing with g28 z0 but it first plunges the tool to the part zero then retracts to the home switch which in some situations will cause tool or part breakage .

Is there a simple line that could be easily added to the m6 macro that will cause the z axis to retract to the home position everytime m6 is called out?  The machine is a fullsize bridgeport clone and we need it to retract the z axis to the same point everytime for a tool change so the drawbar will be in the correct position for the power drawbar.

Thanks Richard
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Chaoticone on September 09, 2008, 10:15:22 PM
Richard, look on the settings page and you should see the tool change dros there. Put the value in there that you want to use for tool change posotion and give it a go.

Brett
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Chaoticone on September 09, 2008, 10:21:21 PM
Can't remember if I had to do a custom macro for that to work or not though.

Brett
Title: Re: another tool change question , g32 g25 g28 ???
Post by: edvaness on September 09, 2008, 10:32:02 PM
Brett,
  Is it true, that when you have a family Reunion, the whole State shows up ?
Your family tree is a forest?   ;D

I'll give Britt a kiss for you.   :P   But then, may be I won't.

Ed
Title: Re: another tool change question , g32 g25 g28 ???
Post by: panaceabeachbum on September 09, 2008, 10:41:34 PM
I think the problem is if I enter z zero on the settings page it brings the z axis to the z zero of the tool thats in the spindle and we need to to go up to absolute machine zero against the home switch  ( or some set distance from the home switch) regardless of what the tool offset is
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Overloaded on September 09, 2008, 10:51:29 PM
Just a guess here.
What if you put:

code"G53 Z0"
while is moving
wend

at the begining of the macro ?
RC
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Chaoticone on September 09, 2008, 10:52:25 PM
Richard, paste this in your M6Start macro and save. This will move the z first in machine coord. to what you have set in tool change posotion DRO then the x and y at the same time to machine coord you have set in tool change posotion DROs.  Let me know how it does.

'Get the tool change pos from the settings page
  ChangeX = GetOEMDRO(1200)
  ChangeY = GetOEMDRO(1201)
  ChangeZ = GetOEMDRO(1202)
 
 
  Code "G00 G54 Z" & ChangeZ
  Code "G00 G53 X" & ChangeX & "Y" & ChangeY

Brett
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Overloaded on September 09, 2008, 10:58:32 PM
Hi Brett,
If we just wanted the Z to go to mach. coord 0.000 before anything else moved, would what I posted work ?
Aside of the syntax of course.
RC
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Chaoticone on September 09, 2008, 11:02:52 PM
Ed, you seem to be slightly confused again. My family is pretty small. You should know this. After all the fighting you had to do to win my sister you should know we are in high demand.  ;D   If there were so many of us why would you tolerate the daily beatings she gives you? You know what I say. Women, Can't live with them, can't live without them........... or their sister............... or their cousin. Point is, you have to have one.  ;D 

Oh yeah, don't worry about giving out a kiss, she will take it if she wants it and you will do exactly as she said either before or after the beating. Make it easy on yourself.  ;D

Brett
Title: Re: another tool change question , g32 g25 g28 ???
Post by: panaceabeachbum on September 09, 2008, 11:06:04 PM
I am pretty sure my dad tryed g53 and it moved the z axis to a point called out relative to the tool offset in the spindle not the home switch
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Overloaded on September 09, 2008, 11:09:24 PM
Hmmmmm Strange. G53 is absolute Machine Coords. Should go to machine 0.00 unless there is a "Home Off" entry in the homing settings.
RC
Title: Re: another tool change question , g32 g25 g28 ???
Post by: panaceabeachbum on September 09, 2008, 11:13:14 PM
well that should do exactly what we are after then , will give it another whirl in the morning
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Chaoticone on September 09, 2008, 11:13:52 PM
Richard, typo in that script too. At the bottom wher it has    Code "G00 G54 Z" & ChangeZ   should be   Code "G00 G53 Z" & ChangeZ


It should RC. Depending on the version of Mach your runinng. The bleeding edge version will appreciate a sleep(*) rather than the while (is moveing) wend


Brett
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Kristin D on September 10, 2008, 04:56:16 PM
Richard, typo in that script too. At the bottom wher it has Code "G00 G54 Z" & ChangeZ should be Code "G00 G53 Z" & ChangeZ


It should RC. Depending on the version of Mach your runinng. The bleeding edge version will appreciate a sleep(*) rather than the while (is moveing) wend


Brett

Brett,

Have you been watching the video of the M11-180 UPPER RECEIVER in action on thompsonmachine.net? Would seem so with the Chip with a Glock Avitar!
 :o

Kristin
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Chaoticone on September 10, 2008, 07:06:51 PM
Why yes I have Kristin. That is one step above a guard dog.  ;D  I got to get me one of those.

Brett
Title: Re: another tool change question , g32 g25 g28 ???
Post by: panaceabeachbum on September 10, 2008, 08:02:42 PM
Thats been one of my favorite things I have built , If you search my username panaceabeachbum on youtube you can see some of the other machine guns I have built


We couldnt quite get the macro working but did set the param in the g28 settings box and a quick g49 g28 callout right above the m6t** line seems to be working just fine .
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Overloaded on September 10, 2008, 08:16:57 PM
RT,
Sure would like to see a working scale model of the Phalanx.....like the one I have as my avatar.
I once thought about making one in 22LR but never got very far with it.
RC
Title: Re: another tool change question , g32 g25 g28 ???
Post by: panaceabeachbum on September 10, 2008, 08:46:22 PM
I have some pics somewhere of one a fellow was building a couple of years ago in 22lr , delinker and all . I got to handle it at the knob creek machine gun shoot , very impressive.
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Overloaded on September 10, 2008, 09:13:33 PM
HOT DANG ! I'm anxious to see what you can find !
Off forum if you'd like.
Thanks,
RC
Title: Re: another tool change question , g32 g25 g28 ???
Post by: panaceabeachbum on September 10, 2008, 09:56:29 PM
http://www.montysminiguns.com/brian.htm
Title: Re: another tool change question , g32 g25 g28 ???
Post by: Overloaded on September 10, 2008, 10:10:16 PM
Thanks for that RT !
That would make a keen winter project.....AND it certainly would wreak havoc on them rats in the corn crib.
RC