Tom wrote:

>I am trying to implement a debounce filter on my limit switch inputs in order 
>to
>filter out some 4 microsecond noise/glitches, visible in Halscope, that are
>tripping my limits while running my toolpath.
>
> Noise from the spindle vfd seems to be the culprit, but I was careful to 
> shield
>& optoisolate the vfd control lines and bond the power grounds. 
>
>I was able to: 
>loadrt debounce cfg="6"
>addf debounce.0 servo-thread 1
>
>I was also able to link the debounce.0.0.in & out pins to the limit input pins
>without error.
>
>But how do I set the time constant so the filter will work?
>I tried the following to no avail:
>setp debounce.0.delay100 / setp debounce.0.100 / setp debounce.0 100
>  
>
The documentation is here:
<http://www.linuxcnc.org/docview/html//man/man9/debounce.9.html>

If the lines you pasted are exactly what you typed, then the problem is 
typos :)

The first form you had would be correct, except that you need a space 
between the parameter name (debounce.0.delay) and the delay amount 
(100), like so:
setp debounce.0.delay 100

Note that this is the number of samples the input has to remain 
constant, not a time duration.  If your BASE_PERIOD is 25000 (which is 
sounds like based on your halscope trace description), then a delay of 
100 will require 2500 us or 2.5 milliseconds continuous contact for the 
output to change.  If you've been getting single sample glitches, then 
you can probably set the delay to 2 or 3.

- Steve


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to