ini to HAL communication

More
29 Mar 2021 17:04 #204071 by Aciera
Replied by Aciera on topic ini to HAL communication
can you post your hal and ini?

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

More
29 Mar 2021 17:32 #204074 by clive
Replied by clive on topic ini to HAL communication
Here are my HAL and ini files
Attachments:

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

More
29 Mar 2021 18:09 #204086 by andypugh
Replied by andypugh on topic ini to HAL communication

I'm a programmer, I'm used to writing my own variable names...


As a programmer you might be interested to know that you appear to have identified a namespace clash.

The spindle.N.on (etc) signals are created by the HAL "motion" component.

linuxcnc.org/docs/2.8/html/man/man9/motion.9.html

But there is also a "spindle" HAL component that is intended to handle gear changes and spindle ramp rate control.

linuxcnc.org/docs/2.8/html/man/man9/spindle.9.html

I wish that I could blame someone else for this, but it was I who changed the names of the motion.spindle.... pins as part of the introduction of multiple spindle support, and also I who committed a HAL component for spindle gearing support that had been sat uncommitted for several years without spotting the scope for confusion.

I will add an explanatory note to the documentation for the "spindle" HAL component.

In nearly every case you would want to look at the "motion" docs to understand the "spindle" pins.
The following user(s) said Thank You: clive, Aciera

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

More
29 Mar 2021 18:14 #204087 by clive
Replied by clive on topic ini to HAL communication
You mean it's not my fault? Wow. :unsure:

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

More
29 Mar 2021 18:21 #204089 by clive
Replied by clive on topic ini to HAL communication
A long, long, time ago when I was a manager, one software engineer commented that whenever I visited his cubicle his code would stop working. :woohoo:

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

More
29 Mar 2021 18:32 #204090 by robertspark

A long, long, time ago when I was a manager, one software engineer commented that whenever I visited his cubicle his code would stop working. :woohoo:


AKA: Sea Gull visit....

when the boss flies in, dumps on you and flies off...

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

More
29 Mar 2021 18:32 - 29 Mar 2021 18:33 #204091 by Aciera
Replied by Aciera on topic ini to HAL communication
Oops, I appologize. I got that totally wrong, didn't I.

This of course is not the motion man page:

Yes that is a HAL Pin that is defined. Although it doesn't seem to be a valid hal-pin in version 2.8:

linuxcnc.org/docs/2.8/html/man/man9/spindle.9.html


rather it's this one:
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html

and here 'spindle.M.on' does of course exist.:pinch:
Last edit: 29 Mar 2021 18:33 by Aciera. Reason: Another copy/paste mistake

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

More
29 Mar 2021 18:39 #204092 by clive
Replied by clive on topic ini to HAL communication
Sea Gull visits also include flying in, eating your food and defecating all over you. I never did that.

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

More
29 Mar 2021 18:49 - 29 Mar 2021 18:50 #204093 by clive
Replied by clive on topic ini to HAL communication
So should this work in my HAL file ?:
# router configuration
net router spindle.0.on	=> parport.0.pin-17-out
setp parport.0.pin-17-out-reset 0
Do I need to make changes to the ini file too?

I'd like to get this fixed as soon as possible; the noise from the router is driving me mad...
Last edit: 29 Mar 2021 18:50 by clive.

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

More
29 Mar 2021 19:03 #204095 by Aciera
Replied by Aciera on topic ini to HAL communication
Yes, that should work. My appologies again for the confusion.

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

Time to create page: 0.095 seconds
Powered by Kunena Forum