I Have this tower light (red, orange, green) for a cnc machine i'm using and i'm trying to figure out a way to reset a loop when the light changes from orange (busy) to green (ready) basically when it's green i want to start a 3 min timer and ring an alarm once it's up. If a job is ran within that time the loop is reset. Currently the lights work with a Orange, Green, Red wire (+), Black wire (-) so the controller sends a +v to orange and black is always hooked up to (-v). is there any way to be in the middle and detect that voltage on specific wires and trigger the loop reset ? as far as voltage go it's +24v.
Not sure i understand. i'm not trying to turn on or off a light, thats already handled. What i'm trying to do is detect when voltage is going through a specific wire maybe with a relay ? and when that happens I would like to reset a timer. Basically if the machine is IDLE for more than X amount of time I'd like to ring an alarm.