So I tried it and initially gave a very small number for the pulse width, since it just issues a halui.program.run.
It didn't work. I looked on halscope- input button and pulse were correct, halui.program.run was pulsed. But halui.program.is-running remained low. I ended up getting it to work by increasing the pulse width WAY up, to like 10ms or 100ms. If it goes on too long there's a danger it'll also register inside the next mode. e.g. a single press while running causes a pause and since it's still registering as pressed, it could cause a resume. But the numbers did work. It's working super-nice now. I'm confused why halui.program.run needs a significant width. I figured it would register the command any time the command was asserted. Danny 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
