Jump to content
  • Sign in to follow this  

    PLC Program for Two Way Switch Logic

       (0 reviews)

    xiangjinjiao

    This is PLC Program for Two ways switch logic for staircase light in house

    PLC Two Way Switch Logic

    In duplex type house there are ground floor and first floor and sometimes second floor also.

    Sometimes people need to go from ground floor to first floor or from first floor to ground floor by staircase provided in house.

    But in staircase there is no sunlight so people need a lamp/light to see the steps of the staircase easily.

    Here we are using a simple PLC to control this lamp using two switches, one switch at ground floor and second switch at first floor to control one lamp as shown in below figure.

    Note : we can also build the circuit using simple relays/switches also. This article only for understanding the basic concept of 2 way switch using  a PLC Ladder Logic.

    Image

    68-1.gif

    Solution

    We will solve this problem by simple automation. As shown in figure consider one simple house with one floor and staircase is provided in the house.

    Here we will set lighting system for the users to switch ON/OFF the light whether they are on bottom of the stair or at top.

    We will provide separate switch for each floor as shown in above figure.

    PLC I/O Requirements

    Digital Inputs

    • SW1 : I0.1
    • SW2 : I0.2

    Digital Outputs

    • Lamp : Q0.0

    PLC Progam for Two-way Switch

    68-2.gif

    Program Explained

    • For this application, we used S7-1200 PLC and TIA portal software for programming.
    • In above program, we have added two NO contacts of SW 1 (I0.1) and SW 2 (I0.2) in series and NC contacts of SW1 (I0.1) and SW2 (I0.2) in parallel of this series SW1 & SW2 NO Contacts.
    • If the status of the bottom switch (SW1) and status of the top switch (SW2) are same then lamp will be ON. And if either status of the bottom or top switch is different from other then lamp (Q0.0) will be OFF.
    • When lamp (Q0.0) is OFF then user can ON the lamp by changing status of any switch. Also user can turn OFF the lamp by changing the status of one of the two switches.

    Result

    68-3.gif

    Note: The above PLC Logic provided for basic idea about application of PLC for Two Way Switch Logic. The Logic is limited and not complete application.

    Sign in to follow this  


    User Feedback

    Create an account or sign in to leave a review

    You need to be a member in order to leave a review

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    There are no reviews to display.


Apply for friendship links:WhatsApp or E-mail: admin@plchmis.com
×
×
  • Create New...