Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
28 Sep 2025 13:44

toggle2nist hangs when pressing an other button at the same time

Category: HAL

'toggle2nist.comp' up to and including 2.9.x has issues:
github.com/LinuxCNC/linuxcnc/pull/3193

A new version is available in master:
github.com/LinuxCNC/linuxcnc/blob/0bc97e...nts/toggle2nist.comp

which you could install into your version by downloading the new version and using
(sudo) halcompile --install toggle2nist.comp

Note that 'halcompile' requires the 'linuxcnc-dev' package to be installed

Also note that people used to work around some of the problematic 'toggle2nist' behavior by adding hal components between the momentary switch and 'toggle2nist.in'. Looking at your .in pin signal in the halscope sreenshot makes me think that you might have done that. If you use the new version make sure to directly connect the momentary switch to the .in pin.
  • juergen-home
  • juergen-home
28 Sep 2025 11:01 - 28 Sep 2025 11:17

toggle2nist hangs when pressing an other button at the same time

Category: HAL

I have this gamepad.hal as an example for my problem.
This is used with the button of a gamepad.I start a program by a button, then I can pause/resume it by another button.The third button is to stop the program.
The problem I have: If the program is started and I press pause/resume and stop at the same time, sometimes the toggle2nist_on get stucked in on state and the pause/resume will not work until I quit linuxcnc and start again. Is this a known behavior, or is something wrong in my gamepad.hal

# test for linuxcnc 2.9 2025-09-28 work
# generic china Gamepad
loadusr -W hal_input -KRAL USB Gamepad

#---------------------
# Program Stop
#---------------------
#halui.program.stop (bit, in) - pin for stopping a program
net button13  input.0.btn-base5 => halui.program.stop
#---------------------

#---------------------
# Program Start
#---------------------
net button16  input.0.btn-base4 => halui.program.run
#---------------------

#---------------------
# Program Pause on/ Pause off
#---------------------
# known bugs: if you stop  while in pause, than swich on and start program again, pause will not work.
# sometimes tog2nist_1.on stays on !

loadrt toggle names=tog_1
addf tog_1 servo-thread 1

loadrt toggle2nist names=tog2nist_1
addf tog2nist_1 servo-thread 2

net net-button-pause-trigger input.0.btn-base6 => tog_1.in  # this is the pause button
net net-button-pause tog2nist_1.in <= tog_1.out
net net-pause-is-on tog2nist_1.is-on <= halui.program.is-paused
net net-pause-off tog2nist_1.off => halui.program.resume
net net-pause-on tog2nist_1.on => halui.program.pause
#---------------------
  • Hakan
  • Hakan
28 Sep 2025 08:23 - 28 Sep 2025 09:54

(Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60

Category: Driver Boards

Do you have the errors from syslog?

I would like to see the 60fe and 60fd sdos and pdos out specifically and only the 6 mentioned PDOs in there.

Here is a document on how to use the drive in TwinCAT.
shopcdnpro.grainajz.com/category/409767/...%8D%97-%E8%8B%B1.pdf
I guess it is worthwhile to check it works there.
Displaying 13306 - 13308 out of 13308 results.
Time to create page: 0.344 seconds
Powered by Kunena Forum