Problem with toogle2nist component

More
5 years 11 months ago #189269 by tommylight
You can do some quick tests to check if it "misses", just load it in a sim config and check the sates with halshow or halscope or "show hal configuration" from the machine menu.

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

More
5 years 11 months ago #190021 by Benb
Attached is a cartoon showing similar hal file to toggle2nist with couple of interlocks to prevent signal racing. I have not tested this configuration, but its start.

File Attachment:

File Name: toggle1.hal
File Size:2.29 KB

Your browser does not support embedded PDFs. Please download the file here: Download PDF.

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

More
5 years 11 months ago #190023 by cmorley
you could compile a new component and try your fix to see if it helps.
linuxcnc.org/docs/devel/html/hal/comp.ht...side_the_source_tree

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

More
5 years 11 months ago #190367 by mwinterm
@cmorley: Thanks for the link, that is exactly what I'm currently looking into (once I find a little more time again...)

@Benb: that is also very nice work, even though I try to keep the logical programming in the HAL file to a minimum (I'm more a higher level language coder... ;-). However you have made a very nice schemata. Do you have a tool to create this directly from the *.hal file?

Best regards,

Marc

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

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

Time to create page: 0.068 seconds
Powered by Kunena Forum