Here's something that Art commented on that worked for me to get Z to home, followed by any other axes you choose to home simultaniously....
I used this combination....
DoButton( 24 ) "home Z"
Refcombination( 19 ) "home X and Y and B"
see notes below..I'm searching for the other "Refcombination" numbers relating to the "B" and "C" axes as I changed my slaved axes to Y and B. (edited...FOUND ..see way below)
You don't need slaved axes for this refcombination to work....
"Art wrote....> Common problem. When you home , the slaving is disabled till the home is
> done. Thsi is done to auto-square the gantry of such a system, thats why
> the
> lack of slaving when you stop the homing.. The solution is to make the
> homing go in the correct order. This is done by modifying the Homing
> button.. If you open the 1024.set file in the screen designer and double
> click the "Ref All-Home" button, you will see the code is
>
> DoButton( 24 )
> DoButton( 23 )
> DoButton( 22 )
> DoButton( 25 )
>
> This basically calls the Z, then X then Y and A homes. This needs to be
> changed to ..
>
> DoButton( 24 ) ' this homes the Z
> DoButton( 23) ' this homes the Y
> RefCombination( 9 ) ' this will home the X and A at the same time.
>
> RefCombination accepts a number where X = 1 , Y = 2, Z = 4, A = 8, you
> simply add the values of the axis
> you wish to home, so X + A = 9..
>
> The squaring will be automatic and can be adjusted by your settings for
> the home position of the switches..
> Thanks,
> Art
>
www.artofcnc.caArt also wrote this... and I found the complete "Refcombination" listing here....
"Art wrote.... The home switches, (which may be set to the same input as the limit
switches), are used only for homing. The axis will move to the switch, then
slowly move off.
The program by default does one at a time, because thats the most usual
combination. YOu CAN move any combination at once by editing the RefAll
buttons script. There is a command called RefCombination( n ) which will ref
any combination of the axi s. N is calcuated by adding the following
numbers..
X - 1
Y - 2
Z - 4
A - 8
B - 16
C - 32
So to ref X and Y togehter would be RefCombination( 3 )
""
John(bloy)
P.S. sources...Text document on my desktop, and a search in the yahoo group for "refcombination"