----- Original Message ----- 
From: "John Kasunich" <[EMAIL PROTECTED]>
To: "Enhanced Machine Controller (EMC)" 
<[email protected]>
Sent: Friday, June 22, 2007 12:36 AM
Subject: Re: [Emc-users] m5i20 Homing with index


>
> Well, I've fixed the (not-yet-released) version 2.2 driver.  Turns out
> it was the mask - EMC and HAL don't use it, but it was enabled anyway.
> Changed the driver to turn off index masking, and index now works.
>
> The 2.1.x version of the driver is a mess - it doesn't use the
> "canonical encoder interface" that all other HAL encoder drivers use,
> so HAL pin names are non-standard.  The code that drives them is also
> very different.  I'm tempted to port the 2.2 driver over into the 2.1
> branch, instead of attempting to fix the one that is there.  But that
> decision will have to wait until tomorrow, its after 1:30am.

Thanks for your work on this, I'm guessing this should also fix my 
problem with threading on the lathe?  Is there a work around, is there a 
way to thread on my lathe using EMC2.1.6 with the current driver?  I'm 
so new and this is so akward I'm not sure if I'm doing something wrong 
or if the latch-index just won't work for threading.  I guess I just 
need to know if I should wait for the V2.2 driver that you fixed or if I 
can get hal to function like the index-enable?

> I found a more disturbing problem - both versions seem to lose counts
> going in one direction (but not the other).  I have a 2500 line 
> encoder
> hooked up, so I should get 10000 counts per rev.  Going forward thats
> exactly what I get.  But turning it backwards, I get between 9700 and
> 9800 counts per rev.  I have a 7i31 LED board connected, so I can
> carefully turn the encoder until I see the index LED light up, and I
> know I've done EXACTLY one turn.

You could try reversing channels A and B to see if the problem is in the 
encoder or the fpga configuration.

Thanks!
Roger N


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to