XHC-WHB04B-6 LinuxCNC not working

More
18 Apr 2020 20:28 #164505 by MarcoGaspar
First i use www.talla83.de/xhcwhb04b.html .... but i think that i have tested all that i find :(

I put the "sf" args and is the same error.

what file i have to rename to "xhc-whb04b-6.hall" ?

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

More
18 Apr 2020 22:47 - 30 Jun 2020 21:14 #164533 by alkabal
The driver is now integrated in 2.9 (master) from 2 days ago only.

Basically you only need to download this file : (untested wget command...)
cd your_config_directory
wget -O xhc-whb04b-6.hal https://github.com/LinuxCNC/linuxcnc/raw/master/src/hal/user_comps/xhc-whb04b-6/example-configuration.md

Edit your ini for adding
[HALUI]
MDI_COMMAND=(debug,macro0)
MDI_COMMAND=(debug,macro1)
MDI_COMMAND=(debug,macro2)
MDI_COMMAND=(debug,macro3)
MDI_COMMAND=(debug,macro4)
MDI_COMMAND=(debug,macro4)
MDI_COMMAND=(debug,macro6)
MDI_COMMAND=(debug,macro4)
MDI_COMMAND=(debug,macro8)
MDI_COMMAND=(debug,macro9)
MDI_COMMAND=(debug,macro10)
MDI_COMMAND=(debug,macro11)
MDI_COMMAND=(debug,macro12)
MDI_COMMAND=(debug,macro13)
MDI_COMMAND=(debug,macro14)
MDI_COMMAND=(debug,macro15)
MDI_COMMAND=(debug,macro16)

and add to HAL section (i think before POSTGUI_HALFILE)
HALFILE = xhc-whb04b-6.hal


For RUN IN PLACE ONLY :
sudo cp /home/pi/emc/debian/extras/lib/udev/rules.d/*.rules /etc/udev/rules.d
you need to adapt this command with your home directory name (replace /pi/) and the source folder name (replace/emc/)

Or if the rules file is missing you can try to create one and copy past the above code:
sudo nano /etc/udev/rules.d99-xhc-whb04b-6.rules
# xhc-whb04b-6 mpg pendant
ATTR{idProduct}=="eb93", ATTR{idVendor}=="10ce", MODE="666", OWNER="root", GROUP="plugdev"

Reboot computer before trying to use


Ps : maybee someone can add the needed stuff to stepconf and pncconf ??
Last edit: 30 Jun 2020 21:14 by alkabal.
The following user(s) said Thank You: pommen

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

More
19 Apr 2020 08:56 - 19 Apr 2020 09:41 #164612 by MarcoGaspar
I get the same error :(


Working now....

did chmod +x xhc-whb04b-6


Now if i put the step pot on lead position the pendant stop works, need to close axis to get it back.

loading in halrun when slect the lead position get this error: pndnt failed to interpret axis code axisCode={}
Last edit: 19 Apr 2020 09:41 by MarcoGaspar.

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

More
19 Apr 2020 10:40 #164621 by alkabal
Can you past the result or picture from

watch -n0.4 halcmd show pin whb.*


chmod +x is normally only needed with copy past binaries

i'm unsure but i hope a Run in place with sudo make setuid or a instal from buildbot do automatically the chmod +x

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

More
19 Apr 2020 11:00 #164622 by MovT


For RUN IN PLACE ONLY :
sudo cp /home/pi/emc/debian/extras/lib/udev/rules.d/*.rules /etc/udev/rules.d
you need to adapt this command with your home directory name (replace /pi/) and the source folder name (replace/emc/)


If you add confs to the udev you need to run:
udevadm control -R

to reload the confs and database.

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

More
19 Apr 2020 11:50 #164628 by alkabal
Hi

I never do this ??
Not needed after reboot ?

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

More
19 Apr 2020 12:30 #164633 by bbsr_5a
you can do a autoreload for the XHC HAL
then you do not need to reboot or stop the machne
just press the Enable XHC and it comes back up
HOW to DO
MAKE a Coustom M-code that holds the loadup Command line
Like M188
#!/bin/bash
# file to reload XHC
halcmd loadusr -W xhc-hb04 -I myini.ini -H
exit 0

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

More
19 Apr 2020 15:55 #164648 by alkabal
I suspect your knowledge is for xhc-hb04 and not for xhc-whb04b-6

I never need to disable/enable this driver pendant ???

you can do a autoreload for the XHC HAL
then you do not need to reboot or stop the machne
just press the Enable XHC and it comes back up
HOW to DO
MAKE a Coustom M-code that holds the loadup Command line
Like M188
#!/bin/bash
# file to reload XHC
halcmd loadusr -W xhc-hb04 -I myini.ini -H
exit 0

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

More
20 Apr 2020 10:00 - 20 Apr 2020 10:30 #164811 by MarcoGaspar
-Is normal have delay (about 2/3 seconds) between the coordinates from computer to pendant?

-How can i remap macro buttons to for example macro1 turn on/off the flood?


-I have stepper motors and when moving the axis with the keyboard keys, it moves smooth but when moving with pendant it is not smoothing the machine vibrates.


-When starting linuxcnc (axis) with the keyboard i can move the machine every where, but if i move with the pendant i can't move to x+ / y+ or z+...... i have to do homing first.
Attachments:
Last edit: 20 Apr 2020 10:30 by MarcoGaspar.

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

More
20 Apr 2020 22:31 - 20 Apr 2020 22:35 #164894 by alkabal
- I think no, display are not really fast, but 2 to 3 seconds seem to be too high.

- for signal that need toggle you can do this with a standard macro button but you need to use toggle2nist
linuxcnc.org/docs/html/man/man9/toggle2nist.9.html
I have try and i'm not satified even adding a debounce
linuxcnc.org/docs/html/man/man9/debounce.9.html
This is the reason for hardcoded some enhanced function like the mist/flood/lube

You can remove mist/flood/lube config (and other hardcoded function) and use regular macro button for what you want.
You can't use enhanced function with standard macro button without external trick or change source code and compiling.


- Have you tried Step/continuous mode ? different speed ? (i'm not expert but is your acceleration settings not too high ?)

- i never use keyboard for jog and never use another pendant so i can't confirm if this is normal or not.



I'm not the first authors and i don't know/understand 100% of the code... I have only rework some stuff and add more functionality (original one is from Rubien Raoul you can found the code inside Machinekit)



I'm sure more work can be done for clarifying/correcting some parts of the code.
Last edit: 20 Apr 2020 22:35 by alkabal.

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

Time to create page: 0.178 seconds
Powered by Kunena Forum