- Posts: 26
- Thank you received: 0
XHC-HB04 wireless MPG pendant HAL module
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 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 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 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 to join the conversation.
Thank you!
Please Log in to join the conversation.
So for the Probotix comet with 2 motors for the gantry what should I be aware of ? I don't want to damage it
Thank you
Please Log in to join the conversation.
rmagnus wrote: ISo for the Probotix comet with 2 motors for the gantry what should I be aware of ? I don't want to damage it
Are you using trivkins or gantrykins?
Does the machine start up in Joint mode?
Please Log in to join the conversation.
Where do I look for. Excuse my ignorance
Please Log in to join the conversation.
rmagnus wrote: Where do I look for. Excuse my ignorance
When you start the machine, are the axes referred to as 0,1,2,3 and do you then need to switch to World Mode after homing?
If no then you don't have a Joint Mode to worry about.
Please Log in to join the conversation.
Thank you for the help.
I had problem implementing.
I did what you suggest but got this error:
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/and2.ko': -1 File exists
xhc-hb04.hal:3: exit value: 1
xhc-hb04.hal:3: insmod failed, returned -1
See the output of 'dmesg' for more information.
2375
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
And if I comment the lone loadrt and2 count=3 I get this error.....
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
xhc-hb04.hal:52: Pin 'and2.0.in0' was already linked to signal 'switches-y1'
2076
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Please advice!
Thank you
Rodolfo
Please Log in to join the conversation.
