Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: bayougirl on March 06, 2023, 02:09:43 PM

Title: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 06, 2023, 02:09:43 PM
I must be missing something obvious... Setting up Mach4/ ESS.  Copied all the settings over from mach3. I can jog on all axes, limit switches fire appropriately when I jog too far. Everything seems good until I attempt to home the axes. I get the following error:
!!!!!!!ESS: Homing Prep FAILED for Axis 2 - ESS Motor 2 - MOTOR NOT ENABLED!!!!!!

I'm on Windows 10 Pro 64-bit, latest versions of Mach4 and ESS
Motors are set to home 2(Z), 0(X), 1(Y).
I have looked at the few other posts regarding this error, but nothing seems to fit my situation. 

If anyone can point me in the right direction, I'd be grateful!
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: joeaverage on March 06, 2023, 02:22:01 PM
Hi,
you are using wx4.set a four axis screen set, but only have a three axis machine. You have to disable homing for the A axis because you don't have one.

Craig
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: joeaverage on March 06, 2023, 02:31:45 PM
Hi,
open the Control plugin/Homing,Softlimits tab and disable (set to zero) A axis homing.

Craig
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 06, 2023, 03:44:40 PM
I'll check that as soon as I get home...The screenset I am using is the wxrouter.set. Hope that solves it! thx
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 06, 2023, 06:51:48 PM
Axes A,B&C were all included in the homing.  I set them to 0 and restarted everything... now when I attempt to home, i first get an ESS error: "Homing setup failure. No home switch is assigned to that input.", then "referencing is complete", then a repeat of the error above.

from a fresh start of mach 4, the history shows:
E-Stop cleared!
Home switch X Home tripped!
Home switch X Home tripped!
Home switch Y Home tripped!
Home switch Z Home tripped!
Limit switch X ++ tripped!
Limit switch Y ++ tripped!
Limit switch Z ++ tripped!
Limit switch X -- tripped!
Limit switch Y -- tripped!
E-Stop condition!
E-Stop cleared!
E-Stop cleared!
ESS: Mach4 Enabled
!!!!!!!ESS: Homing Prep FAILED for Axis 2 - ESS Motor 2 - MOTOR NOT ENABLED!!!!!!
-----ESS: ERROR!  No ESS Motor being homed!!! Homing will probably not work...
!!!!!!!ESS: Homing Prep FAILED for Axis 0 - ESS Motor 0 - MOTOR NOT ENABLED!!!!!!
-----ESS: ERROR!  No ESS Motor being homed!!! Homing will probably not work...


Is this a normal progression?  lol. I assume the initial "...tripped notices" are just the ESS getting caught up with the restart of Mach4?
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 06, 2023, 06:55:33 PM
here's my homing tab
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: joeaverage on March 06, 2023, 07:03:01 PM
Hi,
well the homing tab looks OK, how about posting a screnshot of your Homing switch inputs?

Craig
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 06, 2023, 08:11:03 PM
All of my limit switches communicate on port1-pin10.  I've attached the ESS inputs screen as well as the Control>Inputs.
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: joeaverage on March 06, 2023, 09:02:48 PM
Hi,
What's going on? You have just one input for ALL the Limits and Homes....how is that supposed to work?

How does Mach know for instance that its intended that the X axis home switch operates , it could just as easily be the Y-- switch, Mach can't possibly know.

I have three Home switches, one for each axis, each on their own ESS input. I have 6 Limit switches, two per axis for all three axes, there again each on their own input,
for a total of nine inputs. Then Mach knows exactly which switch operated and what that portends.

You need to re-think how you are going to Home your machine...this arrangement is sub-par.

I would recommend in the first instance just forget the limit switches altogether. Just have three Home switches, one per axis each on their own input. That will allow Mach
to Home as intended. Thereafter use SoftLimits. Note that SoftLimits ONLY MAKE SENSE IF THE MACHINE IS HOMED.

