Linuxcnc 2.8.2 XHC-HB04 configuration
01 Mar 2022 09:24 #236083
by jaro_p
Replied by jaro_p on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Current Version of LinuxCNC
The xhc-hb04 driver and a sample config are included in LinuxCNC versions starting with 2.6.0. There is no need to download and compile the driver.There's nothing here to say that the configuration isn't valid ... or am I wrong?
The xhc-hb04 driver and a sample config are included in LinuxCNC versions starting with 2.6.0. There is no need to download and compile the driver.There's nothing here to say that the configuration isn't valid ... or am I wrong?
Please Log in or Create an account to join the conversation.
01 Mar 2022 13:01 #236107
by andypugh
Replied by andypugh on topic Linuxcnc 2.8.2 XHC-HB04 configuration
I wonder if perhaps you do not have any halui pins because halui is not loading?
Does your INI file contain "HALUI = halui" in the [HAL] section?
linuxcnc.org/docs/2.8/html/config/ini-config.html#_hal_section
Does your INI file contain "HALUI = halui" in the [HAL] section?
linuxcnc.org/docs/2.8/html/config/ini-config.html#_hal_section
Please Log in or Create an account to join the conversation.
01 Mar 2022 13:11 - 01 Mar 2022 13:38 #236109
by Aciera
Replied by Aciera on topic Linuxcnc 2.8.2 XHC-HB04 configuration
I'm not suggesting that you need to download a driver. The problem is the outdated pinnames in your xhc-hb04.hal. Can you point out where you got this code from:
[edit]
Halui seems to be declared correctly in the .ini:
Warning: Spoiler!
loadusr -W xhc-hb04 -I xhc-hb04-layout2.ini -H
# Home button
#net home halui.home-all <= xhc-hb04.button-home
#net home xhc-hb04.button-home => halui.home.activate
# Absolute position LCD
net pos-x halui.axis.0.pos-feedback => xhc-hb04.x.pos-absolute
net pos-y halui.axis.1.pos-feedback => xhc-hb04.y.pos-absolute
net pos-z halui.axis.2.pos-feedback => xhc-hb04.z.pos-absolute
net pos-a halui.axis.3.pos-feedback => xhc-hb04.a.pos-absolute
# Relative position LCD
net pos-rel-x halui.axis.0.pos-relative => xhc-hb04.x.pos-relative
net pos-rel-y halui.axis.1.pos-relative => xhc-hb04.y.pos-relative
net pos-rel-z halui.axis.2.pos-relative => xhc-hb04.z.pos-relative
net pos-rel-a halui.axis.3.pos-relative => xhc-hb04.a.pos-relative
# Jog wheel and axis selection button
net jog-x axis.0.jog-enable <= xhc-hb04.jog.enable-x
net jog-y axis.1.jog-enable <= xhc-hb04.jog.enable-y
net jog-z axis.2.jog-enable <= xhc-hb04.jog.enable-z
net jog-a axis.3.jog-enable <= xhc-hb04.jog.enable-a
net jog-scale xhc-hb04.jog.scale => axis.0.jog-scale axis.1.jog-scale axis.2.jog-scale axis.3.jog-scale
net jog-counts xhc-hb04.jog.counts => axis.0.jog-counts axis.1.jog-counts axis.3.jog-counts
net jog-counts-neg xhc-hb04.jog.counts-neg => axis.2.jog-counts
net jog-speed halui.jog-speed <= halui.max-velocity.value
# Wheel for feedrate and spindle
setp halui.feed-override.scale 0.01
net jog-counts => halui.feed-override.counts
net jog-feed halui.feed-override.count-enable <= xhc-hb04.jog.enable-feed-override
net jog-feed2 halui.feed-override.value => xhc-hb04.feed-override
setp halui.spindle-override.scale 0.01
net jog-counts => halui.spindle-override.counts
net jog-spindle halui.spindle-override.count-enable <= xhc-hb04.jog.enable-spindle-override
net jog-spindle2 halui.spindle-override.value => xhc-hb04.spindle-override
net spindle-rps motion.spindle-speed-cmd-rps => xhc-hb04.spindle-rps
# RESET/ESTOP button
net estop xhc-hb04.button-reset => halui.estop.activate
# X=0, Y=0, Z=0
net x0 halui.mdi-command-06 xhc-hb04.button-x0
net y0 halui.mdi-command-07 xhc-hb04.button-y0
net z0 halui.mdi-command-08 xhc-hb04.button-z0
net origin halui.mdi-command-09 xhc-hb04.button-goto-zero
# Home button
#net home halui.home-all <= xhc-hb04.button-home
#net home xhc-hb04.button-home => halui.home.activate
# Absolute position LCD
net pos-x halui.axis.0.pos-feedback => xhc-hb04.x.pos-absolute
net pos-y halui.axis.1.pos-feedback => xhc-hb04.y.pos-absolute
net pos-z halui.axis.2.pos-feedback => xhc-hb04.z.pos-absolute
net pos-a halui.axis.3.pos-feedback => xhc-hb04.a.pos-absolute
# Relative position LCD
net pos-rel-x halui.axis.0.pos-relative => xhc-hb04.x.pos-relative
net pos-rel-y halui.axis.1.pos-relative => xhc-hb04.y.pos-relative
net pos-rel-z halui.axis.2.pos-relative => xhc-hb04.z.pos-relative
net pos-rel-a halui.axis.3.pos-relative => xhc-hb04.a.pos-relative
# Jog wheel and axis selection button
net jog-x axis.0.jog-enable <= xhc-hb04.jog.enable-x
net jog-y axis.1.jog-enable <= xhc-hb04.jog.enable-y
net jog-z axis.2.jog-enable <= xhc-hb04.jog.enable-z
net jog-a axis.3.jog-enable <= xhc-hb04.jog.enable-a
net jog-scale xhc-hb04.jog.scale => axis.0.jog-scale axis.1.jog-scale axis.2.jog-scale axis.3.jog-scale
net jog-counts xhc-hb04.jog.counts => axis.0.jog-counts axis.1.jog-counts axis.3.jog-counts
net jog-counts-neg xhc-hb04.jog.counts-neg => axis.2.jog-counts
net jog-speed halui.jog-speed <= halui.max-velocity.value
# Wheel for feedrate and spindle
setp halui.feed-override.scale 0.01
net jog-counts => halui.feed-override.counts
net jog-feed halui.feed-override.count-enable <= xhc-hb04.jog.enable-feed-override
net jog-feed2 halui.feed-override.value => xhc-hb04.feed-override
setp halui.spindle-override.scale 0.01
net jog-counts => halui.spindle-override.counts
net jog-spindle halui.spindle-override.count-enable <= xhc-hb04.jog.enable-spindle-override
net jog-spindle2 halui.spindle-override.value => xhc-hb04.spindle-override
net spindle-rps motion.spindle-speed-cmd-rps => xhc-hb04.spindle-rps
# RESET/ESTOP button
net estop xhc-hb04.button-reset => halui.estop.activate
# X=0, Y=0, Z=0
net x0 halui.mdi-command-06 xhc-hb04.button-x0
net y0 halui.mdi-command-07 xhc-hb04.button-y0
net z0 halui.mdi-command-08 xhc-hb04.button-z0
net origin halui.mdi-command-09 xhc-hb04.button-goto-zero
[edit]
Halui seems to be declared correctly in the .ini:
[HAL]
HALUI = halui
HALFILE = raspi-cnc.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal
HALFILE = xhc-hb04.hal
HALFILE=xhc-hb04.tcl
Last edit: 01 Mar 2022 13:38 by Aciera.
Please Log in or Create an account to join the conversation.
05 Mar 2022 09:47 #236409
by jaro_p
Replied by jaro_p on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Greetings, thank you for your answers. I'm really pretty upset about it, honestly it's probably too complicated for me.
I found the configuration here on the forum:
forum.linuxcnc.org/10-advanced-configura...4-basic-setup-in-2-8
I found the configuration here on the forum:
forum.linuxcnc.org/10-advanced-configura...4-basic-setup-in-2-8
Please Log in or Create an account to join the conversation.
05 Mar 2022 10:31 #236414
by Aciera
Replied by Aciera on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Seems to me that you must have somehow got your xhc-hb04.hal confused because the file you find in the post you linked does not contain old pin names:
forum.linuxcnc.org/10-advanced-configura...c-setup-in-2-8#88980
So I would suggest you replace your current 'xhc-hb04.hal' with the file attached to the above post. forum.linuxcnc.org/media/kunena/attachments/1519/xhc-hb04.hal
Looks like you probably need the other config file as well (remove the ending .txt):
forum.linuxcnc.org/media/kunena/attachme...519/xhc-hb04-cfg.txt
Also you might want to follow the advice and replace this line in your 'raspi-cnc.hal':
#loadusr -W xhc-hb04 -I xhc-hb04-layout2.ini -H
with this:
loadusr -W xhc-hb04 -H -I xhc-hb04-cfg -s 3
Try that and report back with any errors you might get.
forum.linuxcnc.org/10-advanced-configura...c-setup-in-2-8#88980
So I would suggest you replace your current 'xhc-hb04.hal' with the file attached to the above post. forum.linuxcnc.org/media/kunena/attachments/1519/xhc-hb04.hal
Looks like you probably need the other config file as well (remove the ending .txt):
forum.linuxcnc.org/media/kunena/attachme...519/xhc-hb04-cfg.txt
Also you might want to follow the advice and replace this line in your 'raspi-cnc.hal':
#loadusr -W xhc-hb04 -I xhc-hb04-layout2.ini -H
with this:
loadusr -W xhc-hb04 -H -I xhc-hb04-cfg -s 3
Try that and report back with any errors you might get.
Please Log in or Create an account to join the conversation.
05 Mar 2022 10:49 #236415
by jaro_p
Replied by jaro_p on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Thank you for your effort, I will try as soon as possible.
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds