Using "parameter" in HAL program
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
29 Jan 2017 17:27 #86916
by HalaszAttila
Using "parameter" in HAL program was created 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.
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.
29 Jan 2017 18:35 #86918
by PCW
Replied by PCW on topic Using "parameter" in HAL program
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
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.
31 Jan 2017 01:55 #87028
by andypugh
Replied by andypugh on topic Using "parameter" in HAL program
"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)
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.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
31 Jan 2017 08:20 #87042
by HalaszAttila
Replied by HalaszAttila on topic Using "parameter" in HAL program
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.
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.069 seconds