Basic HAL question

More
18 Jan 2022 17:43 #232303 by milu
Basic HAL question was created by milu
After upgrading to 2.9, my pendent (vista cnc) is no longer able to start or stop my spindle. I've used the HAL tools, and it looks like the correct parport pin is being toggled, but that does not seem to be happening in reality. But my question is more basic. Does HAL require that structures be declared in any way? Or are they just created when first referenced? So, in the following:

# 12---SPINDLE
net spindle.is-on halui.spindle.0.is-on =>  vc-p4s.spindle.is-on
net spindle.start  vc-p4s.spindle.start  => halui.spindle.0.start
net spindle.stop  vc-p4s.spindle.stop  => halui.spindle.0.stop

Is there a place where I would expect that spindle is defined? Or is "spindle.start" created on the fly even if there is nothing called "spindle"?

 

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

More
18 Jan 2022 19:07 #232316 by Aciera
Replied by Aciera on topic Basic HAL question
The designator (ie the word) after 'net' is an arbitrary signal-name you choose as you like, the input signal that follows on the same line is now linked to that signal-name.
The input and output pins are generated when linuxcnc is started up.

So this would work just fine:
net i_love_apples vc-p4s.spindle.start => halui.spindle.0.start

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

More
18 Jan 2022 19:58 #232323 by milu
Replied by milu on topic Basic HAL question
Thanks. What about vc-p4s.spindle.start (in your example). Is that also constructed on the fly? Or does that already have to exist?

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

Time to create page: 0.076 seconds
Powered by Kunena Forum