Problem with toogle2nist component

More
27 Nov 2020 03:43 #190393 by rootboy
Replied by rootboy on topic Problem with toogle2nist component
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 or Create an account to join the conversation.

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
28 Nov 2024 12:07 #315456 by andypugh
Replied by andypugh on topic Problem with toogle2nist component
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.
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
sudo halcompile --install toggle2nist.comp

Please Log in or Create an account to join the conversation.

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
21 Jan 2025 17:22 #319578 by blazini36
Replied by blazini36 on topic Problem with toogle2nist component

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.
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 or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum