- Posts: 175
- Thank you received: 0
connecting a soft button to bob pin 17
2 years 2 months ago #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',
</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',
</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
Please Log in to join the conversation.
2 years 2 months ago #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
Please Log in to join the conversation.
2 years 2 months ago #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
Please Log in to join the conversation.
2 years 2 months ago #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 to join the conversation.
2 years 2 months ago #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 to join the conversation.
Time to create page: 0.082 seconds
