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 2 Push buttons to Control 1 Output
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 > PLC Tutorials > PLC Program for 2 Push buttons to Control 1 Output

PLC Program for 2 Push buttons to Control 1 Output

Develop a PLC program for 2 push buttons to control 1 output to turn ON or OFF as per the logic.

Last updated: June 10, 2024 3:00 pm
Editorial Staff
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

Develop a PLC program for 2 push buttons to control 1 output to turn ON or OFF as per the logic.

Contents
2 Push buttons to Control 1 OutputPLC ProgramInputs and OutputsLadder LogicProgram ExplanationSimulation ResultWhen Push Button 1 is PRESSEDWhen Push Button 1 is RELEASEDWhen Push Button 2 is PRESSEDWhen Push Button 2 is RELEASED

Note: This PLC logic is prepared for learning purposes to help users learn ladder logic programming.

2 Push buttons to Control 1 Output

Problem Statement:

Design a PLC ladder logic for the following application.

We are using two push buttons to control the output.

When Push Button 1 is Pressed and then Released, then Output will be ON.

When Push Button 2 is Pressed and then Released, then Output will be OFF.

PLC Program

This PLC program video explains the complete logic development for this problem.

PLC Program for Two Pushbuttons with One Output

Inputs and Outputs

Digital Inputs:

Push Button 1: I0.0

Push Button 2: I0.1

Digital Output:

Output: Q0.0

Memory Bit

Memory Bit: M0

Ladder Logic

PLC Program for 2 Push buttons to Control 1 Output

Program Explanation

We have used Normally Open Contacts as well Normally Closed Contact and Memory Bits.

Normally Closed Contact is used for Memory Bit in Rung0.

When Push Button 1 is pressed, Output will turn ON.

Output still remains ON, When Push Button 1 is released because of Latching used for Output in Rung0.

When Push Button 2 is pressed, Memory Bit will turn ON and Output will turn OFF as Normally Closed Contact used for Memory Bit in Rung0 will be in true state. In true state, Normally Closed Contact does not allow the signal to pass to the Output.

Output still remains OFF, when Push Button 2 is Released as Memory Bit is connected with Push Button 2 in Rung1, and Push Button 2 in Rung0 will remain in True State because Latching is used for Memory Bit in Rung1. So, Normally Closed Contact used for the Memory Bit in Rung0 also will remain in its true state and will not allow the signal to pass to the Output.

Simulation Result

Now test our logic and discuss the simulation results.

When Push Button 1 is PRESSED

PLC Program with Dual Push Button Inputs

The signal flows through Push Button 1 as it is in true state and Output will turn ON.

In a false state, Memory Bit in Rung0 also passes the signal to turn ON the Output as Normally Closed Contact is used for Memory Bit in Rung0.

When Push Button 1 is RELEASED

Two Push Buttons Single Output Logic

When Push Button I is released, Output will remain ON as Latching is used for the Output in Rung0.

When Push Button 2 is PRESSED

Two Pushbutton On-Off Control

Pressing Push Button 2 will turn OFF the Output because Memory Bits in Rung0 and Rung1 will turn ON.

So, Normally Closed Contact used for the Memory Bit in Rung0 will be in a true state and does not allow the signal to pass to the Output.

When Push Button 2 is RELEASED

Push Buttons and Output Ladder Logic

As Latching is used for Memory Bit in Rung1, when Push Button 2 is released, Output will remain OFF because Memory Bit in Rung0 and Rung1 will remain ON.

In Rung0, Normally Closed Contact in True state will not allow the signal to pass to the Output.

If you liked this article, 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 1 Push Button to Turn ON or OFF 1 Output
  • PLC Program for Gas Pressure Closed-Loop Control
  • PLC Program for Solenoid, Pilot Lamp, and Switch
  • Example of Control the PLC Output using Push Buttons
  • PLC Code to Start & Stop Motor and Pump as per Logic
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

Various Control Methods in Servo Motor Drives
Why Baud Rate is Important in Modbus Network?
Motor Feedback Fail Logic in PLC
Communicating Between Siemens PLC and Other PLC Brands
OpenPLC – PLC Training for Students – Free Tutorials & Courses
Mitsubishi PLC Programming Tutorials
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

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

Vijeo Designer software – Import and Export
Controlling of Tank Level Using Proportional Controller in PLC
Top 100+ SCADA Questions
How to Convert an Electrical Diagram into PLC Program?
PLC Sequential Operation Example Program
Medium-Level PLC Exercise for Students in Automation
PLC Functional Block Diagram for Logic Gates
ICS System Design Considerations

Keep Learning

Electrical Circuit Breaker Quiz

100 Electrical Circuit Breaker Quiz

PLC Program

PLC Program to Heat and Bend Glass Tubes

PLC Ladder Diagram program

Contacts and Coils in PLC Ladder Logic

PLC analog input scaling

PLC Analog Input Scaling

Communication between Intouch Scada and Allen Bradley PLC

Communication between InTouch Scada and Allen Bradley PLC

Run 4 Motors Sequentially from Same Push button PLC Program

Run 4 Motors Sequentially from Same Push button PLC Program

Code Simulation of Safety Circuit

Feedback Monitoring in Safety PLC

0-10 VDC to 0-20 mA Conversion

How to Convert Voltage to Current using Resistor ?

Learn More

Types of Sensors Used in Automobiles

Types of Sensors Used in Automobiles

stepper motors Animation

Fundamentals of DC Motor Animation

bus-with-spurs-topology

Different Fieldbus Network Topologies

Installation of a Control Valve

How to Install a Control Valve?

DP type Flow Transmitter Preventive Maintenance

Troubleshooting DP type Transmitter Common Problems

DC machines and Induction Machines Viva Questions & Answers

Ladder Logic for Motor Control

PLC Programming for 3 Motors control in Ladder logic

WirelessHART Principle

Wireless HART Communication Protocol Overview

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?