This component does exactly what you need.
http://linuxcnc.org/docs/html/man/man9/toggle2nist.9.html
Rene
> On 25 Apr 2016, at 03:22, sam sokolik wrote:
>
> Anything halui isn't realtime. So it may be that you need a longer than
> expect pulse to have halui 'see' it.
>
> sam
>
> On 04/24/2
Anything halui isn't realtime. So it may be that you need a longer than
expect pulse to have halui 'see' it.
sam
On 04/24/2016 07:51 PM, Danny Miller wrote:
> 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
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 wor
On 24 April 2016 at 18:53, Danny Miller wrote:
> I don't see any HAL component for this. What's it take for me to write
> a new HAL component? What language are those in?
The code is C, but there is a pre-precessor that works on files in a
specific format to do most of the work.
http://linuxcnc
It's not a mechanical switch connection. The XHC pendant has a wireless
keyboard interface chip inside it. That is correctly debounced already,
your PC keyboard does not require a debounce driver installed on the PC
side to filter keypresses- that's done on the HW side. It really has to
be,
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
Perfect! Thanks!
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
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
I have the XHC-HB04 MPG, with a combined Run/Pause/Resume button, which
I find to be a smart layout. Stop is a different button.
I set this up with, basically:
1. halui.program.run = button & is_idle
2. halui.program.pause = button & is_running
3. halui.program.resume = button & is_paused
Thi