XHC-HB04 Issue: Step Interval

More
25 Jan 2015 01:58 #55312 by jorsborn
I was able to get my XHC-HB04 up and running using the wiki page. There are a few things I don't like but the major issue I am having is I am not able to change the jog step interval. It seems that every encoder step is fixed at .001". I have a 48" x 96" table and would like to jog at large intervals. The step button on the pendant seems to do nothing. I read through the 19 pages associated with the XHC-HB04 thread and didn't find anything directly addressing my problem. Any suggestions?

Please Log in or Create an account to join the conversation.

More
25 Jan 2015 15:52 - 25 Jan 2015 20:09 #55319 by ArcEye
Hi

If you read the original thread, specifically this post,

www.linuxcnc.org/lucid/index.php/english...dule?start=170#53103

the graduations of the jog should be able to be set in the ini / hal files.

There should also be an example config in the hardware specific sample configs.

If the graduations are hard coded or limited to set sequences, you would have to amend the sources, a pointer to the last commit is also on that page.

EDIT: the main file is at src/hal/user_comps/xhc-hb04.cc

regards
Last edit: 25 Jan 2015 20:09 by ArcEye.

Please Log in or Create an account to join the conversation.

More
25 Jan 2015 23:54 #55322 by jorsborn
Thanks! I see that but there are a few things which have me confused:

1) None of the sample ini files make reference to section [XHC_HB04_CONFIG], only [XHC-HB04] where the buttons are mapped.
2) It seems I must be missing some documentation on this (other than the thread). The source download makes no reference to the above nor some other settings which I have seen in this thread. For example, there is a jog-mode ini setting which I was interested in.

Please Log in or Create an account to join the conversation.

More
28 Jan 2015 09:24 #55404 by jorsborn
I've added the following to the .ini file but it doesn't help.
[XHC_HB04_CONFIG]
# sequence 1: 0.001,0.010,0.100,1.000 (mm-based machine)
# sequence 2: 0.001,0.005,0.010,0.020 (inch-based machine)
# sequence 3: 0.001,0.010,0.100
# sequence 4: 0.001,0.005,0.010,0.020,0.050,0.100
# sequence 5: 0.001,0.010,0.050,0.100,1.000
sequence = 3

Please Log in or Create an account to join the conversation.

More
28 Jan 2015 17:22 #55412 by ArcEye
Hi

I don't have one of these, so I am at an immediate disadvantage.

You say you have installed according to the wiki, but if you don't have any increments - have you?
Is your hal file the same as the one in this?
wiki.linuxcnc.org/uploads/xhc-hb04-V06.tgz

Which distro and which version of Linuxcnc are you using. Did you build the driver or was it included?
Can you attach your config files so they can be checked.

Is your pendant actually a genuine XHC with the same vendor ID etc or another Chinese knock off, there are a lot around, there are 4 listed on the wiki, only 2 with the same vendor ID?
If it isn't, the stuff in udev/rules.d may not work.

You have selected a increment config which gives a max of 0.1 increment, what does selecting config 5 do?
It was probably intended for mm but should give 1" increments.

If you don't get anything beyond the lowest 'safe default' increment, I would suspect it is not set up as it should be (or the pendant switch is U/S - probably less likely)

The pendant can be run from the commandline in simulation and hal mode, have you tested it with that?
xhc-hb04 -h in a terminal gives details

Hopefully someone who has one with a working config will chime in if you can give more info

regards

Please Log in or Create an account to join the conversation.

More
30 Jan 2015 00:59 #55454 by cncbasher
the xhc-hb04 configuration has gone through quite a few changes , so it would be nice to know which your running .
please post your full config as an archive , so that it can be easily ran , most of the changes are done through the entrys in your ini file

did you copy the added comp files and ini files to your configuration ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.393 seconds
Powered by Kunena Forum