You have a ESS that has a total of 51 inputs and outputs, there is no need to economize, they are there to be used so use them.

Craig
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 06, 2023, 09:42:48 PM
Thanks for the response and taking the time to take a look.  I wasn't the one who set it up originally, but to be fair it has worked fine this way with Mach3.  Of course, you are correct that the system has no way of knowing which limit has been hit. 
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: joeaverage on March 06, 2023, 09:49:30 PM
Hi,

Quote
Of course, you are correct that the system has no way of knowing which limit has been hit.

Its worse, Mach thinks that all nine switches have been hit at once....and that explains the great big long Log entries about all the switches being activated.

Quote
I wasn't the one who set it up originally, but to be fair it has worked fine this way with Mach3.

And you could, at a pinch get the same working in Mach4.....but that's like saying 'my old Model T had trembler coil ignition, so it should work for a 2023 model car as well'

Craig
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 06, 2023, 10:04:18 PM
lol!  Well it sounds like I need to take it apart and do some rewiring.
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: joeaverage on March 07, 2023, 03:35:23 PM
Hi,

Quote
I have three Home switches, one for each axis, each on their own ESS input. I have 6 Limit switches, two per axis for all three axes, there again each on their own input,
for a total of nine inputs. Then Mach knows exactly which switch operated and what that portends.

I hasten to point out that I have been described as 'anal retentive over this matter'....which I think is rather unfair....I just like hopping up and down on the spot a lot!
I'm not drunk, I'm just holding up this lampost if you really want to know' (not original but a misquote of Tom Waits) ;D

Craig
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 07, 2023, 03:38:55 PM
It makes sense, I just never thought about it since that's the way the machine came wired. Thanks again for the input and taking the time to reply. 
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: joeaverage on March 07, 2023, 04:18:49 PM
Hi,
are you familiar with the placement of the switches inside the machine?

It was very common and still is, to have two limit switches per axis, naturally enough one at each end of the axis, and to use one of those switches as a Home switch
when homing but otherwise as a limit switch. This is perfectly acceptable even if it does not really go 'whole hog' such as I described on my machine.

I do reiterate the point that the most valuable use of switch is not  Limits, but rather Home switches. If you religiously Home your machine at startup and enable SoftLimits
then your machine will never cross over the boundary of your machine, ie the Limit switches will never be triggered.

My first mini-mill was like that, I had three Home switches only and thereafter relied on SoftLimits. It worked extremely well. I had three crashes in seven years and in every
instance it was my own fault. I always meant to get around to fitting Limit switches but never did. My new build mill is much bigger ans very much faster, 25m/min rapids,
and so I determined that I needed not only SoftLimits but Limit switches as well.

The reason I mention this is because Home switch can be anywhere in the machines envelope. Limits switches all but have to be at the extreme of travel, but not so Home switches.
Having said that its common to fit them near to one end of an axis, but not strictly required. For example my Home switches are about 10mm 'inside' the boundary. When the machine is Homed
the machine coordinate is usually set to zero at the Home switch position, but optionally can be set at a 'Home Offset'. In my case I make the Home Offest 10. So when the machine
is homed to the Home switch Mach knows that the actual boundary is a further 10mm away.

Being able to locate Home switches at any convenient location may often mean an easier placement, out of harms way, out of the coolant stream or whatever. It may also give you the oppurtunity
to design your Home switch installation that they not be damaged by over-run.

I use Omron roller plunger snap action microswitches for both Homes and Limits. They are high quality and have highly repeatable hysteresis, another matter where  I 'hop up and down a bit'.
I Home or Reference my machine (without the complication of Index Homing) within 0.02mm which is entirely adequate for most things.

https://nz.element14.com/omron-industrial-automation/z-15gq22-b/micro-sw-roller-plunger-spdt-15a/dp/1500340 (https://nz.element14.com/omron-industrial-automation/z-15gq22-b/micro-sw-roller-plunger-spdt-15a/dp/1500340)

