Linuxcnc 2.8.2 XHC-HB04 configuration
23 Feb 2022 13:59 #235605
by jaro_p
Linuxcnc 2.8.2 XHC-HB04 configuration was created by jaro_p
Please help with setting up XHC-HB04.
I am trying to run XHC-HB04 on Linux 2.8.2. to Rpi4 with mesa 7c81 card.
The version of MPG I have is XHC-HB04-L
I followed the instructions published here:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Using_...Wireless_MPG_Pendant
I downloaded the file xhc-hb04.tcl from here:
github.com/LinuxCNC/linuxcnc/blob/master.../hallib/xhc-hb04.tcl
I placed this file in / home / pi / linuxcnc / configs / raspi-cnc / ...
When I try to run Linuxcnc I get an error message:
./xhc-hb04.hal:5: Pin 'halui.home-all' does not exist
4568
When I comment on a line:
net home halui.home-all <= xhc-hb04.button-home
in xhc-hb04.hal, I get the following error message:
./xhc-hb04.hal:9: Pin 'halui.axis.0.pos-feedback' does not exist
5180
And so it continues with the next lines.
I enclose all the files that I think are important.
Thank you in advance for every response.
I am trying to run XHC-HB04 on Linux 2.8.2. to Rpi4 with mesa 7c81 card.
The version of MPG I have is XHC-HB04-L
I followed the instructions published here:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Using_...Wireless_MPG_Pendant
I downloaded the file xhc-hb04.tcl from here:
github.com/LinuxCNC/linuxcnc/blob/master.../hallib/xhc-hb04.tcl
I placed this file in / home / pi / linuxcnc / configs / raspi-cnc / ...
When I try to run Linuxcnc I get an error message:
./xhc-hb04.hal:5: Pin 'halui.home-all' does not exist
4568
When I comment on a line:
net home halui.home-all <= xhc-hb04.button-home
in xhc-hb04.hal, I get the following error message:
./xhc-hb04.hal:9: Pin 'halui.axis.0.pos-feedback' does not exist
5180
And so it continues with the next lines.
I enclose all the files that I think are important.
Thank you in advance for every response.
Attachments:
Please Log in or Create an account to join the conversation.
23 Feb 2022 15:01 - 23 Feb 2022 15:07 #235615
by Aciera
linuxcnc.org/docs/html/man/man1/halui.1.html
Note that from 2.8 on there is a separation between 'axis' (designated with letters) and 'joints' (designated with numbers)
[edit]
I think that there is no halui.home-all pin since you have not set a homing sequence in your ini .
Replied by Aciera on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Seems to me you are using Hal commands from before Version 2.8:./xhc-hb04.hal:9: Pin 'halui.axis.0.pos-feedback' does not exist
linuxcnc.org/docs/html/man/man1/halui.1.html
Note that from 2.8 on there is a separation between 'axis' (designated with letters) and 'joints' (designated with numbers)
[edit]
I think that there is no halui.home-all pin since you have not set a homing sequence in your ini .
Last edit: 23 Feb 2022 15:07 by Aciera.
Please Log in or Create an account to join the conversation.
23 Feb 2022 20:34 #235648
by jaro_p
Replied by jaro_p on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Thank you, can you tell me what such a home-sequence in an .ini file should look like?
Please Log in or Create an account to join the conversation.
25 Feb 2022 07:23 #235768
by jaro_p
Replied by jaro_p on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Homing for individual axes works without problems. Something needs to be adjusted for the homing all function. Unfortunately, I don't know what and how. But that probably won't be the main problem, I think.
When I comment on a line:
net home halui.home-all <= xhc-hb04.button-home
After the reboot, linuxcnc reports an error in the following line:
net pos-x halui.axis.0.pos-feedback => xhc-hb04.x.pos-absolute
And this continues with an error in the next lines when I comment on the previous one.
When I comment on a line:
net home halui.home-all <= xhc-hb04.button-home
After the reboot, linuxcnc reports an error in the following line:
net pos-x halui.axis.0.pos-feedback => xhc-hb04.x.pos-absolute
And this continues with an error in the next lines when I comment on the previous one.
Please Log in or Create an account to join the conversation.
25 Feb 2022 07:40 #235769
by phillc54
Replied by phillc54 on topic Linuxcnc 2.8.2 XHC-HB04 configuration
I think you need to specify a letter for the axis like below:
linuxcnc.org/docs/2.8/html/man/man1/halui.1.html
net pos-x halui.axis.x.pos-feedback => xhc-hb04.x.pos-absolute
linuxcnc.org/docs/2.8/html/man/man1/halui.1.html
Please Log in or Create an account to join the conversation.
25 Feb 2022 09:18 - 25 Feb 2022 09:22 #235773
by Aciera
Replied by Aciera on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Homing-Sequence:
To create a homing sequence you need to add this to the [JOINT_n] sections of the ini file:
HOME_SEQUENCE = 0
with the number (eg 0 in the above example) defining which joint will be homed first (ie 0), then the joints with sequence number 1 will be homed etc. Joints with identical sequence numbers will home at the same time.
See documentation:
linuxcnc.org/docs/2.8/html/config/ini-ho....html#_home_sequence
As for the other error:
It seems that you have copied some hal code from an earlier version of linuxcnc (ie < 2.8). So your pin names are not valid in version 2.8 anymore and you will need to adjust those as phillc54 has outlined.
To create a homing sequence you need to add this to the [JOINT_n] sections of the ini file:
HOME_SEQUENCE = 0
with the number (eg 0 in the above example) defining which joint will be homed first (ie 0), then the joints with sequence number 1 will be homed etc. Joints with identical sequence numbers will home at the same time.
See documentation:
linuxcnc.org/docs/2.8/html/config/ini-ho....html#_home_sequence
As for the other error:
It seems that you have copied some hal code from an earlier version of linuxcnc (ie < 2.8). So your pin names are not valid in version 2.8 anymore and you will need to adjust those as phillc54 has outlined.
Last edit: 25 Feb 2022 09:22 by Aciera.
Please Log in or Create an account to join the conversation.
25 Feb 2022 09:29 #235775
by jaro_p
Replied by jaro_p on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Thanks! Axis jogging is already working.
I had to comment on the lines in which the spindle speed and feedrate change is defined.
# 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
Can you please advise me what's wrong with these lines?
I had to comment on the lines in which the spindle speed and feedrate change is defined.
# 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
Can you please advise me what's wrong with these lines?
Please Log in or Create an account to join the conversation.
25 Feb 2022 09:53 - 25 Feb 2022 09:54 #235776
by Aciera
Replied by Aciera on topic Linuxcnc 2.8.2 XHC-HB04 configuration
In the 'halui' documentation linked above you find that in current version all the pins concerning the spindle contain the spindle number as defined in the ini. (ie 0 for SPINDLE_0)
so this:
setp halui.spindle-override.scale 0.01
would need to be:
setp halui.spindle.0.override.scale 0.01
And so on for all the relevant pins.
As for the 'halui.feed-override.' pins, I'm not sure as these should be ok. Maybe try to delete the minus '-' and retype. There have been issues with copy/pasting pin names containing minus-hyphens.
so this:
setp halui.spindle-override.scale 0.01
would need to be:
setp halui.spindle.0.override.scale 0.01
And so on for all the relevant pins.
As for the 'halui.feed-override.' pins, I'm not sure as these should be ok. Maybe try to delete the minus '-' and retype. There have been issues with copy/pasting pin names containing minus-hyphens.
Last edit: 25 Feb 2022 09:54 by Aciera.
Please Log in or Create an account to join the conversation.
28 Feb 2022 12:27 #236013
by jaro_p
Replied by jaro_p on topic Linuxcnc 2.8.2 XHC-HB04 configuration
Thank you for your answers. Unfortunately, when I correct one mistake, 10 more jump out.
It surprises me a little, because the instructions I followed were last edited on January 8, 2022. So it should be up to date.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Using_...Wireless_MPG_Pendant
It surprises me a little, because the instructions I followed were last edited on January 8, 2022. So it should be up to date.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Using_...Wireless_MPG_Pendant
Please Log in or Create an account to join the conversation.
28 Feb 2022 15:05 #236022
by Aciera
Replied by Aciera on topic Linuxcnc 2.8.2 XHC-HB04 configuration
In that document there is a large header:
"Versions of LinuxCNC older than 2.6.0"
So if you used any of the links under that header then you get old pin names that will not work in version 2.8 and up or the pins have to be edited in the way pointed out above.
"Versions of LinuxCNC older than 2.6.0"
So if you used any of the links under that header then you get old pin names that will not work in version 2.8 and up or the pins have to be edited in the way pointed out above.
Please Log in or Create an account to join the conversation.
Time to create page: 0.134 seconds