- Posts: 486
- Thank you received: 0
XHC-HB04 wireless MPG pendant HAL module
11 years 5 months ago #58485
by dgarrett
Replied by dgarrett on topic XHC-HB04 wireless MPG pendant HAL module
The LinuxCNC 2.6 xhc-hb04.tcl script provide a lowpass filter (README: coefs)
With no filtering (coefs=1 1 1 1), and axis acceleration=20 (inch units),
the velocity and acceleration will have high frequency content: (oops, circled wrong item,
this is with coef=1 (Current = 1)):
With filtering (coefs= 0.01 ...), the velocity is smoothed but the acceleration
will still be very high in frequency.
In LinuxCNC 2.7, xhc-hb04.tcl provides a new option to limit the acceleration
while jogging and the behavior is much improved for machines with high accelerations.
Ref: git.linuxcnc.org/gitweb?p=linuxcnc.git;a...b52bfd9ccedb44f0926b
With no filtering (coefs=1 1 1 1), and axis acceleration=20 (inch units),
the velocity and acceleration will have high frequency content: (oops, circled wrong item,
this is with coef=1 (Current = 1)):
Attachment not found
With filtering (coefs= 0.01 ...), the velocity is smoothed but the acceleration
will still be very high in frequency.
Attachment not found
In LinuxCNC 2.7, xhc-hb04.tcl provides a new option to limit the acceleration
while jogging and the behavior is much improved for machines with high accelerations.
Attachment not found
Ref: git.linuxcnc.org/gitweb?p=linuxcnc.git;a...b52bfd9ccedb44f0926b
Please Log in to join the conversation.
11 years 5 months ago #58492
by rythmnbls
Replied by rythmnbls on topic XHC-HB04 wireless MPG pendant HAL module
I played with the filtering co-efficients, but I couldn't really detect any difference, so my next question is after looking ( very quickly ) at the changes in the 2.7 tcl scripts, is there any reason why I couldn't attempt to backport / hack the mpg_accel stuff into a 2.6 config or does it rely on lower level binary support ?
Regards,
Steve.
Regards,
Steve.
Please Log in to join the conversation.
11 years 5 months ago #58499
by dgarrett
You could try but their are numerous changes and the organization of the
xhc-hb04 demos has changed considerably:
1) The user-space driver (xhc-hb04.cc) has a few changes which
are intended to be backwards compatible.
2) The helper scripts (monitor-xhc-hb04, xhc-hb04-accels (new) were
relocated to /usr/bin/)
3) The xhc-hb04.tcl script was relocated to /usr/share/linuxcnc/hallib/
4) The linuxcnc starting script (linuxcnc) now supports a search using
HALLIB_DIR (/usr/share/linuxcnc/hallib)
5) The xhc-hb04 demo ini files are now separated into multiple parts
using the #INCLUDE directive
6) The pendant helper comp (xhc_hb04_util.so) updated
7) man pages and the .txt files and README file in the demo dir updated
These are what I remember, there may be more. It would probably be much simpler
to become a tester/user of 2.7. (see the README and .txt files in the configs/axis/sim/xhc-hb04
directory for updates on the demo configs)
The 2.7 branch has been through 6 prereleases (beginning with 3f5e5a5 2014-04-07)
and has a number of new features -- see the changelog entries for 2.7.0~pre1-6
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...an/changelog;hb=HEAD
Debs are available from the buildbot, for instructions see:
buildbot.linuxcnc.org/
or get debs directly with wget from: buildbot.linuxcnc.org/dists/
Some info on upgrading from 2.6 to 2.7:
www.linuxcnc.org/docs/2.7/html/getting-s...l#_updating_linuxcnc
See Section 4.2 for some additional information on updating a config
Replied by dgarrett on topic XHC-HB04 wireless MPG pendant HAL module
is there any reason why I couldn't attempt to backport / hack the mpg_accel stuff into a 2.6 config or does it rely on lower level binary support ?
You could try but their are numerous changes and the organization of the
xhc-hb04 demos has changed considerably:
1) The user-space driver (xhc-hb04.cc) has a few changes which
are intended to be backwards compatible.
2) The helper scripts (monitor-xhc-hb04, xhc-hb04-accels (new) were
relocated to /usr/bin/)
3) The xhc-hb04.tcl script was relocated to /usr/share/linuxcnc/hallib/
4) The linuxcnc starting script (linuxcnc) now supports a search using
HALLIB_DIR (/usr/share/linuxcnc/hallib)
5) The xhc-hb04 demo ini files are now separated into multiple parts
using the #INCLUDE directive
6) The pendant helper comp (xhc_hb04_util.so) updated
7) man pages and the .txt files and README file in the demo dir updated
These are what I remember, there may be more. It would probably be much simpler
to become a tester/user of 2.7. (see the README and .txt files in the configs/axis/sim/xhc-hb04
directory for updates on the demo configs)
The 2.7 branch has been through 6 prereleases (beginning with 3f5e5a5 2014-04-07)
and has a number of new features -- see the changelog entries for 2.7.0~pre1-6
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...an/changelog;hb=HEAD
Debs are available from the buildbot, for instructions see:
buildbot.linuxcnc.org/
or get debs directly with wget from: buildbot.linuxcnc.org/dists/
Some info on upgrading from 2.6 to 2.7:
www.linuxcnc.org/docs/2.7/html/getting-s...l#_updating_linuxcnc
See Section 4.2 for some additional information on updating a config
Please Log in to join the conversation.
11 years 5 months ago #58500
by rythmnbls
Replied by rythmnbls on topic XHC-HB04 wireless MPG pendant HAL module
Thanks for your reply, I tried a quick attempt but I think I'm missing stuff from xhc_hb04_util.comp as it complained about pin muxing on startup.
Specifically in the multiplexer for ini.N.max_acceleration code addition.
I also have to revise my earlier statements, after messing around with the coeffs a bit more, I found that I didn't need to lower the feed override nearly as much to get smooth operation, so it does work quite well on 2.6. For now I'm happy to wait till 2.7 is released. Thanks again for your halscope pics, they were quite enlightening.
Regards.
Steve
Specifically in the multiplexer for ini.N.max_acceleration code addition.
I also have to revise my earlier statements, after messing around with the coeffs a bit more, I found that I didn't need to lower the feed override nearly as much to get smooth operation, so it does work quite well on 2.6. For now I'm happy to wait till 2.7 is released. Thanks again for your halscope pics, they were quite enlightening.
Regards.
Steve
Please Log in to join the conversation.
11 years 5 months ago #58927
by julesgf
Replied by julesgf on topic XHC-HB04 wireless MPG pendant HAL module
Hi All
I'm running 2.7.0-pre6 on Ubuntu 12.04 (updated from 10.04) happily. I have a 16 button HB04 which I'm trying to get running.
I've been able to get as far as the jog wheel jogging in LinuxCNC, however, 90% of the jog wheel "jogs" are not being registered by linuxCNC.
If I run the built in driver at /usr/bin i get:
cnc@cnc-desktop:/usr/local/bin$ /usr/bin/xhc-hb04
Creating pin: xhc-hb04.x.pos-absolute
<snip>
Creating pin: xhc-hb04.jog.minus-a
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
04 00 00 11 01 0C delta +1
04 00 00 11 01 0C delta +1
04 00 00 11 00 0C
.................
it "works" however while it is "working" I can see that it is registering all the button presses but only ~10% of the jogs.
if I run the driver that I've compiled from the v06 driver at /usr/local/bin I get:
cnc@cnc-desktop:/usr/local/bin$ /usr/local/bin/xhc-hb04
Creating pin: xhc-hb04.x.pos-absolute
<snip>
Creating pin: xhc-hb04.jog.minus-a
waiting for XHC-HB04 device
found XHC-HB04 device
Segmentation fault (core dumped)
cnc@cnc-desktop:/usr/local/bin$
I'm well past my understanding of linux here so any ideas would be very much appreciated.
JF
I'm running 2.7.0-pre6 on Ubuntu 12.04 (updated from 10.04) happily. I have a 16 button HB04 which I'm trying to get running.
I've been able to get as far as the jog wheel jogging in LinuxCNC, however, 90% of the jog wheel "jogs" are not being registered by linuxCNC.
If I run the built in driver at /usr/bin i get:
cnc@cnc-desktop:/usr/local/bin$ /usr/bin/xhc-hb04
Creating pin: xhc-hb04.x.pos-absolute
<snip>
Creating pin: xhc-hb04.jog.minus-a
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
04 00 00 11 01 0C delta +1
04 00 00 11 01 0C delta +1
04 00 00 11 00 0C
.................
it "works" however while it is "working" I can see that it is registering all the button presses but only ~10% of the jogs.
if I run the driver that I've compiled from the v06 driver at /usr/local/bin I get:
cnc@cnc-desktop:/usr/local/bin$ /usr/local/bin/xhc-hb04
Creating pin: xhc-hb04.x.pos-absolute
<snip>
Creating pin: xhc-hb04.jog.minus-a
waiting for XHC-HB04 device
found XHC-HB04 device
Segmentation fault (core dumped)
cnc@cnc-desktop:/usr/local/bin$
I'm well past my understanding of linux here so any ideas would be very much appreciated.
JF
Please Log in to join the conversation.
11 years 4 months ago #59962
by cahlfors
Replied by cahlfors on topic XHC-HB04 wireless MPG pendant HAL module
Thanks to all contributors to this amazing feature!
The pendant as such is very reasonably priced, performs neatly and the sample config works nicely from the start!
It took me a while to figure out to copy the relevant sections from the sample files to my own config files and to find the proper documentation here:
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/xhc-hb04
The wiki seems outdated and contains conflicting information.
But then, I am especially slow to get it.
Other than that, as soon as there was life, it was fully functional.
My next step is to figure out how to write some code for the macro buttons. I will use them to find centers, edges etc.
Thank you very much!
/Chris
The pendant as such is very reasonably priced, performs neatly and the sample config works nicely from the start!
It took me a while to figure out to copy the relevant sections from the sample files to my own config files and to find the proper documentation here:
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/xhc-hb04
The wiki seems outdated and contains conflicting information.
But then, I am especially slow to get it.
Other than that, as soon as there was life, it was fully functional.
My next step is to figure out how to write some code for the macro buttons. I will use them to find centers, edges etc.
Thank you very much!
/Chris
Please Log in to join the conversation.
11 years 2 months ago #61605
by vre
Replied by vre on topic XHC-HB04 wireless MPG pendant HAL module
No eBay APP ID and/or Cert ID defined in Kunena configurationIs this compatible with hal component ?
Please Log in to join the conversation.
11 years 2 months ago #61611
by rythmnbls
Replied by rythmnbls on topic XHC-HB04 wireless MPG pendant HAL module
No eBay APP ID and/or Cert ID defined in Kunena configuration
It looks just like the pendant I have, which works very well.
I installed 2.7.0 pre7 and tried the mpg_accel settings. I'm very impressed, very smooth acceleration at all feed rates. Another thank you to the developers.
Steve.
Is this compatible with hal component ?
It looks just like the pendant I have, which works very well.
I installed 2.7.0 pre7 and tried the mpg_accel settings. I'm very impressed, very smooth acceleration at all feed rates. Another thank you to the developers.
Steve.
Please Log in to join the conversation.
11 years 2 months ago #61616
by cncbasher
Replied by cncbasher on topic XHC-HB04 wireless MPG pendant HAL module
No eBay APP ID and/or Cert ID defined in Kunena configuration
yes it is compatable with linuxcnc all the macros and what you need is all done
it's all shown in the examples under xhc
with all the required files and instructions to use
vre wrote: Is this compatible with hal component ?
yes it is compatable with linuxcnc all the macros and what you need is all done
it's all shown in the examples under xhc
with all the required files and instructions to use
Please Log in to join the conversation.
11 years 1 month ago #62563
by tommy
Replied by tommy on topic XHC-HB04 wireless MPG pendant HAL module
I successfully add all customization for pendant in my fresh 2.7 install, the only issue I still have is regarding halui.program.is-idle pin which is also used for timer needs.
Here is my timer code:
Debug info:
What would be the right way to get both working?
Here is my timer code:
Code:
# TIMER
loadrt time
addf time.0 servo-thread
addf not.1 servo-thread
net prog-running not.1.in <= halui.program.is-idle
net cycle-timer time.0.start <= not.1.out
net cycle-seconds pyvcp.time-seconds <= time.0.seconds
net cycle-minutes pyvcp.time-minutes <= time.0.minutes
net cycle-hours pyvcp.time-hours <= time.0.hours
Debug info:
Code:
Debug file information:
xhc-hb04.tcl: using std_start_pause_button
Can not find -sec APPLICATIONS -var DELAY -num 1
custom.hal:5: Pin 'halui.program.is-idle' was already linked to signal 'pendant:is-idle'
5312
PID TTY STAT TIME COMMAND
5386
PID TTY STAT TIME COMMAND
Stopping realtime threads
What would be the right way to get both working?
Please Log in to join the conversation.
Time to create page: 0.211 seconds
