Lighted push buttons

More
12 Jun 2021 15:59 #211873 by tcninja
Lighted push buttons was created by tcninja
Hello all,
I have a lighted switch for cycle start
I would like it to be on in auto and off while program is running and in any manual or mdi mode
What pin would give this behavior?

Thanks in advance

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

More
12 Jun 2021 19:25 #211883 by BigJohnT
Replied by BigJohnT on topic Lighted push buttons
The halui pins can be used to control the light.

linuxcnc.org/docs/2.8/html/man/man1/halui.1.html

JT

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

More
14 Jun 2021 23:01 #212068 by andypugh
Replied by andypugh on topic Lighted push buttons
Depending on the complexity you desire, this might be a job for the LUT5 HAL component. That can set a defined state of a single output bit (the light) for any combination of 5 input states. (mode-is-auto, program.is-running, spindle-is-on etc etc. )

Which reminds me, I should get round to doing this for my lathe. :-)
I don't think that the amber button does anything at all at the moment.
The following user(s) said Thank You: tcninja

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

More
15 Jun 2021 16:31 #212127 by tcninja
Replied by tcninja on topic Lighted push buttons
I will look into this.
Thanks

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

More
18 Jun 2021 12:24 #212323 by andypugh
Replied by andypugh on topic Lighted push buttons
Feel free to ask about LUT5, it will either be instantly intuitive or completely baffling. Depending on whether you dream in binary or not.

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

More
18 Jun 2021 12:30 #212327 by BigJohnT
Replied by BigJohnT on topic Lighted push buttons
Or you might want to look at the documents for lut5 if you don't dream in binary.

linuxcnc.org/docs/2.8/html/hal/rtcomps.html#_lut5

JT

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

Time to create page: 0.136 seconds
Powered by Kunena Forum