Problem with toogle2nist component

More
5 years 11 months ago #190393 by rootboy
Try adding a toggle component to feed your toggle2nist component. The toggle component comes with a debounce delay, which sounds like what you need.

net toggle-ok toggle.1.in <= or2.1.out
net togglesig toggle2nist.0.in <= toggle.1.out
net toggleon halui.program.pause <= toggle2nist.0.on
net toggleoff halui.program.resume <= toggle2nist.0.off

Found here:

pastebin.com/NFHf6Px9

Please Log in to join the conversation.

More
1 year 11 months ago #315456 by andypugh
This should have been fixed now:
github.com/LinuxCNC/linuxcnc/commit/0bc9...000f4da3e4ba393b65c3

The new version is only in the development version of LinuxCNC at the moment.

You can install it on your own installation with:
1) Install LinuxCNC dev to get the "halcompile" tool.
Code:
sudo apt-get install linuxcnc-uspace-dev

2) Download this file and save it to your PC
raw.githubusercontent.com/LinuxCNC/linux...nts/toggle2nist.comp

3) Install it
Code:
sudo halcompile --install toggle2nist.comp

Please Log in to join the conversation.

More
1 year 9 months ago #319578 by blazini36

This should have been fixed now:
github.com/LinuxCNC/linuxcnc/commit/0bc9...000f4da3e4ba393b65c3

The new version is only in the development version of LinuxCNC at the moment.

You can install it on your own installation with:
1) Install LinuxCNC dev to get the "halcompile" tool.
Code:
sudo apt-get install linuxcnc-uspace-dev 2) Download this file and save it to your PC https://raw.githubusercontent.com/LinuxCNC/linuxcnc/refs/heads/master/src/hal/components/toggle2nist.comp 3) Install it [code]sudo halcompile --install toggle2nist.comp
[/code]
 
Problem with toggle2nist is the name of the is-on pin. Halui uses the is-on name as an output for lots of pins so it tripped me up expecting that to be an output pin. It's an input pin that absolutely must be connected to the is-on output or the component can't transition to the next state. They should have named it "on-state" or something.

Please Log in to join the conversation.

More
7 months 4 weeks ago #343717 by maxi177
Did the fixed version of toggle2nist made it to a released version of linuxcnc? I'm not really familiar with git, so I can't tell myself...

Please Log in to join the conversation.

More
7 months 3 weeks ago #343900 by andypugh
No, there hasn't been a 2.10 release, and that was the development version when my email was sent.

This is the state of the .comp in the 2.9.8 release tag.
github.com/LinuxCNC/linuxcnc/blob/v2.9.8...nts/toggle2nist.comp

(no debounce pins)

Please Log in to join the conversation.

Time to create page: 0.040 seconds
Powered by Kunena Forum