Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: sshneider on March 30, 2009, 01:25:12 PM

Title: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: sshneider on March 30, 2009, 01:25:12 PM
Hey All,

I've been away for a while and finally had a chance to update to the new 3.042 version.  It seems that a change has taken place in the way that the GoTo Zero command is being executed. 

Previously when one selected Goto Zero was selected the X & Y axis would trundle off to their respective positions and then Z would drop on in.  I found this to be exactly what I wanted since it kept my Z retracted (clearing clamps, Jigs and such) whilst X & Y did their thing.

Now in the new & improved version, Z moves down first and then X & Y rip across my table.  The first time I tried this I promptly broke my Bit by slamming into one of my Destaco Clamps  >:( . Am I crazy to think that moving the Z first is backwards?

So... I've looked in the config for an option to select which axis moves first and can find none.  Am I missing something or do I need to create a custom Macro to do this?   Thanks in advance for your help/advice.

Regards,
Sid
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Hood on March 30, 2009, 01:43:37 PM
It should and still does work the first way you have described for me. Possibly you have the safe Z set to work coordinates, if that was the case and you had for instance 0 then it would do exactly as you are describing. If you have set to machine coords and zero then the Z should move first to machine zero, X and Y move then Z back down.
Hood
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: sshneider on March 30, 2009, 01:49:16 PM
Hood you are DA MAN!  Very perceptive indeed!  Safe Z in Work Coords.  So I have a work around but actually I still think that Z should move last regardless of Safe Z preference settings.  Whatcha think- Macro???

Regards (& Thanks),
Sid
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Hood on March 30, 2009, 01:54:50 PM
Z should move first clear, then it should move on X and Y then lastly the Z should drop down. If you want that to happen then set it to Machine Coords. If you want to keep it in work coords then set the Z as something higher than the top of the work, or you could even have an incremental rise so that it went up from any position you are presently at. My preference is machine coords zero as 99.99999% of the time it should clear everything, if it doesnt then you are not going to clear the work no matter how you do it.
Hood
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Chaoticone on March 30, 2009, 05:06:49 PM
Sid, I modified the button in my screen to raise the z if it was below zero then x and y then lower the z. If it is above zero, it will stay there do x and y then lower the z down.

Brett
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Hood on March 30, 2009, 05:11:13 PM
Sid, I modified the button in my screen to raise the z if it was below zero then x and y then lower the z. If it is above zero, it will stay there do x and y then lower the z down.

Brett


Why? Does it not automatically do that for you? If I press Go to Zero then it will raise Z to safe Z position unless its already there or higher, in that case it will just go on to the next part which is move X and Y and then finally it will lower the Z. I have not needed to alter any button or have a custom macro, just set the safe Z up from Config menu and thats it.
Hood
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Chaoticone on March 30, 2009, 05:15:05 PM
If I was using safe Z it would.  :) 

Brett
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Overloaded on March 30, 2009, 05:16:25 PM
excuse please.............
Hey Brett,
  I noticed that the GoToZeros button is a System Function button.
How can one modify a System button ? Or did you change it to a VB Script button ?
I put a TCP button on my screen with script to do whatever is needed.
Thanks,
RC
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: sshneider on March 30, 2009, 05:20:42 PM
OK Brett, So are you gonna give it up?  How did you make that button do that?  Macro??  Howzabout posting that bad boy for all of your other commrades!!??? 

:-)

Sid
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Chaoticone on March 30, 2009, 05:23:59 PM
Hey RC, Yes, if you wanted to modify it you would use scrren 4 or screen 3 and make it a VB button. Then edit it from your user menue. Or I think screen 3 will let you put the script in while designing. RC, I have a TCP button on my screen and a set tcp. Jog to where you want the toolchange position to be and click set tcp and it sets the dros on the settings page for tcp.

OK, will do SID. But, as Hood said if your running safe z enabled, you won't benefit from it. My knee is so slow any wasted movement drives me crazy.

Brett
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Hood on March 30, 2009, 05:25:21 PM
Please excuse my ignorance but why are you wanting to write a macro or put a VB button on the screen to do what Mach already does internally if you have the safe Z set up?

Hood
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Overloaded on March 30, 2009, 05:31:28 PM
Thanks Brett.
Welcome back Sid, sorry for the freeloading.
RC
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: Chaoticone on March 30, 2009, 05:50:25 PM
If anyone uses the set TCP button script, make sure to check and see that it is setting your TCP dros on the settings page. It is easy to check. Set your dros in machine coords. and click the button. go to settings page and Tool Change Location DROS should read the same as Machine dros. Jog it a bit in all 3 axis and click the button again. Again the machine dros and TCP dros should read the same.

"Set Tool Change Position Button


Response = MsgBox ("Are you certain you want to change the tool change position? This should be used for new set-ups only!", 1)
If Response = 1 Then

X = GetOemDRO( 83 )       "Machine coord DROs
Y = GetOemDRO( 84 )
Z = GetOemDRO( 85 )

Call SetUserDRO(1200,X)     "Tool change location DROS on the settings page
Call SetUserDRO(1201,Y)
Call SetUserDRO(1202,Z)

End If


   "Modified GoToZero Button

Zpos = GetDRO(2)
If Zpos <=0 Then          "If Z is less than 0
Code "G54 G0 Z0"
Code "G54 G0 X0 Y0"
Else
Code "G54 G0 X0 Y0" 
Code "G54 G0 Z0" 
End If
Title: Re: Is this a (Z axis) problem (bug) or a Preference that I just don't understand?
Post by: sshneider on April 01, 2009, 01:48:40 AM
Right On!  Thanks Brett!

Regards,
Sid