Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: PLC Program for Two Way Switch Logic
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > Guest Articles > PLC Program for Two Way Switch Logic

PLC Program for Two Way Switch Logic

Design a PLC Program for Two Way Switch Logic in staircase application. Implement equivalent PLC ladder Logic for the Light Control System.

Last updated: November 3, 2023 10:42 am
Editorial Staff
Guest Articles PLC Tutorials
2 Comments
Share
3 Min Read
SHARE

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

Contents
PLC Two Way Switch LogicImageSolutionPLC I/O RequirementsPLC Progam for Two-way SwitchProgram ExplainedResult

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

PLC Program for Two ways switch logic for staircase light

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

PLC Ladder Logic for Two Way Switch

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

PLC Two Way Switch Logic

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.

Author: Bhavesh

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • PLC Ladder Logic: Contacts and coils
  • Sequence of Conveyors with Interlock
  • Two out of Three Logic Analogy
  • Float-type Level Switch to Control a pump
  • Programmable Logic Controllers MCQ
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

Grounding or Earthing Scheme in DCS or PLC Systems
Chemical Mixing Process using PLC
Introduction to Functional Block Diagram in Studio 5000
Global Acknowledgment Instruction in Safety PLC
Traffic Lights Ladder Diagram using Timers
Top 5 Advantages of Human-Machine Interface (HMI)
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
2 Comments
  • Alisahib says:
    March 18, 2019 at 2:35 pm

    I think this LD is wrong.There must be SW1 (NO) to SW2(NC) (1st rung)
    SW2(NO) to SW1(NC)(2 nd rung)

    Reply
  • Aradhana Toppo says:
    November 28, 2019 at 12:36 pm

    I THINK IT SHOULD BE XOR GATE

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Basic PLC Alarm Programming Example
How to Train Your Maintenance Team for Industrial Automation Systems?
Jog Function in Motor Start Stop Logic using PLC
System and Local Time in PLC
PLC Memory Mapping and I/O addressing
Delta PLC Counter with Comparison
What is a Line Choke or Reactor in a VFD?
Internal Powered Modems

Keep Learning

HMI screen for operator

Auto Tiffin Box Filling Station

PLC Sequential Lights Control Example

PLC Timer Example: Sequential Control of Three Lights with Reset

PLC FBD Programming for Burglar Alarm Security System

PLC FBD Programming for Burglar Alarm Security System

Group of Induction Motors

How to Operate a Group of Induction Motors using PLC Logic?

PLC Motor Logic

Interconnection between PLC, MCC, LCP & Pumps – Video

OMRON PLC program for waste-burning automation

Waste-Burning System OMRON PLC Program Example

Single Push button to ON and OFF a Bulb using Ladder Logic

Single Push button to ON and OFF a Bulb using Ladder Logic

Faceplate in WinCC

Siemens HMI Training – Using UDTs with Faceplates

Learn More

Turbine Flow Meter

All About Turbine Meters

Piezo-electric Acceleration Measuring Device

Piezo-electric Acceleration Measuring Device

Block Diagram

Block Diagram

Industrial Internet of Things

Introduction to the Industrial Internet of Things (IIoT)

Conductivity Meter for Medium Concentration

Measurement of Impurities in Water and Steam – Power Plant

Nameplate Markings

Explosive Atmospheres & Hazardous Classification

DP-Level-Transmitter-Open-tank-calibration

Open Tank DP Level Transmitter Calibration

Flow Measurement

Continuous Flow Measurement

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?