xhc-hb04 basic setup in 2.8
04 Mar 2017 04:16 - 04 Mar 2017 04:19 #88980
by bevins
xhc-hb04 basic setup in 2.8 was created by bevins
I just spent some time chasing my tail trying to figure out why I couldnt get the xhc-hb04 working using some existing threads and examples as reference. Come to find out they changed the halui scheme in 2.8 because of the Joint Axes stuff. Well, I thought I would upload my config that works with the 18 button xhc-hb04 with Linuxcnc 2.8pre.
Because the forum restricts file extensions remove the .txt on the end of the cfg file.
Put the two files in your config dir.
This gets you a basic xhc-hb04 working with not all buttons. just the home all, go to 0 for X and Y
The step button works with the xyz switch and lcd screen ABS and rel dro's.
You need to add the loadusr line in your hal file or you can put it in the xhc hal file.
loadusr -W xhc-hb04 -H -I xhc-hb04-cfg -s 3
In your ini file ad these lines under the appropriate sections, re: [HAL]
[HAL]
HALFILE = xhc-hb04.hal
[HALUI]
MDI_COMMAND = G0 X0 Y0
Because the forum restricts file extensions remove the .txt on the end of the cfg file.
Put the two files in your config dir.
This gets you a basic xhc-hb04 working with not all buttons. just the home all, go to 0 for X and Y
The step button works with the xyz switch and lcd screen ABS and rel dro's.
You need to add the loadusr line in your hal file or you can put it in the xhc hal file.
loadusr -W xhc-hb04 -H -I xhc-hb04-cfg -s 3
In your ini file ad these lines under the appropriate sections, re: [HAL]
[HAL]
HALFILE = xhc-hb04.hal
[HALUI]
MDI_COMMAND = G0 X0 Y0
Last edit: 04 Mar 2017 04:19 by bevins.
The following user(s) said Thank You: depronman
Please Log in or Create an account to join the conversation.
04 Mar 2017 13:49 - 05 Mar 2017 00:18 #88988
by dgarrett
Replied by dgarrett on topic xhc-hb04 basic setup in 2.8
Users of master branch (2.8.0~pre1) would be well-advised
to read the documents on updating:
linuxcnc.org/docs/devel/html/getting-sta...dating-linuxcnc.html
For example, updates for wheel jog pins are described:
linuxcnc.org/docs/devel/html/getting-sta...se_generator_jogging
halui jog pin changes are described:
linuxcnc.org/docs/devel/html/getting-sta...linuxcnc.html#_halui
Beware that wiki information on the xhc-hb04 (and many other
topics) is unreliable.
While no one takes responsibility for updating or
maintaining the wiki, developers do try to maintain the
'updating' docs listed above. These documents may change
often during the course of master(2.8.0~pre1) development.
With respect to the xhc-hb04, both 2.7 and master have
simulation configs that require no special hardware besides
an xhc-hb04. Theseconfigs are availble using the config picker:
your_git_root_directory/configs/sim/axis/xhc-hb04/*.ini
The sim configs directory includes a README with some information on adapting
to other configurations:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...-hb04/README;hb=HEAD
The xhc-hb04 sim configs use scripts for configuration.
These are not mandatory buy may aid in testing or
configuring the device since no other hardware is needed
with a simulation configuration.
The scripts use a custom hal component that incorporates
low-pass filtering and access to other scripts that 1)
monitor disconnections of the device and 2) provide a means
to lower accelerations for jog moves which may be helpful on
large machines with high accelerations.
to read the documents on updating:
linuxcnc.org/docs/devel/html/getting-sta...dating-linuxcnc.html
For example, updates for wheel jog pins are described:
linuxcnc.org/docs/devel/html/getting-sta...se_generator_jogging
halui jog pin changes are described:
linuxcnc.org/docs/devel/html/getting-sta...linuxcnc.html#_halui
Beware that wiki information on the xhc-hb04 (and many other
topics) is unreliable.
While no one takes responsibility for updating or
maintaining the wiki, developers do try to maintain the
'updating' docs listed above. These documents may change
often during the course of master(2.8.0~pre1) development.
With respect to the xhc-hb04, both 2.7 and master have
simulation configs that require no special hardware besides
an xhc-hb04. Theseconfigs are availble using the config picker:
or direcly in the source tree at:Sample Configurations/sim/axis/xhc-hb04
your_git_root_directory/configs/sim/axis/xhc-hb04/*.ini
The sim configs directory includes a README with some information on adapting
to other configurations:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...-hb04/README;hb=HEAD
The xhc-hb04 sim configs use scripts for configuration.
These are not mandatory buy may aid in testing or
configuring the device since no other hardware is needed
with a simulation configuration.
The scripts use a custom hal component that incorporates
low-pass filtering and access to other scripts that 1)
monitor disconnections of the device and 2) provide a means
to lower accelerations for jog moves which may be helpful on
large machines with high accelerations.
Last edit: 05 Mar 2017 00:18 by dgarrett.
Please Log in or Create an account to join the conversation.
05 Mar 2017 12:45 #89037
by bevins
Replied by bevins on topic xhc-hb04 basic setup in 2.8
Thanks dgarret. Thats a great writeup. That is what is needed.
The scripts I find for a newbie is very difficult to grasp.
There is a thread someone was trying to figure out the xhc-hb04 with the exact same symptoms I was getting. It went on for a while and then someone helped him offline and he came back and said someone helped him and didn't explain what was done.
I am pretty sure it was because what was changed in 2.8pre. Your post is the first I seen it explained and can be a great time saver for someone new to Linuxcnc.
Andy help me figure it out. Thats why I posted my basic configs, to help somone having trouble with 2.8 and the xhc-hb04.
The scripts I find for a newbie is very difficult to grasp.
There is a thread someone was trying to figure out the xhc-hb04 with the exact same symptoms I was getting. It went on for a while and then someone helped him offline and he came back and said someone helped him and didn't explain what was done.
I am pretty sure it was because what was changed in 2.8pre. Your post is the first I seen it explained and can be a great time saver for someone new to Linuxcnc.
Andy help me figure it out. Thats why I posted my basic configs, to help somone having trouble with 2.8 and the xhc-hb04.
Please Log in or Create an account to join the conversation.
- lamandesigns
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 3
31 Mar 2017 22:48 #90670
by lamandesigns
Replied by lamandesigns on topic xhc-hb04 basic setup in 2.8
This was great! I used that and copied the configuration to my setup. It works like a charm! Cheers!
Please Log in or Create an account to join the conversation.
06 Mar 2018 14:26 #107037
by Desertboy
Replied by Desertboy on topic xhc-hb04 basic setup in 2.8
Thanks this has got my wheel working, fired an error about debounce so commented them out and it working. Will be back for advice on setting up the buttons but was happy to get it moving.
Please Log in or Create an account to join the conversation.
26 Jan 2020 22:29 #155864
by depronman
Replied by depronman on topic xhc-hb04 basic setup in 2.8
Firstly can I thank you, as what you posted as got be far far further than anything else I have tried so far over the last 5 weeks
I'm using version 2.9 of Linuxcnc on small Orac Lathe, as such I have no Y axis so I had to do some editing of the xhc-hb04.hal as it was complaing about Y
This all went well, but I have also had to comment out anything to do with the spindle other wise when starting linuxcnc it gave an error
Would you have any idea what I would need to do to get the spindle control working ?
The feed control works perfectly and I can use the jog wheel (when the selector is set to Feed) to vary the feed up and down, but when I set the selector to Spindle and turn the jog wheel nothing happens
Most of the buttons are also none functional - any ideas to get these working ?
Some buttons work, the Stop button works as does the Go To Zero button and the step increment button, but all others do nothing
The xhc-hb04-cfg file, should it be xhc-hb04-cfg or xhc-hb04-cfg.cfg ?
I have attached my ini file, hal file, xhc-hb04.hal and xhc-hb04-cfg
Best regards,
Paul
I'm using version 2.9 of Linuxcnc on small Orac Lathe, as such I have no Y axis so I had to do some editing of the xhc-hb04.hal as it was complaing about Y
This all went well, but I have also had to comment out anything to do with the spindle other wise when starting linuxcnc it gave an error
Would you have any idea what I would need to do to get the spindle control working ?
The feed control works perfectly and I can use the jog wheel (when the selector is set to Feed) to vary the feed up and down, but when I set the selector to Spindle and turn the jog wheel nothing happens
Most of the buttons are also none functional - any ideas to get these working ?
Some buttons work, the Stop button works as does the Go To Zero button and the step increment button, but all others do nothing
The xhc-hb04-cfg file, should it be xhc-hb04-cfg or xhc-hb04-cfg.cfg ?
I have attached my ini file, hal file, xhc-hb04.hal and xhc-hb04-cfg
Best regards,
Paul
Please Log in or Create an account to join the conversation.
27 Jan 2020 08:31 #155876
by bbsr_5a
Replied by bbsr_5a on topic xhc-hb04 basic setup in 2.8
hi i added my Mashine config with all buttons working and double click action
there is a image in the Folder that shows button behavior
there is a image in the Folder that shows button behavior
The following user(s) said Thank You: ikkuh
Please Log in or Create an account to join the conversation.
22 Oct 2021 13:17 #223918
by ikkuh
In 2.9 the spindle has a number added to it. So add a 0 and it should work (spindle.0).
Replied by ikkuh on topic xhc-hb04 basic setup in 2.8
I'm using version 2.9 of Linuxcnc
Would you have any idea what I would need to do to get the spindle control working ?
In 2.9 the spindle has a number added to it. So add a 0 and it should work (spindle.0).
Please Log in or Create an account to join the conversation.
Time to create page: 0.126 seconds