XHC-HB04 integration in 2.8.4

More
24 Feb 2023 18:17 - 24 Feb 2023 19:38 #265258 by Andy123
Hi everyone.
I have XHC-HB04 pendant working for many years in ver 2.6.x and parallel port.

Now I am trying to integrate it into Mesa 7i96S setup in version 2.8.4
Mesa board is running without any issues.
I copied HB04 sections from old INI file to the new INI created by pncconf and getting error:
Pin 'halui.axis.0.pos-feedback' does not exist
    while executing
"hal net pendant:pos-x halui.axis.0.pos-feedback => xhc-hb04.x.pos-absolute"
    ("eval" body line 1)
    invoked from within
"eval hal net $args"
    (procedure "net" line 1)
    invoked from within
"net pendant:pos-$coord    halui.axis.$axno.pos-feedback  => xhc-hb04.$acoord.pos-absolute"
    (procedure "wheel_setup" line 58)
    invoked from within
"wheel_setup  $::XHC_HB04_CONFIG(jogmode)"
    (file "./xhc-hb04.tcl" line 409)
    invoked from within
"source $filename"
    invoked from within
"set result [source $filename]"
    (file "/usr/bin/haltcl" line 42)
1139

Any ideas?

Thank you
Last edit: 24 Feb 2023 19:38 by Andy123.

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

More
24 Feb 2023 19:43 #265270 by Andy123
I think I found some related post, and copy from 2.6 was mistake.
But for newbie hard to follow, it's been many years since I touched configurations.
forum.linuxcnc.org/10-advanced-configura...4-basic-setup-in-2-8
forum.linuxcnc.org/38-general-linuxcnc-q...c-hb04-configuration

Anybody can point me to step-by-step 2.8.4 directions or Wiki?

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

More
25 Feb 2023 01:58 #265300 by Andy123
I got it working in 2.8.4 using examples from discussion above.
In reality, I need a very simple setup without any mdi macros, just MPG, Start/Pause, Stop, Reset, Homing and Spindle.
Few things to mention:
- I got much better results without a lowpass filter on MPG, smooth moves.
- It was tricky to setup Start/Pause button but I found an example
- I still want to have a toggle on Spindle button. As of now it just turns it On.

Also, I believe in my old setup, MPG was working before homing, now I can't use it until homed. However, I can jog from Axis screen before homing. Any idea why? Are there different set of pins to connect?

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

More
25 Feb 2023 02:13 #265301 by tommylight

Also, I believe in my old setup, MPG was working before homing, now I can't use it until homed. However, I can jog from Axis screen before homing. Any idea why? Are there different set of pins to connect?

Probably due to new versions of LinuxCNC using distinct joints and axis, so jog.axis-x???? is not the same as jog.joint-0 anymore.
Before they were hard coded as the same thing, now any axis can have several joints with separate drives/motors, and all work as the same axis after homing.
Sorry i can not be of more help, but i never use pendants or MPG's, just a keyboard is all i need.

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

More
25 Feb 2023 13:10 #265325 by andypugh
The conversion script probably fixed your original config, but then when you added the pendant stuff, it won't have know that needed doing.

It's probably all documented somewhere, but if you understand regex all the changes that need to be made between 2.6 and 2.8 are visible in the script code:

github.com/LinuxCNC/linuxcnc/blob/master...i/update_ini.py#L428

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

More
26 Feb 2023 02:50 #265380 by Andy123
I think I got all functions working now.
Using joint resolved MPG issue - now I can use it before homing

The conversion script probably fixed your original config

This is a clean install for 2.8.4 on a newer computer, so no script.

Thank you

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

Time to create page: 0.074 seconds
Powered by Kunena Forum