- Posts: 106
- Thank you received: 3
XHC-HB04 wireless MPG pendant HAL module
13 years 3 weeks ago #39764
by tommy
Replied by tommy on topic XHC-HB04 wireless MPG pendant HAL module
Didn't think of that combination ... thank you!
Please Log in or Create an account to join the conversation.
12 years 9 months ago #43116
by f1oat
Replied by f1oat on topic XHC-HB04 wireless MPG pendant HAL module
XHC-HB04 V06 is available here:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Using_...Wireless_MPG_Pendant
It integrates fixes coded by Marius and Rene:
It integrates fixes coded by Marius and Rene:
- Fix for erroneous display of negative values
- Handle USB errors
The following user(s) said Thank You: bottleworks
Please Log in or Create an account to join the conversation.
- bottleworks
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 0
12 years 9 months ago #43180
by bottleworks
Replied by bottleworks on topic XHC-HB04 wireless MPG pendant HAL module
Hi. I need some help configuring this to my 3 axis mill. I *think* I got the most basic configs entered. When trying to open up EMC, I get the following error:
When attempting to see what output each key gives, I get no feedback when pressing any keys:
Any ideas?
Code:
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.3
Machine configuration directory is '/home/bradley/linuxcnc/configs/SuperMax'
Machine configuration file is 'SuperMax.ini'
INIFILE=/home/bradley/linuxcnc/configs/SuperMax/SuperMax.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=2525
waiting for XHC-HB04 device
found XHC-HB04 device
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
xhc-hb04.hal:23: Pin 'axis.3.jog-enable' does not exist
2525
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 447.431153] I-pipe: Domain RTAI registered.
[ 447.431158] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 447.431159] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 447.431193] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 447.431194] PIPELINE layers:
[ 447.431196] fb11be20 9ac15d93 RTAI 200
[ 447.431198] c085cb20 0 Linux 100
[ 447.443525] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 447.443920] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 447.443925] RTAI[sched]: hard timer type/freq = APIC/12556305(Hz); default timing: periodic; linear timed lists.
[ 447.443927] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3214281000 hz.
[ 447.443929] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 447.443989] RTAI[usi]: enabled.
[ 447.470382] RTAI[math]: loaded.
[ 447.525567] config string '0x378 out '
[ 449.805553] RTAI[math]: unloaded.
[ 449.817581] SCHED releases registered named ALIEN RTGLBH
[ 449.848511] RTAI[malloc]: unloaded.
[ 449.948350] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 449.950022] I-pipe: Domain RTAI unregistered.
[ 449.950059] RTAI[hal]: unmounted.
When attempting to see what output each key gives, I get no feedback when pressing any keys:
Code:
CNC-Mill:~$ /usr/local/bin/xhc-hb04
Creating pin: xhc-hb04.x.pos-absolute
Creating pin: xhc-hb04.y.pos-absolute
Creating pin: xhc-hb04.z.pos-absolute
Creating pin: xhc-hb04.a.pos-absolute
Creating pin: xhc-hb04.x.pos-relative
Creating pin: xhc-hb04.y.pos-relative
Creating pin: xhc-hb04.z.pos-relative
Creating pin: xhc-hb04.a.pos-relative
Creating pin: xhc-hb04.feed-value
Creating pin: xhc-hb04.feed-override
Creating pin: xhc-hb04.spindle-rps
Creating pin: xhc-hb04.spindle-override
Creating pin: xhc-hb04.jog.enable-off
Creating pin: xhc-hb04.jog.enable-x
Creating pin: xhc-hb04.jog.enable-y
Creating pin: xhc-hb04.jog.enable-z
Creating pin: xhc-hb04.jog.enable-a
Creating pin: xhc-hb04.jog.enable-feed-override
Creating pin: xhc-hb04.jog.enable-spindle-override
Creating pin: xhc-hb04.jog.scale
Creating pin: xhc-hb04.jog.counts
Creating pin: xhc-hb04.jog.counts-neg
Creating pin: xhc-hb04.jog.velocity
Creating pin: xhc-hb04.jog.max-velocity
Creating pin: xhc-hb04.jog.increment
Creating pin: xhc-hb04.jog.plus-x
Creating pin: xhc-hb04.jog.minus-x
Creating pin: xhc-hb04.jog.plus-y
Creating pin: xhc-hb04.jog.minus-y
Creating pin: xhc-hb04.jog.plus-z
Creating pin: xhc-hb04.jog.minus-z
Creating pin: xhc-hb04.jog.plus-a
Creating pin: xhc-hb04.jog.minus-a
waiting for XHC-HB04 device
Any ideas?
Please Log in or Create an account to join the conversation.
- bottleworks
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 0
12 years 9 months ago #43181
by bottleworks
Replied by bottleworks on topic XHC-HB04 wireless MPG pendant HAL module
So, I have two of these wireless MPGs. The last results were with an HB03. Using the HB04, I am getting data returned when pressing the buttons. Any chance of the HB03 being usable? I haven't tried running EMC again to see if it now works.
Please Log in or Create an account to join the conversation.
- bottleworks
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 0
12 years 9 months ago - 12 years 9 months ago #43184
by bottleworks
Replied by bottleworks on topic XHC-HB04 wireless MPG pendant HAL module
I've attached an open office spreadsheet of the Hex replies from my HB04. It looks like I've got everything working until I configure my setup and I'm not sure where to go.
It would be nice to figure out if that HB03 can get working for another LinuxCNC machine that I'm going to setup shortly. It ended up being free, so there isn't much loss if it's incompatible.
It looks like I can't attach a SS. Here it is:
It would be nice to figure out if that HB03 can get working for another LinuxCNC machine that I'm going to setup shortly. It ended up being free, so there isn't much loss if it's incompatible.
It looks like I can't attach a SS. Here it is:
Code:
Button depressed
reset 04 17 00 00 00 1B
stop 04 16 00 00 00 1A
O ← 04 01 00 00 00 0D
start/stop 04 02 00 00 00 0E
rewind 04 03 00 00 00 0F
Probe-Z 04 04 00 00 00 08
spindle 04 0C 00 00 00 00
"=1/2" 04 06 00 00 00 0A
“=0” 04 07 00 00 00 0B
Safe-Z 04 08 00 00 00 04
L ← O 04 09 00 00 00 05
Macro-1 04 0A 00 00 00 06
Macro-2 04 0B 00 00 00 07
Macro-3 04 05 00 00 00 09
Macro-6 04 0F 00 00 00 03
Macro-7 04 10 00 00 00 1C
Step ++ 04 0D 00 00 00 01
MPG Mode 04 0E 00 00 00 02
Knob to X 04 00 00 11 00 0C
Knob to Y 04 00 00 12 00 0C
knob to Z 04 00 00 13 00 0C
knob to A 04 00 00 18 00 0C Repeated a stream
knob to spindle 04 00 00 14 00 0C
knob to feed 04 00 00 15 00 0C
knob to off 04 00 00 00 00 0C
Last edit: 12 years 9 months ago by bottleworks.
Please Log in or Create an account to join the conversation.
- bottleworks
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 0
12 years 9 months ago #43185
by bottleworks
Replied by bottleworks on topic XHC-HB04 wireless MPG pendant HAL module
Ok, I'm preliminary up and running. Sorry for all the posts.
But if anyone has any ideas on getting that HB03 to talk, please let me know!
But if anyone has any ideas on getting that HB03 to talk, please let me know!
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds