Using "parameter" in HAL program

More
29 Jan 2017 17:27 #86916 by HalaszAttila
Hello,

just a short question. I write a HAL program right now, and I cant use component`s parameter in HAL file.
Specifically problem is with this line:

net toolHomed carousel.0.homed => not.0.in

ERROR: Pin 'carousel.0.homed' does not exist.
Carousel: linuxcnc.org/docs/html/man/man9/carousel.9.html

The homed is parameter output bit. With 'Pin' -s i have no problems.
How can i use 'parameter' as input in other components?

Best regards,
Attila.

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

More
29 Jan 2017 18:35 #86918 by PCW
You cannot connect parameters to other pins

Not sure why carousel.N.homed is a parameter though
parameters are normally just used for setup or debug status

I wonder if "carousel.0.ready" would do as a substitute

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

More
31 Jan 2017 01:55 #87028 by andypugh
"ready" is intended to be used for external connections. "homed" just reports an internal state.

If you need "homed" as a pin, you can easily change it, and recompile the comp with halcompile. (takes about 10 seconds)

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

More
31 Jan 2017 08:20 #87042 by HalaszAttila
Thanks for quick answer,

I make own Homed pin, with a flipflop, the first Ready signal sets the flipflop, and its output act as a Homed, and never resets the flipflop.

Attila.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum