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
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
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
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

SCADA Hardware and Software
What are High-Speed Inputs in PLC?
PLC Program for Controlling Sequence of Conveyors with Interlock
What is 21 CFR in SCADA and HMI Systems?
What is a PLC? – Programmable Logic Controller
PLC Ladder Logic for Sensor Scaling with Offset
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Wood Sawing and Blower System: PLC Control Design
PLC Programming: Sorting and Distribution of Boxes by Height
Difference Between Industrial Computer (IPC) and Normal Computer (PC)
How to Program PID Control in PLC with Structured Text?
Interconnection between PLC, MCC, LCP & Pumps – Video
PLC Raw Count Calculation for Pressure Transmitter
Hardwired I/O and Serial I/O – Differences Explained
Check Block Consistency Tools in Simatic Manager

Keep Learning

Boolean Algebra to PLC Logic

From Boolean Algebra to PLC Logic

100 PLC Quiz Questions

100 PLC Quiz Questions : True or False

DCS Alarm and Setpoint

Setpoints and Alarms in Control System

How to troubleshoot the PLC Hardware faults

Hardware Troubleshooting Steps for PLC Automation Systems

How to Design a Motor Faceplate in Graphics - SCADA Tutorials

How to Design a Motor Faceplate in Graphics? – SCADA Tutorials

PLC Stop - Start Circuit

Introduction to PLC Ladder Diagrams

Intrinsic Safety Barriers

Intrinsically Safe Barriers Questions and Answers

SCADA in Cloud

Cloud-Based SCADA Projects – Try Free Demo Account

Learn More

Electron Spin Resonance Questions & Answers

Electron Spin Resonance

Ladder Logic Counters Instruction

Up Counter PLC Program

Basic Configuration of Motor Operated Valve

Rotork Motor Operated Valve Basic Configuration

Basic DC Power Supply Circuit

Basic DC Power Supply Circuit

Vibration Monitoring System Troubleshooting

Vibration Monitoring System Step by Step Troubleshooting Guide

3 to 8 Line Decoder Circuit Diagram

3 to 8 Line Decoder PLC Ladder Diagram

PLC Program for Automatic Parameter initialization

PLC Program for Automatic Parameter Initialization When Power UP

PLC Ladder Logic for Demultiplexer

1 to 8 Demultiplexer PLC ladder diagram

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?