Ted Hyde wrote:
> I’m looking to implement a measured RPM display via a single PPR trigger 
> on my spindle. Let’s say it’s on parport.0.pin-13-in. I’ve used some of 
> the web-mentioned articles to get the pyVCP display bar in Axis (that 
> works ok), but it’s a matter of actually capturing the frequency from 
> the hardware pin and converting it to a useable float. The nist-lathe 
> example appears to be using the motion module, and trying to push the 
> hardware bit into that counter example has failed so far. I’m reading 
> that EMC 2.1 trunk is depreciating the counter module and replacing it 
> with enhanced encoder module, but I’ve seen no updated docs on it yet.
The problem is that EMC is just sampling the state of your 
sensor every once in a while.  Depending on how you set it up, 
you can put it in different threads to get different sampling 
rates.  If you haven't added the HAL component that is doing the 
sampling into the list of addf commands in your hal file, then 
it is not even being executed, which is why you get zero.

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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to