Thanks, Jeff. It was 'addf', or my lack of it. I should have known I needed
to, but the docs wasn't really clear about it. 

Debounce solved my issue, and I am really close to putting together a video
of my tandem axis setup on this machine. I got all of the remaining home and
limit switches installed and configured this evening.

Thanks,

>Len



-----Original Message-----
From: Jeff Epler [mailto:[email protected]] 
Sent: Monday, May 18, 2009 8:38 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] deboucing inputs

most likely cause: failure to 'addf' the function exported by debounce.

here's a standalone hal file that demonstrates debounce (run it with
'halcmd -I debouncedemo.hal' and use halscope to view the signals)
    http://emergent.unpy.net/index.cgi-files/sandbox/debouncedemo.hal
and a screenshot of halscope:
    http://emergent.unpy.net/index.cgi-files/sandbox/debounced.png

In this demo, the input is a half sine wave, and debounce triggers
shortly after the waveform goes over 50% duty cycle (because the counter
now counts up more often than down) and goes off again shortly aver the
input waveform goes back below 50% duty cycle (because the counter now
counts down more often than up).  This is very unlike the situation
encountered with a noisy switch, but is the best I could come up with on
short notice.

Jeff

----------------------------------------------------------------------------
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to