Hi Smalla!
I have WHB04B-6 to and trying to connect to my linuxcnc 2.7.11.
* I've cloned and compiled fork (github.com/smalla/linuxcnc) - without errors, all tests ok.
* connected usb receiver
* setup rules for /etc/udev/rules.d/90-whb04b.rules
* get working from /usr/bin/whb04b and get answers form controller
Code:
at@linuxcnc:~$ /usr/bin/whb04b
Creating pin: whb04b.x.pos-absolute
...
...
Creating pin: whb04b.jog.minus-c
whb04b: waiting for whb04b device
whb04b: found whb04b device
04 DF 00 00 0D 11 02 07 MPG delta +2
04 54 00 00 0D 11 00 04
04 B5 00 00 0D 11 FF 05 MPG delta -1
04 3D 00 00 0D 11 00 05
04 9D 0F 00 0D 11 00 16
04 87 00 00 0D 11 00 07
* but when i'm trying to start LinuxCNC with config, and i'm getting duplicate component name ERROR:
Code:
Found file(REL): ./core_sim9.hal
Found file(lib): /usr/share/linuxcnc/hallib/whb04b.tcl
HAL: ERROR: duplicate component name 'whb04b'
whb04b: ERROR: hal_init failed
whb04b.tcl: loadusr whb04b:
<waitpid failed whb04b whb04b
whb04b exited without becoming ready>
Is it plugged in?
Are permissions correct?
Continuing without whb04b
Failing cmd:
loadusr -W whb04b -I /usr/share/linuxcnc/hallib/whb04b-layout1.cfg -H -x -s 3
* HALFILE = whb04b.tcl - only once in whb04b-6.ini file
Please help