Advanced Search

Search Results (Searched for: XHC)

17 May 2024 03:00 - 17 May 2024 03:15
14 May 2024 22:48
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

There _is_ a way to test for signals with just one pin
in hal but I have forgotten how this is done...
14 May 2024 22:46

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

Looks like the error is a signal name mismatch:

pncconf uses net machine-is-on   but the XHC file uses net machine.is-on  

Twice i searched for typos and missed this... i need thicker glasses, or more sleep :)
14 May 2024 22:36

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

UGH!!!
You are 100% correct. I did not spot that variance (glasses???). OK! I can confirm hal works as expected after the edit. I am now going to go through the other errors I saw initially - I bet they are the same mismatches.
Thanks!
14 May 2024 22:29
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

Looks like the error is a signal name mismatch:

pncconf uses net machine-is-on   but the XHC file uses net machine.is-on  
14 May 2024 22:18

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

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.
14 May 2024 22:12
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

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)


 
14 May 2024 22:06

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

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.
14 May 2024 22:01
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

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
14 May 2024 21:52

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

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!
14 May 2024 21:44 - 14 May 2024 21:45
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

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)
14 May 2024 21:38

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

I think I have discovered the root of the problem:

if I do this all in JUST the WHB file:
net machine.is-on                halui.machine.is-on
net machine.is-on                whb.halui.machine.is-on

halshow shows the desired wiring.

But if I have the same exact lines in their respective separate main and WHB files, that's when the pin wiring breaks down.

So... maybe this has something to do with the way hal processes the net commands across files. I can say with certainty the two commands above on separate files = non-working WHB.
14 May 2024 21:30
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

No sure why halshow does that but halcmd prints the expected (identical) thing:

halcmd: net a hm2_7i95.0.inmux.00.input-00
halcmd: net a hm2_7i95.0.ssr.00.out-00
halcmd: show signal a
Signals:
Type                  Value  Name     (linked to)
bit                   FALSE  a
                                 <== hm2_7i95.0.inmux.00.input-00
                                 ==> hm2_7i95.0.ssr.00.out-00

(new session)


halcmd: net a  hm2_7i95.0.inmux.00.input-00  hm2_7i95.0.ssr.00.out-00
halcmd: show signal a
Signals:
Type                  Value  Name     (linked to)
bit                   FALSE  a
                                 <== hm2_7i95.0.inmux.00.input-00
                                 ==> hm2_7i95.0.ssr.00.out-00



 
14 May 2024 21:19

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

Interesting...
So If I have just this one line:
net machine.is-on whb.halui.machine.is-on halui.machine.is-on

halshow shows this for the signal:
Signals:
Type          Value  Name     (linked to)
bit           FALSE  machine.is-on
                         <== halui.machine.is-on
                         ==> whb.halui.machine.is-on

But if instead I have these 2 lines:
net machine-is-on         halui.machine.is-on
net machine.is-on         whb.halui.machine.is-on


halshow shows:
Signals:
Type Value Name (linked to)
bit FALSE machine-is-on
<== halui.machine.is-on
14 May 2024 21:19 - 14 May 2024 21:19
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

These statements are equivalent:

net a b1 b2 b3

net a b1
net a b2
net a b3

As long as 'a' is a signal and 'b1', 'b2' are pins
and you do not have more than one source pin.
Displaying 31 - 45 out of 168 results.
Time to create page: 1.026 seconds
Powered by Kunena Forum