Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: stirling on September 12, 2007, 10:12:23 AM

Title: simultaneous homing?
Post by: stirling on September 12, 2007, 10:12:23 AM
Is this possible in mach or does it only home sequentially?

thanks
Title: Re: simultaneous homing?
Post by: Brian Barker on September 12, 2007, 10:54:05 AM
You can do both or any combination that you like. For example I like to hone the Z axis and then the XY at the same time. To do this you need to use the refcombination() command and this command is explained int he Mach2 Customization manual.

Thanks
Brian
Title: Re: simultaneous homing?
Post by: stirling on September 12, 2007, 11:46:05 AM
Thanks Brian - According to the manual: this function was deprecated back in M2 as more general ways are now available. Don't know obviously if that's actually the case. Anyway, I just tested it in the VB editor but obviously I don't want to have to do that every time so... any suggestions where I should stick it? - careful... I'd like to be able to have it completely transparant i.e. both for ref all home and G20,30 etc.
Title: Re: simultaneous homing?
Post by: Brian Barker on September 12, 2007, 11:56:40 AM
You can put the VB code in the Ref all button on the main screen... I think you will want to have the followiing:
Dobutton(22) 'Ref the X
RefCombination(3)'Ref the X and Y

You can use the Operator/Edit button script to eddit the VB in the button... You need to press the save button after you are done
thanks
Brian
Title: Re: simultaneous homing?
Post by: stirling on September 12, 2007, 12:10:30 PM
Ta B.

Before I give it a go - what V Mach are you using - I'm on 1.84.002 and there's no Operator/Edit button script.
Title: Re: simultaneous homing?
Post by: Brian Barker on September 12, 2007, 12:34:36 PM
it should be there.... look at the top of the screen
Title: Re: simultaneous homing?
Post by: stirling on September 12, 2007, 12:45:44 PM
Nope....

Title: Re: simultaneous homing?
Post by: Brian Barker on September 12, 2007, 01:06:06 PM
Time for an update!  ;D
Title: Re: simultaneous homing?
Post by: stirling on September 12, 2007, 01:27:15 PM
Thought you might say that but was hoping you wouldn't... I did upgrade a while back but limits don't work properly and yet they're fine in 1.84.002 (http://www.artsoftcontrols.com/forum/index.php?topic=3562.0) so I downgraded again...
Title: Re: simultaneous homing?
Post by: Hood on September 12, 2007, 05:40:41 PM
You might be able to do it via Mach3screen, its the old screen designer and allowed you to edit VB buttons. Its now a lot easier as you can do it from with in Mach but as you have found the older versions dont allow it.
Hood
Title: Re: simultaneous homing?
Post by: stirling on September 13, 2007, 06:09:06 AM
thanks hood. I'll try the latest V first as I could do with the apparantly fixed CV (as of the 5th this month). Though I just checked the revision list and there's no mention of it so we'll see) Hopefully the limits will work as well.
Title: Re: simultaneous homing?
Post by: stirling on September 13, 2007, 10:09:16 AM
OK I've upgraded to R2.45 and all seems well. This time it didn't trash all the settings apart from G28 in home/limits. Strange I did a diff on the original and new xml and they were identical - G28 must be stored somewhere else I guess. Limits work and I've got the homing set to Z then XY simultaneously. code is: rem out all but DoButton(24) followed by RefCombination(3). Just need to have a look at the CV improvements.

Many thanks to B and H (sounds like a cigaretteĀ  ::))
Title: Re: simultaneous homing?
Post by: Brian Barker on September 13, 2007, 10:23:26 PM
Np, Happy to hear that you have it working the way you wanted :)

Thanks
Brian