On Thu, 9 Jul 2009, Leslie Newell wrote: > Date: Thu, 09 Jul 2009 21:41:15 +0100 > From: Leslie Newell <les.new...@fastmail.co.uk> > Reply-To: "Enhanced Machine Controller (EMC)" > <emc-users@lists.sourceforge.net> > To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> > Subject: Re: [Emc-users] Hostmot2 homing > > That was one of the first things I tried. I have now found the problem. > encoder.nn.index-invert does not work. Setting it to 1 or 0 makes no > difference (at least for encoder 05). Inverting the index pulse by > physically swapping the encoder outputs sorted the problem.
The hardware works (just tested SV12 encoder 5). There may not be much apparent difference between inverted or non-inverted index because they are both edge triggered. It looks like the driver does not set the ABGateIndex bit so what I said about index happening all the time with the wrong index polarity would not happen, just the home position might change by a count or 2 depending in index width (assuming a normal rotary encoder short index). If swapping the leads solves your problem, it might be electrical troubles. The current driver not setting ABGateindex means a narrow index pulse would work regardless of polarity though the home position would change slightly depending on whether the rising or falling edge generates the index event (since an edge is always needed) > > Les > > >> >> Did you try index invert? Homing anywhere is a sign that index needs >> to be inverted >> > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users