I think there is an encoder module within emc that allows a single channel 
encoder+index..  I know of one person using it on their lathe for threading.

sam
----- Original Message ----- 
From: "Jon Elson" <[EMAIL PROTECTED]>
To: "Enhanced Machine Controller (EMC)" <[email protected]>
Sent: Friday, July 20, 2007 11:13 AM
Subject: Re: [Emc-users] UnivPWM and Spindle Encoder


> Kirk Wallace wrote:
>> My lathe has a pulse generator with an index signal, but while trying to
>> hook it up to my UnivPWM controller, I am beginning to think that it's
>> not compatible with the controller. Are the encoder inputs only
>> compatible with quadrature encoders? I can utilize a software encoder
>> counter in HAL on another parallel port, but I believe that software
>> counters would be too slow. Is fitting a quadrature encoder my only
>> option?
>
> The UPC has quadrature inputs, and the EMC2 driver and threading
> code all requires encoder counts, and a reset to zero on the
> index pulse.  So, your "pulse generator" just has one channel of
> pulses?  I can see one way to make this work, which is to delay
> the single pulse with an RC delay or a one-shot circuit to turn
> it into a simulated quadrature signal.
>
> First, here's what I'd do, is connect the pulse output to the
> UPC's A encoder input, and connect a 10 K Ohm resistor between
> the A and B encoder inputs.  Then, connect a .01 uF capacitor
> from the B input to ground.  This will create a 100 us delay
> between A and B, which should satisfy the counter as a valid
> quadrature pattern.
>
> Try this first, if it doesn't work, I can give you instructions
> to make a delay with a one-shot chip.
>
> Jon
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to