Page 2 of 2

Re: Multi color led indicator light

Posted: Wed Dec 25, 2024 7:38 pm
by RogDC
Try writing out your logic for each color and the conditions required for each color. That will help with the PLC code and conditions you will need to use. If you can make a flow chart that may help with the logic parameters also.

In my example with the Light connected to NC, without both relays energized, the indicator would be yellow. If you connected to the NO terminals, the indicator light would not light until one or both relays are energized.

I may have missed it, but not certain what each color of the light would indicate.

Re: Multi color led indicator light

Posted: Wed Dec 25, 2024 7:58 pm
by jasonstewart81
Thanks for your help and response RogDC. Yeah it's frustrating. When I bought this multi color led indicator to use like a "light stack" to mount to the front of my controls enclosure, I didn't think about the fact that the color RED only uses a common wire and 24vdc wire to illuminate RED. To get the color GREEN its the same common wire and a different 24vdc wire to get GREEN. To get the color YELLOW you have to use the common wire and combine the same two wires used for RED and GREEN. I could do it with how I imagined using 2 diodes and assigning a 3rd output for the AmberLight, but like CNCSNW said, there should be a way to modify the PLC program to essentially say (If machine is idle and no program is running and not stopped or in a fault to turn on GreenLight & RedLight). Then that would send 24vdc to the two wires that would turn the led Yellow.

GreenLight = Job running
AmberLight = Machine idle
RedLight = Estop, machine stopped, fault

Re: Multi color led indicator light

Posted: Thu Dec 26, 2024 12:33 pm
by RogDC
I think you can accomplish what you want with the two relays.

If you connect both relays and have both closed, amber would illuminate. Open the Red Light relay and the green Light will illuminate, open the Green Light relay and the Red Light will illuminate. Both open no illumination.

You can always get it working with canned functions in the Wizard now for Red and Green and then work on the PLC code later for the Amber.

Re: Multi color led indicator light

Posted: Thu Dec 26, 2024 7:05 pm
by jasonstewart81
RogDC wrote: Thu Dec 26, 2024 12:33 pm I think you can accomplish what you want with the two relays.

If you connect both relays and have both closed, amber would illuminate. Open the Red Light relay and the green Light will illuminate, open the Green Light relay and the Red Light will illuminate. Both open no illumination.

You can always get it working with canned functions in the Wizard now for Red and Green and then work on the PLC code later for the Amber.
So, I'm not sure if this is what you meant originally, but I finally figured it out. It's so STUPID SIMPLE and I feel like an idiot for not seeing this before. I save having to use a 3rd output to get the "AmberLight" to show idle status. I save having to use diodes or changing the PLC program. I already wired it up and it works exactly as it should. Start a job, light turns green. Stop a job or hit e-stop, light turns red. Machine sitting idle with nothing going on, light is yellow.

Re: Multi color led indicator light

Posted: Fri Dec 27, 2024 1:01 pm
by RogDC
Glad you got it working. Your wiring is close to what I had envisioned.

Re: Multi color led indicator light

Posted: Fri Dec 27, 2024 11:16 pm
by MonsterMatt
You could daisy chain the relays with your diode setup from your original post. That way you could use only 2 relays, not edit plc and use amber.

Relay1: Assign to Red and invert
Com: 24vdc
NC: Red
NO: Com of Relay2
Relay 2: Assign to Green
Com: NO of Relay1
NC: Amber
NO: Green

That relay logic follows the description on the manual. amber (idle) = neither red (fault) nor green (job in progress)
I'd personally connect red to Relay 1 NC because you could unplug the relay board and the status would be red (fault)
https://www.centroidcnc.com/centroid_di ... df#page=11