ini to HAL communication

More
5 years 7 months ago #204071 by Aciera
Replied by Aciera on topic ini to HAL communication
can you post your hal and ini?

Please Log in to join the conversation.

More
5 years 7 months ago #204074 by clive
Replied by clive on topic ini to HAL communication
Here are my HAL and ini files

Please Log in to join the conversation.

More
5 years 7 months ago #204086 by andypugh
Replied by andypugh on topic ini to HAL communication

clive wrote: 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.

Please Log in to join the conversation.

More
5 years 7 months ago #204087 by clive
Replied by clive on topic ini to HAL communication
You mean it's not my fault? Wow. :unsure:

Please Log in to join the conversation.

More
5 years 7 months ago #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 to join the conversation.

More
5 years 7 months ago #204090 by robertspark

clive wrote: 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 to join the conversation.

More
5 years 7 months ago #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:

Please Log in to join the conversation.

More
5 years 7 months ago #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 to join the conversation.

More
5 years 7 months ago #204093 by clive
Replied by clive on topic ini to HAL communication
So should this work in my HAL file ?:
Code:
# 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...

Please Log in to join the conversation.

More
5 years 7 months ago #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 to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum