Working config for xhc-whb04b-4 pendant

More
3 years 4 months ago #273592 by Rabin
Very thank you and your video. Help me so mach.

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

More
3 years 2 weeks ago - 3 years 2 weeks ago #283075 by pistrix
Thank you so much for this tutorial, Erik.

There is one thing that is bugging me and I wonder if anyone can give me a hint on how to move on:

If I start the spindle in Gmocappy GUI, it starts to rotate with 6000 RPM as specified in the GUI settings but if I start it with s-on-off button on the pendant, it starts with 100 RPM. Is there a way to start the spindle with the pendant with the same speed as specified in the Gmocappy settings or at least with an arbitrary speed?

Thank you for help.
Last edit: 3 years 2 weeks ago by pistrix.

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

More
2 years 10 months ago - 2 years 10 months ago #289433 by pistrix
After lot's of thinking, asking questions, and some logic, I managed to solve this issue using two simple steps:

- to make the pendant button s-on-off start the spindle with the same speed as the GUI button before the S word is defined, add RS274NGC_STARTUP_CODE = Sx to the [RS274NGC] section of your INI file where x are the same RPMs as specified in GUI for Spindle Starting RPM (6000, for example).

- somehow, the pendant button s-on-off starts the spindle and also increases the RPMs for about 100 RPMs. In our example, the GUI would start the spindle to 6000 RPM while the pendant would start it to 6100 RPM. To avoid this, comment the following two lines in xhc-whb04b-6.hal:

# net pdnt.spindle.increase whb.halui.spindle.increase halui.spindle.0.increase
# net pdnt.spindle.decrease whb.halui.spindle.decrease halui.spindle.0.decrease

After these modifications, pendant s-on-off starts the pendant to the same speed as the GUI and the Spindle+/Spindle- buttons work the same way as in the GUI.

I hope someone will find this useful. :)
Last edit: 2 years 10 months ago by pistrix.
The following user(s) said Thank You: Aciera

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

More
2 years 10 months ago #289449 by ewarner77
Erik (and the rest of contributors too!) - 
Thanks for all the hard work on this topic and sharing what you learned.  I'm REALLY looking forward to getting this running on my Tormach 1100 machine.  My understanding is that PathPilot is basically LinuxCNC with some customization so I'm pretty sure most of what you have found will be applicable.  However I'm stuck at square 0...  
I have followed the video and can see the wheel with the lsusb command, but the xhc-whb04b-6 command comes back with the command not found error and I can't seem to find where I can download/install the driver for the pendant.  I have been trying to find it on github, but can't seem to figure out how to get this.  I need to figure out where things are and then use the command interface in a terminal window as github doesn't seem to be playing nicely on chrome on my tormach and I really don't want to go yet one more layer deep into this multi day and numerous hour long journey... 
Any guidance at all is GREATLY appreciated.:)

Thanks!!!!

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

More
2 years 8 months ago #294015 by Halbear
Hi Erik,

Sorry to bump an old thread but I can't seem to make this work. After commenting out pin erroring lines I come back to the most common error which is like 13 or 14 containing "loadusr."

Any idea what this could indicate? The permissions file is correct, and I've been trying your steps in addition to adding the "source xhc-whb04b-6: line in custom.hal.

Running the latest 2.9 on Deb 12 with a 7i96s btw

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

More
2 years 8 months ago #294018 by smc.collins
a few weeks ago someone posted a much corrected version of this configuration, Erik left out  information
The following user(s) said Thank You: Halbear

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

Time to create page: 0.257 seconds
Powered by Kunena Forum