Lighted push buttons

More
5 years 4 months ago #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 to join the conversation.

More
5 years 4 months ago #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 to join the conversation.

More
5 years 4 months ago #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.

Please Log in to join the conversation.

More
5 years 4 months ago #212127 by tcninja
Replied by tcninja on topic Lighted push buttons
I will look into this.
Thanks

Please Log in to join the conversation.

More
5 years 4 months ago #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 to join the conversation.

More
5 years 4 months ago #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 to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum