> My lathe threading isn't working right due to the driver, John Kasunich 
> is checking into as he gets time.  I'm trying to learn more about EMC2 
> and how to configure it.  I was reading the hal documentation and saw 
> the part about encoders.  Could I just connect my encoder A,B,& Z to 
> m5i20 inputs and load the hal encoder module and map it to motion 
> spindle index-enable and spindle position?  I know the software solution 
> isn't as speedy as the hardware, but I would think this would get me by 
> until 2.2 is released.

yes, this will work but you need to hook up the digital-in-read function 
and the HAL encoder component update function to a fast thread.
you maximum count frequency will then be something less than half of the 
frequency of the thread. (say 20 kHz thread gives ~10kHz max counr)
with a modest spindle speed and a modest count/rev encoder I would think 
that you run into trouble quite quickly.
(hmm, 3000rpm is 50rev/s with a 100 count/rev encoder would give counts 
at 5kHz, so that might be doable.)

AW

-------------------------------------------------------------------------
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