Home / Smart Hardware

PLC two switches control one light program

time:2025-07-10 16:00:59 Smart Hardware

 The PLC is programmed with two switches to control one lamp

Two switches control one lamp PLC programming can be realized according to the switch type and functional requirements. Here are some possible programming methods:

1. If a self-locking switch is used, the program can be written as follows: detect the normally open point of the first switch, and then detect the rising edge of the second switch as a condition to trigger the lamp.

2. If you use a fail-safe switch, the situation is a little more complicated. It is possible to define a program for one switch to turn on and another to turn off, or two independent switches.

3. If you use a fail-safe switch, both switches can control the light to turn on and off. In this case, the lamp can be controlled using the normally closed of the two switches.

It should be noted that different PLC programming may be different, but the programming logic is basically the same. In addition, in order to avoid conflicts, the interlock of the other two lights can be added to the output of the lamp to ensure that when one light is on, the other two lights cannot be on.

In summary, the PLC programming of two switches controlling one lamp depends on the switch type and functional requirements. The specific programming method needs to be adjusted according to the actual situation.

《PLC two switches control one light program》 This does not represent the views of this website. If there is any infringement, please contact us to delete it.

Ranking

Digital Insights