- Posts: 26
- Thank you received: 0
XHC-HB04 wireless MPG pendant HAL module
The pendant is working but the section for touchoff for x y and z gives me an error at line 47 of zhc-hb04.hal
saying that pin halui.mdi-command-06 does not exist, so I have no tochoff capability from the pendant.
here are the rows that I have to comment out in order to use the pendant:
# X=0, Y=0, Z=0
net x0 halui.mdi-command-06 xhc-hb04.button-x0
net y0 halui.mdi-command-07 xhc-hb04.button-y0
net z0 halui.mdi-command-08 xhc-hb04.button-z0
net origin halui.mdi-command-09 xhc-hb04.button-goto-zero
Please Log in or Create an account to join the conversation.
[HALUI]
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=G10 L20 P1 X0
MDI_COMMAND=G10 L20 P1 Y0
MDI_COMMAND=G10 L20 P1 Z0
MDI_COMMAND=G0 X0 Y0 Z0
the last 4 being the important ones , which are in order of buttons x ,y ,z goto zero
i.e command 6 through to 9 ( these in order are 0,1,2,3,4,5,6,7,8,9 )
which can be confusing starting at 0
then uncomment the rows in your xhc hal file
Please Log in or Create an account to join the conversation.
I pasted the exact MDI_COMMAND you kindly suggested, without knowing what to do with commands 0 to 5 so I left the ... after the = . Is that OK?
The goto zero button now works connected to the MDI 9
now the problem is that my pendant has no touch x , y and z buttons, instead it has a =0 button that is supposed to touch to zero the selected axis with the dial.
so the MDI 6, 7 and 8 commands dont work, if I try to uncomment the next lines it crashes....
#net x0 halui.mdi-command-06 xhc-hb04.button-x0
#net y0 halui.mdi-command-07 xhc-hb04.button-y0
#net z0 halui.mdi-command-08 xhc-hb04.button-z0
I have no idea how to make it work.
Thank you for your help!
Rodolfo
Please Log in or Create an account to join the conversation.
"But there is still a BIG issue with unwanted switching to joint mode when calling subroutine trough MDI_COMMAND"
And he with Andypough tried to fix it but I don´t know how it ended.
So I don´t know what to do next to make my =0 button work.
Thanks again
Please Log in or Create an account to join the conversation.
rmagnus wrote: "But there is still a BIG issue with unwanted switching to joint mode when calling subroutine trough MDI_COMMAND"
What sort of machine are you using? Unless you have a non-trivial kinematics loaded (like for a robot, or possibly a dual motor gantry) then you won't see that issue.
Please Log in or Create an account to join the conversation.
You will need to build a HAL config file with AND component to handle the axis selection switch.rmagnus wrote: I was reading on this same thread that Tommy managed to use his =0 button but then ran into problems when he said
"But there is still a BIG issue with unwanted switching to joint mode when calling subroutine trough MDI_COMMAND"
And he with Andypough tried to fix it but I don´t know how it ended.
So I don´t know what to do next to make my =0 button work.
Thanks again
For this pendant, use xhc-hb04-layout2.ini layout definition file
If you modify your xhc-hb04.hal file as below, it should work:
Sorry, I have no access to my machine to verify the syntax. Hope there are not too much mistakes !
Frederic.
Please Log in or Create an account to join the conversation.