XHC-HB04 wireless MPG pendant HAL module

More
12 years 5 months ago #47215 by vgraves
Thanks for the confirmation. I'll see what I can get working. For the 18-button layout pendants, what's the intended purpose of the "1/2" button?

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

More
12 years 5 months ago #47216 by cncnoel
I use the 1/2 to center the controlled point on my work.

Here is the subroutine (LinuxCNC format) that I use to touch-off in the X axis & then center the controlled point.

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

More
12 years 5 months ago #47217 by cncnoel
Also...
snip from the "my-mill.ini" file for you to dissect.
Code:
[HAL] HALUI = halui HALFILE = my-mill.hal HALFILE = custom.hal HALFILE = xhc-hb04-noel.hal POSTGUI_HALFILE = custom_postgui.hal [HALUI] # add halui MDI commands here (max 64) MDI_COMMAND = o<probez> call ;#0 MDI_COMMAND = G1 X0 F1200 ;#1 MDI_COMMAND = G1 Y0 F1200 ;#2 MDI_COMMAND = G1 Z0 F1200 ;#3 MDI_COMMAND = o<x-half> call ;#4 MDI_COMMAND = o<y-half> call ;#5 MDI_COMMAND = o<z-half> call ;#6 MDI_COMMAND = G10 L20 P[#5220] X0 ;#7 MDI_COMMAND = G10 L20 P[#5220] Y0 ;#8 MDI_COMMAND = G10 L20 P[#5220] Z0 ;#9 MDI_COMMAND = G1 Z50 F1200 ;#10 MDI_COMMAND = G10 L20 P1 x0 ;#11 MDI_COMMAND = G10 L20 P1 y0 ;#12 MDI_COMMAND = G10 L20 P1 z0 ;#13

And some snips from the all- important XHX-04 hal-file!!
Code:
# GOTO ZERO button ################################################# net go0 xhc-hb04.button-goto-zero => and2.5.in0 and2.6.in0 and2.7.in0 net jog-x and2.5.in1 net jog-y and2.6.in1 net jog-z and2.7.in1 # MDI_COMMAND = G00 (X0,Y0,Z0) net go-x0 halui.mdi-command-01 <= and2.5.out net go-y0 halui.mdi-command-02 <= and2.6.out net go-z0 halui.mdi-command-03 <= and2.7.out # =HALF button ##################################################### net half0 xhc-hb04.button-half => and2.8.in0 and2.9.in0 and2.10.in0 net jog-x and2.8.in1 net jog-y and2.9.in1 net jog-z and2.10.in1

The MDI commands specified in lines similar to net go-x0 halui.mdi-command-01 must exist first!!

I hope this helps you in your journey!
I have my system beaten into shape now, and this is a fantastic pendant for CNC.
Though I still use the good ol' gamepad for large - distance jogging!

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

More
12 years 5 months ago #47219 by Muzzer
I've put this lower down on my priorities list, given that I still haven't got the basic XYZ machine running yet and should focus on that first. However, it's something I need to tackle sooner or later so I'd like to keep banging away at it in the background. This kind of reference point is dead helpful - would you mind posting the XHX-04 hal-file in its entirety? Can't pretend I'd be able to generate this kind of content currently - understanding it would be a useful start though and this looks pretty interesting!

Looks as if you have the 14 button version. I have the 18 button.

Thx!

Murray

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

More
12 years 5 months ago #47225 by cncnoel
My pendant is the 18 button wireless USB version.
I fluked it and got it working almost right away.
The only mods to the original code was to delete any reference to the A axis.
Then it was a simple matter of pulling out the correct amount of hair to
make my customized buttons work :pinch:

Next time I have my machine turned on I will attach my files here in the hopes someone
will find them useful.

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

More
12 years 5 months ago #47532 by vgraves
I am now running LinuxCNC 2.6.0-pre3. The issue with automatically switching to joint mode after an MDI command seems to have been corrected.

But now the Step button on the pendant doesn't work, even though my XHC hal file hasn't changed. So the jog wheel still functions, but the jog multiplier shown on the pendant stays at 1.

How can I tell which version of the C code is included in the 2.6 release? Is there something else I can do to debug this issue?

Van

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

Time to create page: 0.073 seconds
Powered by Kunena Forum