Craig
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: FiveO on March 08, 2023, 02:12:20 AM
I have the same problem like You - https://warp9td.com/index.php/kunena/7-general-discussion/9456-ess-homing-setup-failure
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 08, 2023, 08:49:46 AM
Craig, my switches are all proximity sensors... are there advantages to using mechanical switches?
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: bayougirl on March 08, 2023, 08:52:28 AM
FiveO,
I have the same problem like You - https://warp9td.com/index.php/kunena/7-general-discussion/9456-ess-homing-setup-failure
I'm glad I'm not the only one.  I haven't been able to get on the warptd forums... my registration email never arrived, and the email I sent to support has not yet been answered.  Are there any helpful hints in the thread you listed?
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: FiveO on March 08, 2023, 11:51:48 AM
FiveO,
I have the same problem like You - https://warp9td.com/index.php/kunena/7-general-discussion/9456-ess-homing-setup-failure
I'm glad I'm not the only one.  I haven't been able to get on the warptd forums... my registration email never arrived, and the email I sent to support has not yet been answered.  Are there any helpful hints in the thread you listed?

The forum is helpful there. At now I think Andrew(warp9 forum) is busy with newer version quote:"I have been chasing some other issues at the same time to deal with not only build 5000 issues but other features added since then. I am trying to get one stable build working where everyone just jumps from 4809 to 5070."

So get these versions until then: Mach4 - 4.2.0.4809 and ESS - 278.1 (https://warp9td.com/index.php/gettingstarted/setting-up-the-smoothstepper-and-mach4)
Title: Re: Mach4+ESS / Homing Error- Motor Not Enabled
Post by: joeaverage on March 11, 2023, 04:27:13 PM
Hi,

Quote
Craig, my switches are all proximity sensors... are there advantages to using mechanical switches?

For Home switches I believe there are advantages, for Limits, no.

For a Limit switch all that you really care about is that the switch operates when the axis is adjacent the switch. It does not especially matter if it operates +-0.1mm
nor does it particularly matter when the switch deactivates when you back up.

Home switches are different. Recall that Mach references the machine coordinate of an axis to zero (or Home Offset if so programmed) not when the switch activates but when it deactivates.
The axis will advance towards the Home switch until the switch activates and then decelerate to a stop. Then the axis will back up and the machine coordinate zeroed as the switch deactivates.
There is a premium here on exactly when a switch activates and when it deactivates. Snap action micro switches are very good at repeatably activating at exactly the same spot again and again.
The Omron switches I use have a precisely defined and repeatable hysteresis, ie a given travel before the switch deactivates.

With proximity switches and to a certain extent optical switches there is a minor variation not only when the switch operates but most importantly when the switch decativates when the axis reverses.
Its for this reason that I prefer snap action microswitches for Home switches.

Having told you the reason that I like mechanical switches there will be many to say the contrary and with experience to back the claim. I suspect in truth both solutions are adequate.

If you really want accurate homing then you'd use Index Homing. Given that I have servos on all my axes and the the servo drives have an auxiliary encoder output including an Index signal
I could invoke Index Homing easily. It would require an extra input to Mach for each axis of course, so four currently and five coming.

I made my own breakout board for my new mill. It has an eight wire plug for each of the six axes, four wires for differential Step/Dir signalling, one for an Enable, one for a Reset,
one for a servo Alarm and the last one is a 0V Return. I could I suppose redesign to have say a 10 wire plug which would allow at least one extra wire for Index Homing....but really do I need it?
I can Home or Reference my linear axes to within 0.02mm just with snap action microswitches....is that not good enough? I could with Index Homing do better, to within 1um....but is that
really a big advantage of just skiting? Once I fully develop my fourth and fifth axes I may have to revisit this decision, I really need to Home or Reference my rotary axes within say 15 arc secs,
and I suspect that Index Homing may be the only way to get that sort of accuracy. If that were the case then I would retrofit just the fourth and fifth axis with Index encoders rather than redesign
my breakout board.

Craig