On Tuesday 20 June 2017 10:03:42 Tom Easterday wrote: > Is there a parameter I can tweak after it happens in order to clear > the fault (e.g. can I clear the ferror value) ? I can then try to > home again... > I've no clue if this would apply to your case or not, Tom. The mpja dial encoders I use for jogging in lieu of manual cranks on this new to me Sheldon lathe, are inputting thru a std mesa card encoder, and when the jog timeout is finished, 5 seconds after the last "click", I found it was needed to hold the encoder on the mesa card in reset, so the next time I push the button, to adjust the per step movement or to use it as a jog wheel at the last gain setting, the motion induced effectively starts at zero = whereever the dial was at when I enabled it. If I want to make a calibrated motion, I set the dial to zero before I push the button to enable it, then I can just dial in the motion I need. Wait for the 5 second timeout and touch it off at the new position.
But I don't think this is a solution to your problem. In your case, since zeroing the encoder would move the machine, I believe I would AND the home switch input with the index before I sent the home switch signal to the motion modules input. And because the index is relatively narrow, a slower search velocity might be needed. That way, motion would be snapshoting the encoders status at the index, not on the home switch, but on the next index pulse after the home switch activated. It seems to me that would get rid of a following error. Be sure you debounce the home switch just enough for consistency. And that the home switch is far enough away from any mechanical travel stops by a full turn of the motor, and is setup that the potentially full turn of the screw, the extra travel needed to find the index, will not damage the home switch. And of course advise the list if this latter idea solves the problem. This advice comes with no warranty of course. :) > > On Jun 20, 2017, at 9:49 AM, Tom Easterday <tom-...@bgp.nu> wrote: > > > > Todd, the ini and hal config were in the first post.... > > > >> On Jun 20, 2017, at 9:21 AM, Todd Zuercher > >> <zuerc...@embarqmail.com> wrote: > >> > >> I just checked my config on my step/dir servo machine, and it is > >> homing to index on 2 of the axis. It is not having and problems. > >> Maybe you have a configuration problem. Could you post a copy of > >> your ini and hal file somewhere where we could check it over. > >> > >> ----- Original Message ----- > >> From: "Tom Easterday" <tom-...@bgp.nu> > >> To: "Enhanced Machine Controller (EMC)" > >> <emc-users@lists.sourceforge.net> Sent: Tuesday, June 20, 2017 > >> 9:00:22 AM > >> Subject: Re: [Emc-users] following error only while homing > >> > >> Andy, you are correct it is related to using index. Homing works > >> fine if I don't use index. The encoder reset makes sense as to why > >> it CAN happen (but shouldn't be). Is this just a bug? I would try > >> to home a second time but as Todd says, I can't clear the error. > >> Linuxcnc shuts off when it happens and pressing on just immediately > >> faults again. I have to exit and restart it. > >> > >> -Tom > >> > >>> On Jun 20, 2017, at 8:13 AM, Todd Zuercher > >>> <zuerc...@embarqmail.com> wrote: > >>> > >>> > >>> ----- Original Message ----- > >>> > >>>> From: "andy pugh" <bodge...@gmail.com> > >>>> To: "Enhanced Machine Controller (EMC)" > >>>> <emc-users@lists.sourceforge.net> Sent: Tuesday, June 20, 2017 > >>>> 4:27:46 AM > >>>> Subject: Re: [Emc-users] following error only while homing > >>>> > >>>>> On 20 June 2017 at 03:51, <tom-...@bgp.nu> wrote: > >>>>> > >>>>> Why would I get a following error only while homing > >>>> > >>>> I think it is probably because you are using HOME_USE_INDEX > >>>> (which will > >>>> zero the encoder at the index pulse) and feeding the encoder > >>>> feedback back > >>>> into LinuxCNC. > >>>> > >>>> Now, this is perfectly normal, and with a servo / pid machine the > >>>> system > >>>> knows to ignore the f-error immediately after an encoder reset. > >>>> What is > >>>> puzzling me here is why it isn't working in this case. I think it > >>>> is something to do with the fact that your system is set up for > >>>> open-loop step > >>>> position control but has encoder feedback. However I can't > >>>> immediately see > >>>> why this makes a difference. > >>>> > >>>> I imagine that if you press the home button again it will home Z > >>>> seamlessly, and then f-error homing the next axis. > >>>> > >>>> > >>>> -- > >>>> atp > >>> > >>> Andy, > >>> > >>> I wish that were true. For some reason my analog servo machine > >>> trips up and sets a following error on an axis about 25% of the > >>> time when trying to home to index for the first time after turning > >>> on LInuxcnc. (Almost every time since it is a 4 axis machine.) > >>> But the alarm is easily cleared, and it always homes fine the 2nd > >>> try. I have never been able to figure out why, and no one else > >>> seems to have been able to replicate the problem. > >>> > >>> His problem sounds different since he says can't clear the alarm. > >>> > >>> My other machine with step/dir servos, doesn't have encoder index > >>> to home to. But it does home fine without ever setting following > >>> errors. > >>> > >>> ------------------------------------------------------------------ > >>>------------ Check out the vibrant tech community on one of the > >>> world's most engaging tech sites, Slashdot.org! > >>> http://sdm.link/slashdot > >>> _______________________________________________ > >>> Emc-users mailing list > >>> Emc-users@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/emc-users > >> > >> ------------------------------------------------------------------- > >>----------- Check out the vibrant tech community on one of the > >> world's most engaging tech sites, Slashdot.org! > >> http://sdm.link/slashdot > >> _______________________________________________ > >> Emc-users mailing list > >> Emc-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/emc-users > >> > >> ------------------------------------------------------------------- > >>----------- Check out the vibrant tech community on one of the > >> world's most engaging tech sites, Slashdot.org! > >> http://sdm.link/slashdot > >> _______________________________________________ > >> Emc-users mailing list > >> Emc-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/emc-users > > > > -------------------------------------------------------------------- > >---------- Check out the vibrant tech community on one of the world's > > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Emc-users mailing list > > Emc-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/emc-users > > ---------------------------------------------------------------------- >-------- Check out the vibrant tech community on one of the world's > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users