- Posts: 90
- Thank you received: 0
XHC-WHB04B-6 LinuxCNC not working
- MarcoGaspar
- Offline
- Premium Member
-
I put the "sf" args and is the same error.
what file i have to rename to "xhc-whb04b-6.hall" ?
Please Log in to join the conversation.
Basically you only need to download this file : (untested wget command...)
Edit your ini for adding
and add to HAL section (i think before POSTGUI_HALFILE)
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
Reboot computer before trying to use
Ps : maybee someone can add the needed stuff to stepconf and pncconf ??
Please Log in to join the conversation.
- MarcoGaspar
- Offline
- Premium Member
-
- Posts: 90
- Thank you received: 0
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={}
Please Log in to join the conversation.
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 to join the conversation.
alkabal wrote:
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:
to reload the confs and database.
Please Log in to join the conversation.
I never do this ??
Not needed after reboot ?
Please Log in to join the conversation.
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 to join the conversation.
I never need to disable/enable this driver pendant ???
bbsr_5a wrote: 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 to join the conversation.
- MarcoGaspar
- Offline
- Premium Member
-
- Posts: 90
- Thank you received: 0
-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.
Please Log in to join the conversation.
- 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.
Please Log in to join the conversation.
