XHC-WHB04B-6 and LinuxCNC 2.9.1

More
2 years 9 months ago - 2 years 9 months ago #290766 by CNC_Tux
In your INI file you use in the section :
[HMOT]
CARD0=hm2_7i96s.0
The Hal file looks like in the Attachment My_Machine.hal
In your Hal, so i suppose is "hm2_7i96s" this value, please change it to "[HMOT](CARD0)"

  

File Attachment:

File Name: My_Machine.hal
File Size:16.11 KB
Last edit: 2 years 9 months ago by CNC_Tux.

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

More
2 years 9 months ago #291262 by poesel
Unfortunately, that is not my problem. My hal has always used [HMOT](CARD0).

But I have another question: there is no reference to the WHB in your hal. Where did you put that?

Thanks.

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

More
2 years 9 months ago #291572 by CNC_Tux
WHB has his own hal file, this hal file will called in the ini file of your machine configuaration.

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

More
2 years 5 months ago #300578 by westhedge
I'm having the same problem as well. Seems this is a common problem with no obvious solution. Step count stays = 0 in halshow. I started with the pendant config file from linuxcnc.org/docs/stable/html/man/man1/xhc-whb04b-6.1.html  
and modified it to fix the duplicated pin mappings (there were not too many)

I've tried the [HMOT](CARD0) change suggested. That doesn't work.
I've also tried all of the various other fixes from people posting on the forum to no avail.

I can see the jog dial send messages when I run xhc-whb04b-6 -ue so I'm certain the pendant is not a dud.
However when I run xhc-whb04b-6 -p I don't see any messages from the jog dial. Is this expected?  I'm beginning to think maybe there is a bug in this version of the driver.
Linux 2.9.2 using 7i96s Relevant hal files attached.

 

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

More
2 years 5 months ago - 2 years 5 months ago #300585 by westhedge
The error below is just because I had the multiplier knob on "Lead"  Still the pendant wheel does not increment count even if it's on a valid setting.
So I just noticed when I ran xhc-whb04b-6 -ue I am getting an error I do not understand when I spin the jog dial. Maybe there is something here?

in 0x04 10 00 00 90 11 04 10 delta 144 => | 04 | 10 | | | ( ) | X( ) | 4 | 10
pndnt failed to interpret axis code feed axisCode={�}
pndnt wheel total counts {counts=0 activeCounter=0 isLeadActive=0}
Last edit: 2 years 5 months ago by westhedge.

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

More
2 years 5 months ago #300591 by westhedge
Holy. Moly.
The issue plaguing me was NOT obvious AT ALL. It turns out the issue with spindle toggle (S-ON/OFF button) not toggling (only setting "on"), E-Stop (RESET button) not working, jog dial not working, yeah, they were actually all related and it speaks to something I wish someone could explain to me about HAL pin wiring.

The facts:
I used pncconf to generate my ini and hal files. In the main hal file, it wires up (among other things)
net machine-is-on halui.machine.is-on
However, in the sample XHC WHB04B file, there is a conflicting line:
net machine.is-on                        whb.halui.machine.is-on                halui.machine.is-on
OK, says I, no problem, according to the HAL man page, signals are additive, so I changed that line to 
net machine.is-on                        whb.halui.machine.is-on
thinking that the 2 pins would be connected through the 1 common signal. That's a big nope, and for the life of me I do not understand why. (maybe someday I'll have a lightbulb moment...)
The solution: 
The key was to NOT change the sample  XHC HAL, but to comment out the net line in the main config.

That was ridiculously difficult to sort out.

Why almost everything else worked on the pendant except for the dial still makes little sense to me. e.g. if the machine is in E-Stop, why should spindle on/off be allowed? Everywhere I've worked, the E-stop is a safety device, not a "some parts are safe" device.

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

Time to create page: 0.460 seconds
Powered by Kunena Forum