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
Notification Show More
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

Upload Option Disabled in Siemens PLC
PLC based Automatic Packaging System
Safety Considerations in PLC System Design
Motor Speed Control using VFD and PLC Programming
What are High-Speed Counters and Fast Counters in PLC?
The Purpose of Marshalling Cabinet or Marshalling Panel
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

Learn PLC in Hindi
How Does Redundant Power Supply Work?
PLC Tag Naming Conventions
Electrical Cabinet Air Conditioner – Enclosure Cooling, Maintenance
Cisco CCNP R&S : All Actual Information About This Certification
VFD Commissioning and Testing Procedure (Variable Frequency Drive)
Yokogawa DCS and SIS System Architecture
Vendor Document for Project Systems Architecture

Keep Learning

Automatic bending machine for exhaust pipe

PLC Logic for Automatic Bending Machine for Exhaust Pipe

OpenPLC - PLC Training for Students - Free Tutorials & Courses

OpenPLC – PLC Training for Students – Free Tutorials & Courses

Shutdown Motors in Timed Operation PLC Program

Shutdown Motors in Timed Operation PLC Program

Design Counters in PLC Programming With a Move Instruction

Design Counters in PLC Programming With a Move Instruction

Siemens S7 300 CPU Status and LED Errors Explanation

Siemens S7 300 CPU Status and LED Errors Explanation

Understanding the Scan Cycle of SIEMENS PLC

Understanding the Scan Cycle of SIEMENS PLC

Contextual HMI

What is Contextual HMI? – HMI Screens on a Mobile or Tablet

FBD Logic

Why different PLC Programming Languages were Developed?

Learn More

D’Arsonval Movement

D’Arsonval Meter Movement

oxygen Safety Analyzer

Oxygen Safety Analyzer

SCR Full Bridge Converter

Power Electronics – Full-wave Rectifier With R and RL Load

Electronic Devices & Circuits Objective Questions

Electronic Devices & Circuits Quiz – Set 2

Essential Dorm Room Items Every Student Should Get

The Dorm Room Essentials And Why You Need Them

Electrical Equipment Selection in Hazardous Area

Hazardous Areas in Industry – Electrical Equipment Selection

Types of Industrial Storage Batteries

Types of Industrial Storage Batteries

simple motor start-stop circuit

Liquid Level Switch Control Logic

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?