Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: cd_edwards on August 22, 2016, 10:08:04 PM

Title: Unable to complete RefAllAxisHome
Post by: cd_edwards on August 22, 2016, 10:08:04 PM
For some reason Reference All Axis Home has quit working. When I reference all, each axis does it thing. You can see that they all turn green. But it will not complete. I have to Disable Mach4 at  which point I get a msg about referencing is complete, however this also de-references all axis's. My Y axis is slaved to my A axis, with home switches on each side. These switches each have a separate input. X and Z each have a switch as well. In my history, I see that X, Y and Z each home, but without that disable, it will not go any further.. Anyone have any idea's on what to try? Btw, I've only setup home switches and no limit switches to make it simpler in the config.

Just discovered that if I click Stop, it will complete referencing and keep it. Still should not have todo this though.
Title: Re: Unable to complete RefAllAxisHome
Post by: Pedio on August 23, 2016, 08:20:47 AM
I am not sure if Mach 4 has implemented the referencing of both ends of a gantry axis. I know this was not working a month or so ago. It could be my plugin. Try removing the A axis from the homing sequence and see if that works.

You might want to send a note to your motion controller manf and ask if this is currently supported. I square my gantry by running it into the stops. Not optimal but works for now.
Title: Re: Unable to complete RefAllAxisHome
Post by: DazTheGas on August 23, 2016, 09:31:41 AM
Bring up the mach logging under the diagnostic menu and post the log, then hopefully we can see whats happening or not happening.

DazTheGas
Title: Re: Unable to complete RefAllAxisHome
Post by: cd_edwards on August 23, 2016, 12:39:34 PM
Guess I should mention I have an ESS attached to the C32 bob. Find attached an log of homing attempt.
Title: Re: Unable to complete RefAllAxisHome
Post by: DazTheGas on August 23, 2016, 05:14:24 PM
Can you post your profile so I can recreate on my machine as my log appears totally different to yours.

DazTheGas
Title: Re: Unable to complete RefAllAxisHome
Post by: cd_edwards on August 23, 2016, 05:20:08 PM
Sure thing.. had to rename my machine.ini to Colten.txt in order to upload it
Title: Re: Unable to complete RefAllAxisHome
Post by: DazTheGas on August 23, 2016, 05:34:53 PM
What version of Mach4 are you using so I can create as near as possible and have you changed anything in the PLC or other scripts ?

DazTheGas
Title: Re: Unable to complete RefAllAxisHome
Post by: cd_edwards on August 23, 2016, 05:47:35 PM
I'm using a current version of Mach4 3130 with latest ESS 186 driver.
Title: Re: Unable to complete RefAllAxisHome
Post by: DazTheGas on August 24, 2016, 08:38:16 AM
Well ive tried pretty hard but cant seem to replicate the problem at all, couple of things I did notice is that you have some double entries within your ini, start mach4 then minimize you will find the error dialogs hidden behind.
v3149 is now on ftp so try that.

One thing you could try is from the ESS config/Homing tab remove all axis then just 1 by 1 add each axis doing a home sequence each time until an error occours but there does seem to be some problem with "API: mcAxisHomeComplete() called. axis 5" cant see why its not in your homing sequence.

DazTheGas
Title: Re: Unable to complete RefAllAxisHome
Post by: bob_at_pmdx on August 24, 2016, 04:13:10 PM
I am not sure if Mach 4 has implemented the referencing of both ends of a gantry axis. I know this was not working a month or so ago. It could be my plugin.
Just to be clear - homing is implemented in the plug-in.  All that the Mach4 core does is tell the plug-in when to start homing each axis.

Bob
Title: Re: Unable to complete RefAllAxisHome
Post by: cd_edwards on August 24, 2016, 07:54:55 PM
actually found the problem. I had motor C enabled as I thought it needed to be in order to use my spindle. it was trying to home my spindle I guess.
Title: Re: Unable to complete RefAllAxisHome
Post by: DazTheGas on August 25, 2016, 01:42:04 AM
Just shows to all how important the logging facility can be, glad you are all sorted now.

DazTheGas
Title: Re: Unable to complete RefAllAxisHome
Post by: cd_edwards on August 25, 2016, 08:43:38 AM
it was thanks to your statement about axis 5 that got me thinking. I started looking at the soft limits first, but thought I'd take a look at the axis map and noticed the 5th in there enabled.