- Configuring LinuxCNC
- Advanced Configuration
- When I implement a handwheel, the milling motor stops spinning
When I implement a handwheel, the milling motor stops spinning
- DerKlotz
- Offline
- Premium Member
-
Less
More
- Posts: 104
- Thank you received: 7
09 Apr 2026 09:21 - 09 Apr 2026 10:53 #345351
by DerKlotz
When I implement a handwheel, the milling motor stops spinning was created by DerKlotz
Hello,
When I implement the XHC-WHB04B-4 handwheel in LinuxCNC, my milling motor no longer receives a speed command via gcode file or mdi command.
I had to remove some commands from the *.hal file to prevent errors from occurring at startup. My files are attached.
When I implement the XHC-WHB04B-4 handwheel in LinuxCNC, my milling motor no longer receives a speed command via gcode file or mdi command.
I had to remove some commands from the *.hal file to prevent errors from occurring at startup. My files are attached.
Last edit: 09 Apr 2026 10:53 by DerKlotz.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17841
- Thank you received: 5221
09 Apr 2026 14:10 #345359
by PCW
Replied by PCW on topic When I implement a handwheel, the milling motor stops spinning
The hardware spindle enable can never get set:
net spindle-output => hm2_7i76e.0.7i76.0.0.spinout
net spindle-enable => hm2_7i76e.0.7i76.0.0.spinena << hardware spindle enable
net spindle-ccw => hm2_7i76e.0.7i76.0.0.spindir
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
#net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
#net spindle-enable <= spindle.0.on << but the signal is not driven
One possibility is to change:
net pdnt.spindle.is-on whb.halui.spindle.is-on spindle.0.on
To
net spindle-enable whb.halui.spindle.is-on
and uncomment this line:
#net spindle-enable <= spindle.0.on
net spindle-output => hm2_7i76e.0.7i76.0.0.spinout
net spindle-enable => hm2_7i76e.0.7i76.0.0.spinena << hardware spindle enable
net spindle-ccw => hm2_7i76e.0.7i76.0.0.spindir
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
#net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
#net spindle-enable <= spindle.0.on << but the signal is not driven
One possibility is to change:
net pdnt.spindle.is-on whb.halui.spindle.is-on spindle.0.on
To
net spindle-enable whb.halui.spindle.is-on
and uncomment this line:
#net spindle-enable <= spindle.0.on
The following user(s) said Thank You: DerKlotz
Please Log in or Create an account to join the conversation.
- DerKlotz
- Offline
- Premium Member
-
Less
More
- Posts: 104
- Thank you received: 7
09 Apr 2026 17:19 #345364
by DerKlotz
Replied by DerKlotz on topic When I implement a handwheel, the milling motor stops spinning
Thanks!
I also had to uncomment
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
and change
#net pdnt.spindle-speed-abs whb.halui.spindle-speed-cmd spindle.0.speed-out-abs # speed cmd from motion in rpm absolute #2026.04.09
net spindle-vel-cmd-rpm-abs whb.halui.spindle-speed-cmd
I also had to uncomment
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
and change
#net pdnt.spindle-speed-abs whb.halui.spindle-speed-cmd spindle.0.speed-out-abs # speed cmd from motion in rpm absolute #2026.04.09
net spindle-vel-cmd-rpm-abs whb.halui.spindle-speed-cmd
Please Log in or Create an account to join the conversation.
- DerKlotz
- Offline
- Premium Member
-
Less
More
- Posts: 104
- Thank you received: 7
10 Apr 2026 08:59 #345387
by DerKlotz
Replied by DerKlotz on topic When I implement a handwheel, the milling motor stops spinning
I'm currently working on the Probe_basic version. In the Handrad.hal and probe_basic_postgui.hal files, there are two lines that are causing problems. I’ll just copy the relevant parts here:
handrad.hal
net pdnt.program.is-idle whb.halui.program.is-idle halui.program.is-idle
net pdnt.program.is-paused whb.halui.program.is-paused halui.program.is-paused
and
postgui
#net prog-running not.0.in <= halui.program.is-idle
#net prog-paused halui.program.is-paused => time.0.pause
net cycle-timer time.0.start <= not.0.out
net cycle-seconds qtpyvcp.timerseconds.in <= time.0.seconds
net cycle-minutes qtpyvcp.timerminutes.in <= time.0.minutes
net cycle-hours qtpyvcp.timerhours.in <= time.0.hours
# *** Time items required for Probe Basic to run ***
As far as I understand, program.is-idle starts and “resets” a timer, and program.is-paused pauses the timer.
handrad.hal
net pdnt.program.is-idle whb.halui.program.is-idle halui.program.is-idle
net pdnt.program.is-paused whb.halui.program.is-paused halui.program.is-paused
and
postgui
#net prog-running not.0.in <= halui.program.is-idle
#net prog-paused halui.program.is-paused => time.0.pause
net cycle-timer time.0.start <= not.0.out
net cycle-seconds qtpyvcp.timerseconds.in <= time.0.seconds
net cycle-minutes qtpyvcp.timerminutes.in <= time.0.minutes
net cycle-hours qtpyvcp.timerhours.in <= time.0.hours
# *** Time items required for Probe Basic to run ***
As far as I understand, program.is-idle starts and “resets” a timer, and program.is-paused pauses the timer.
Please Log in or Create an account to join the conversation.
- DerKlotz
- Offline
- Premium Member
-
Less
More
- Posts: 104
- Thank you received: 7
12 Apr 2026 10:20 #345440
by DerKlotz
Replied by DerKlotz on topic When I implement a handwheel, the milling motor stops spinning
I changed the lines as follows
net program.is-idle whb.halui.program.is-idle
net program.is-paused whb.halui.program.is-paused
net program.is-idle not.0.in <= halui.program.is-idle
net program.is-paused halui.program.is-paused => time.0.pause
No errors at startup but is it right???
net program.is-idle whb.halui.program.is-idle
net program.is-paused whb.halui.program.is-paused
net program.is-idle not.0.in <= halui.program.is-idle
net program.is-paused halui.program.is-paused => time.0.pause
No errors at startup but is it right???
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- When I implement a handwheel, the milling motor stops spinning
Time to create page: 0.196 seconds