connecting a soft button to bob pin 17

More
16 Aug 2024 12:57 - 16 Aug 2024 13:01 #307914 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
Last edit: 16 Aug 2024 13:01 by PhilipME.

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

More
16 Aug 2024 13:21 - 16 Aug 2024 13:24 #307915 by PhilipME
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
Last edit: 16 Aug 2024 13:24 by PhilipME.

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

More
16 Aug 2024 14:38 #307921 by Aciera
The following user(s) said Thank You: PhilipME

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

More
16 Aug 2024 15:06 #307927 by PhilipME
I will read and try it

Thanks

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

More
17 Aug 2024 04:47 #307991 by PhilipME

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.062 seconds
Powered by Kunena Forum