connecting a soft button to bob pin 17
- PhilipME
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 14
16 Aug 2024 12:57 - 16 Aug 2024 13:01 #307914
by PhilipME
connecting a soft button to bob pin 17 was created by PhilipME
I have imaginary 3-axis machine configured using stepconf wizard
I programmed the soft button
<button>
<halpin>"bob-Pin-17"</halpin>
<text>"turn Pin-17 on"</text>
<font>;('Fixed',8)</font>
</button>
I want this button to set the output to the break out board pin 17 to true
I suppose this is the net statement goes to custom_postgui.hal file
net pin-17-on <= pyvcp.bob-Pin-17
net pin-17-on is the signal name
then if the above is correct, where do I connect the signal defined above to the physical pin 17
shall I write for example something like
net pin-17-on => parport.0.pin-17-out
if true, I think it goes to custom.hal
Many thanks
Good day
Philip
I programmed the soft button
<button>
<halpin>"bob-Pin-17"</halpin>
<text>"turn Pin-17 on"</text>
<font>;('Fixed',8)</font>
</button>
I want this button to set the output to the break out board pin 17 to true
I suppose this is the net statement goes to custom_postgui.hal file
net pin-17-on <= pyvcp.bob-Pin-17
net pin-17-on is the signal name
then if the above is correct, where do I connect the signal defined above to the physical pin 17
shall I write for example something like
net pin-17-on => parport.0.pin-17-out
if true, I think it goes to custom.hal
Many thanks
Good day
Philip
Last edit: 16 Aug 2024 13:01 by PhilipME.
Please Log in or Create an account to join the conversation.
- PhilipME
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 14
16 Aug 2024 13:21 - 16 Aug 2024 13:24 #307915
by PhilipME
Replied by PhilipME on topic connecting a soft button to bob pin 17
I think I got it
It is working now but it does not stay on (pin 17)
when I click on the soft button, and then release the mouse button , pin 17 goes back to the original state
so How can I make it permenent state change?
Thanks
It is working now but it does not stay on (pin 17)
when I click on the soft button, and then release the mouse button , pin 17 goes back to the original state
so How can I make it permenent state change?
Thanks
Last edit: 16 Aug 2024 13:24 by PhilipME.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Away
- Administrator
-
Less
More
- Posts: 4287
- Thank you received: 1899
16 Aug 2024 14:38 #307921
by Aciera
Replied by Aciera on topic connecting a soft button to bob pin 17
Maybe try a 'toggle' component:
linuxcnc.org/docs/devel/html/man/man9/toggle.9.html
linuxcnc.org/docs/devel/html/man/man9/toggle.9.html
The following user(s) said Thank You: PhilipME
Please Log in or Create an account to join the conversation.
- PhilipME
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 14
16 Aug 2024 15:06 #307927
by PhilipME
Replied by PhilipME on topic connecting a soft button to bob pin 17
I will read and try it
Thanks
Thanks
Please Log in or Create an account to join the conversation.
- PhilipME
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 14
17 Aug 2024 04:47 #307991
by PhilipME
Now the toggle is working
I realy appreciate your help
Good day
Philip
Replied by PhilipME on topic connecting a soft button to bob pin 17
Maybe try a 'toggle' component:
linuxcnc.org/docs/devel/html/man/man9/toggle.9.html
Now the toggle is working
I realy appreciate your help
Good day
Philip
Please Log in or Create an account to join the conversation.
Time to create page: 0.050 seconds