XHC-HB04 wireless MPG pendant HAL module

More
13 years 3 months ago #36645 by tommy
In HAL for pendant I have signals jog-x, jog-y, jog-z, that are telling me (with true or false) which axis I have selected with switch on pendant.
How M66 reads that out from HAL, or how to make that connection to my signals?

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

More
13 years 3 months ago #36651 by andypugh

tommy wrote: In HAL for pendant I have signals jog-x,
...
How M66 reads that out from HAL?


net jog-x motion.digital-in-00
net jog-y motion.digital-in-01
net jog-z motion.digital-in-02

(and then use M66 P0 to check if X is selected, for example)
www.linuxcnc.org/docs/html/gcode/m-code....ec:M66-Input-Control

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

More
13 years 3 months ago - 13 years 3 months ago #36657 by tommy
"=0" now works perfectly!
But there is still a BIG issue with unwanted switching to joint mode when calling subroutine trough MDI_COMMAND, and that is very very dangerous when using gantrykins (or any other)... So is there any kind of solution for that?
Maybe somehow to force halui.mode.is-teleop (or toher pin responsable for that) to be on true state after any MDI_COMMAND is executed, and make sure that it will stay in world mode.
Last edit: 13 years 3 months ago by tommy.

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

More
13 years 3 months ago #36660 by andypugh

tommy wrote: But there is still a BIG issue with unwanted switching to joint mode when calling subroutine trough MDI_COMMAND,


I tried to find out where this was happening some time ago, but didn't manage to track it down.
I did find that it happened even with no GUI at all.

Which version of LinuxCNC are you using? The next release of LinuxCNC is likely to be based on the joints_axes3 branch, which may have fixed the issue (or may not have done).
Also in ja3 is a version of gantrykins (ie one that doesn't even _have_ a joint mode) called gentrivkins.

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

More
13 years 3 months ago #36664 by tommy
I'm using 2.5.2 version.
Actually I'm not using gatrykins, but 5axiskins, I think they are behaving quite similar?

I found in this topic you mentioned set-world-mode pin which needs to be created for switching between joint/world mode ... could be that temporary solution?

www.linuxcnc.org/index.php/english/forum...-kinematics?start=10

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

More
13 years 3 months ago - 13 years 3 months ago #36743 by tommy
Now I installed 2.6.0~pre to implement set-world-mode pin, and it seems that it now works... But it occurred that there is a problem with this wireless pendant compatibility with this version, I'm receiving this when trying to start up Linuxcnc (Run In Place):

xhc-hb04: symbol lookup error: xhc-hb04: undefined symbol: _ZN7IniFile4FindEPKcS1_i
xhc-hb04-world-mode.hal:2: xhc-hb04 exited without becoming ready
Shutting down and cleaning up LinuxCNC...

Any solution for that?
Last edit: 13 years 3 months ago by tommy.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum