On Sunday 24 April 2016 03:49:15 Danny Miller wrote:

> Perfect!  Thanks!
>
> Danny

I would go one step farther in terms of noise proofing it, and put a 
debounce module in front of the edge module, with its debounce set for 2 
or 3 so that a random noise spike would not normally last long enough to 
allow it thru to the edge module.  If its in the servo-thread, and the 
servo-thread is running at the 1 millisecond default, that would still 
only be a 3 millisecond lag, but it might save you some surprises.

Remember also, that in time critical operations, that the order of 
execution IS the order of the addf list section in your hal file(s). 
That can be used in reverse to advantage for certain functions, such as 
filtering an A/B/X encoders quadrature errors by doing a running average 
of the last 4 edges to go by.  This, when applied to the spindle 
encoders output, allows higher Pgain in the spindle PID, stiffening the 
speed vs load considerably on those machines that I have spindle 
encoders in.

> On 4/24/2016 2:07 AM, Philipp Burch wrote:
> > Hi Danny!
> >
> > On 24.04.2016 08:37, Danny Miller wrote:
> >> [...]
> >>
> >> So I need like an edge detector that provides only a pulse for one
> >> cycle when the button is pressed.  That seems simple enough, but I
> >> don't see any HAL construct which supports it.
> >>
> >> [...]
> >
> > There is an "edge" component, which should do just what you need:
> > http://linuxcnc.org/docs/2.6/html/man/man9/edge.9.html
> >
> > Bye,
> > Philipp
> >
> >
> >
> > --------------------------------------------------------------------
> >---------- Find and fix application performance issues faster with
> > Applications Manager Applications Manager provides deep performance
> > insights into multiple tiers of your business applications. It
> > resolves application problems quickly and reduces your MTTR. Get
> > your free trial!
> > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> >
> >
> > _______________________________________________
> > Emc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
> ----------------------------------------------------------------------
>-------- Find and fix application performance issues faster with
> Applications Manager Applications Manager provides deep performance
> insights into multiple tiers of your business applications. It
> resolves application problems quickly and reduces your MTTR. Get your
> free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to