XHC-WHB04B-6 and LinuxCNC 2.9.1

More
2 years 5 months ago - 2 years 5 months ago #300619 by PCW
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1
Sounds like the whb hal (postgiu.hal?) file is not linked-in

(I usually test this kind of issue by inserting a deliberate error in the file
to make sure its being used)
Last edit: 2 years 5 months ago by PCW.

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

More
2 years 5 months ago #300620 by westhedge
Hmmm... My ini shows this:

[HAL]
HALUI = halui
HALFILE = GantryMill.hal
HALFILE = custom.hal
HALFILE = toolchanger.hal
HALFILE = xhc_whb04b_6.hal
POSTGUI_HALFILE = gmoccapy_postgui.hal
POSTGUI_HALFILE = custom_postgui.hal
SHUTDOWN = shutdown.hal

In the end, because i used pncconf to generate the GantryMill.hal file I put this in my xhc_whb04b_6.hal file:

unlinkp halui.machine.is-on
net machine.is-on whb.halui.machine.is-on halui.machine.is-on

That seems to work. Jog dial works. Need to tweak the button functions, but I'll sort that out. Cheers!

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

More
2 years 5 months ago #300622 by PCW
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1
having

net machine.is-on halui.machine.is-on
in GantryMill.hal

and

net machine.is-on whb.halui.machine.is-on
in xhc_whb04b_6.hal

would be identical

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

More
2 years 5 months ago #300623 by westhedge
I agree they *should* be identicial... weird thing is it didn't work out that way. It simply refused to work unless I put it all in the latter xhc_whb04b_6.hal file. Could be a version bug, who knows.

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

More
2 years 5 months ago #300625 by PCW
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1
That doesn't make any sense.

 It makes no difference when or from where a net command is
executed as long as the connected pins are present. 
(at least in any version of LinuxCNC I've used)


 

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

More
2 years 5 months ago #300626 by westhedge
I agree with you - it didn't make sense to me either based on my [admittedly limited] knowledge. I will do some more testing around this and document what I find.

Is it possible to see a log of what hal commands are actually executed in order on start? That might illuminate the issue.

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

Time to create page: 0.254 seconds
Powered by Kunena Forum