Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: GeorgeRace on April 21, 2010, 06:20:56 PM

Title: Homing X & Y at the same time
Post by: GeorgeRace on April 21, 2010, 06:20:56 PM
I am not sure where, but I remember reading somewhere there was a parameter you could enter to cause your X & Y axis to home at the same time.  I would like to have the "Home" command home the Z axis first, then move both the X & Y axis to home at the same time.

Also, is there some kind of a setup to get my keyboard "Home" key to cause the mill to home?  I can click on the "Home" button on the screen and it homes.   Pressing the home key does nothing.  The Up, Down, Left, and Right Arrow keys move the mill in the correct direction when depressed.

Thanks,
George Race
Title: Re: Homing X & Y at the same time
Post by: Hood on April 21, 2010, 07:03:18 PM
Not sure if there is such a way, a work around would be to have this in the VB, (test with caution ;)  )

DoOemButton(1024)
While IsMoving()
Wend
DoOemButton(105)

it would home Z first then rehome Z again along with X and Y
As Z has been homed in the first move it will be clear so the extra homing in the second move shouldnt harm.

As for setting the Home on the keyboard as a home button you will need to assign it to that button by using one of the screen designers and setting it as a HotKey.

Hood
Title: Re: Homing X & Y at the same time
Post by: Greolt on April 21, 2010, 10:00:36 PM
Try  RefCombination ( 3 )

That will home X and Y simultaneously.

Greg

Ref;  http://www.machsupport.com/MachCustomizeWiki/index.php?title=Mach_specific_Subroutines/Functions_grouped_by_purpose
Title: Re: Homing X & Y at the same time
Post by: Hood on April 22, 2010, 02:21:16 AM
There you go, something else learned :)
Hood
Title: Re: Homing X & Y at the same time
Post by: GeorgeRace on April 22, 2010, 08:52:54 AM
Thanks much, that is exactly what I was looking for.  I read about it somewhere, but did not remember where I had found it.

George