How to configure a XHC-WHB04B pendant ?

More
5 years 9 months ago - 5 years 9 months ago #195046 by Nordbär
Hi all,
i have had a lot of work and no time for the hobby, now back at my CNC-machine :cheer:

First of all, i am very thankful for the great LinucCNC-system but i still struggle with the pendant:

- i downloaded and followed the instructions of Alkabal
- the XHC-pendant worked (and is very usefull), but still same issues as before
- then i compared the new ini- and hal-files with my old ones's: it is exactly the same as i have had already (as i have got and made them from original LinuxCNC V2.8 - manuals)

As i wrote in my first post and aditionally :
- you can assign Macro1- and Macro2-buttons with functions (e.g. G0 X0 Y0) but not Macro3- and Macro4-buttons ? (Macro5-button works, but not button8 ...)
- when i start LinuxCNC, the pendant is in MPG-mode (you can adjust feed with the rotary-wheel ..). Once you use the pendant, e.g. for jogging the axis, it never comes back to MPG-Mode. If you then run a gcode-programm, you get a lot of errors in LinuxCNC if you touch the rotary-wheel a bit ...
- the most anoying: sometimes the pendant works direct (immediately), sometimes with delay (choppy). for example: sometimes the gcode-programm starts on the first keystroke of the "run"-button, sometimes you need 2 or 3 strokes, sometimes you have to wait some seconds for the next stroke ...

I found a thread in Tommylight's link-collection which deals with the choppy-behavior, but it is too complex for me to understand, have to study more .. (it depends on some definitions elsewhere in LinuxCNC)

So i need more help please.
Last edit: 5 years 9 months ago by Nordbär.

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

More
5 years 9 months ago #195059 by alkabal
Hi

For button macro I don’t know for me all a do button work like others if you create the necessary mdi_command

Fie the mpg and lead mode this is a stuff I have added to this pendant, next to this a change from other github user have broken the stuff but I have rencently push a fix to GitHub, now I think we need to wait for LinuxCNC 2.8.2

Th stuff is done like this, at startup you get mpg feed mode, using con/step for jog/using lead you get spindle feed override and after using lead you get again mpg mode.
Unfortunately No button is dedicated for set the MPG mode so this is the only way.


I have also some issue with sometimes the pendant need to wait more I retry for get the correct mode (manual/mdi/teleop), unfortunately this is something not 100% clear for me.
The following user(s) said Thank You: Nordbär

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

More
5 years 9 months ago - 5 years 9 months ago #195293 by Nordbär
Hi Alkabal,

about the 'chopping' i found a workaround (wich seems easier) at this thread:
" www.cnc-aus-holz.at/index.php?thread/190...stID=22382#post22382 "

Translated with 'deepl-online' the post of Andreas :

Quotation: "I ask because I had with my XHC-WHB04-04 (4 axis variant) under LinuxCNC 2.9 with the driver available there also problems with the handwheel. In the form that the movement of the respective axis followed the rotation of the handwheel only delayed and jerky. At first I also suspected the USB connection and system problems.
But after a lot of searching in the source code and several tests I found the cause:
In the sample configuration for the handwheel (raw.githubusercontent.com/Linu.../example-configuration.md) the following signal connection is created in the section "#machine mode related signals":
net pdnt.mode.teleop whb.halui.mode.teleop halui.mode.teleop
However, the "halui.mode.teleop" signal is not set by LinuxCNC as expected by the driver and then causes timeouts/sleeps in the driver, which in turn causes the delays in transmitting the handwheel movement to LinuxCNC.
After I changed the signal connection to:
net pdnt.mode.is-manual whb.halui.mode.is-teleop
where the net "net pdnt.mode.is-manual" is defined in the example config as:
net pdnt.mode.is-manual halui.mode.is-manual whb.halui.mode.is-manual
Now the handwheel work without any problems."

So i interpretet this as and have done in my XHC...hal :
- commented out the lines starting with "net pdnt.mode.is-manual ..." and "net pdnt.mode.is-teleop ..."
- added the line "net pdnt.mode.is-manual whb.halui.mode.is-teleop"

i do not realy understand this either and perhaps it is nonsens, but it helps ! :P

Now i get 'chopping' only if i try around a lot (find out the 'modes' ...)
With 'normal' working on the CNC it reacts direct now!

Maybe this will bring us forward ;-) ,
regards, Norbert
Last edit: 5 years 9 months ago by Nordbär.
The following user(s) said Thank You: alkabal

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

More
5 years 9 months ago #195313 by alkabal
Hi

Thank you i will need to study that !

If someone can explain more what is really needed to use with pendant, i remember that i does not understand 100% the halui.mode.is-teleop behavior.

Br

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

More
5 years 9 months ago - 5 years 9 months ago #195840 by alkabal
Hi

I have try to change my config according to your information :
Code:
net pdnt.mode.is-manual halui.mode.is-manual whb.halui.mode.is-manual net pdnt.mode.is-manual whb.halui.mode.is-teleop

But like that i get any move from the pendant ??? so i did not understand why some user have issue with standard config ?

Is someone know more things about teleop ?

Or maybe this is on,ly related with XHC-WHB04-04 (4 axis variant)
Last edit: 5 years 9 months ago by alkabal.

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

More
5 years 9 months ago #195925 by andypugh
Teleop mode is jogging in XYZ space.
With trivial kinematics this looks exactly like jogging in joint mode, but is the jogging mode that applies after homing. (generally)

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

Time to create page: 0.095 seconds
Powered by Kunena Forum