By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Example of Controlling the PLC Output using Push Buttons
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Ask
  • Courses
  • Videos
  • Q & A
  • EE
  • Measure
  • Control
  • More
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Example of Controlling the PLC Output using Push Buttons

Example of Controlling the PLC Output using Push Buttons

In this article, you will learn the fundamentals using an example of controlling the PLC output using push buttons and solenoid.

Last updated: April 12, 2024 4:41 pm
Editorial Staff
PLC Tutorials
No Comments
Share
9 Min Read
SHARE

In this article, you will learn the fundamentals using an example of controlling the PLC output using push buttons and solenoid.

Contents
PLC Output using Push ButtonsPLC Learning VideoRequired Inputs and OutputsLadder DiagramPLC Program DescriptionPLC Program Result

Important Note: The PLC logic is prepared for educational purposes and assists students and technicians in learning the fundamentals of PLC.

PLC Output using Push Buttons

Problem Statement

Design a PLC ladder logic for the following application.

We are using two push buttons to control the Solenoid.

When Push Button 1 or Push Button 2 is pressed and then released, then Solenoid will be ON.

When Push Button 1 or Push Button 2 is pressed again and then released, then Solenoid will be OFF.

PLC Learning Video

This video helps you to learn the PLC programming concepts with this example program.

Required Inputs and Outputs

Digital Inputs:

The required DI signals are listed below.

Push Button 1: I0.0

Push Button 2: I0.1

Digital Output:

The required DO signals are listed below.

Solenoid: Q0.0

Ladder Diagram

Example of Controlling the PLC Output using Push Buttons
Fig: 1

PLC Program Description

We used Schneider Electric PLC software.

In the above program, we used Normally-Open Contacts as well as Normally-Closed Contact and Memory Bits.

Normally Closed Contact is used for Memory Bit 1 in Rung 2 and Memory Bit 3 in Rung 1.

In Rung 0, 1) Push Button 1 and Push button 2 are connected in parallel, thus implementing OR Logic Gate.

Normally Open Contact is used for Push Button 1 and Push Button 2  to turn ON the Memory Bit 1.

In Rung 1:

  • Normally Open Contact is used for Memory Bit 1 and Normally Closed Contact is used for Memory Bit 3 to turn ON the Solenoid.
  • Latching is used for Solenoid so that when Memory Bit 1 turns OFF, Solenoid still remains ON.

In Rung 2:

  • Normally Closed Contact is used for Memory Bit 1 and Normally Open Contact is used for Solenoid to turn ON Memory Bit 2.
  • As Memory bit stores the data, Memory Bit 2 is used to store the data that Push Button 1 or Push Button 2 has been released.  

In Rung3:

  • Normally Open Contact is used for Memory Bit 1 to turn ON Memory Bit 3.
  • Memory Bit 2  is used to store the data when Push Button 1 or Push button 2 is pressed again.
  • Memory Bit 3 i.e. latched with Memory Bit 2 is used to turn OFF the Solenoid, So that when Memory Bit 3 turns ON in Rung 3, Normally Closed Contact used for Memory Bit 3 in Rung 1 will be in a True state and Solenoid will turn OFF. 

So, when Push Button 1 or Push Button 2 is pressed, signal will flow through it as Normally Open Contact is used for Push Button 1 and Push Button 2 in Rung 0, and Memory Bit 1 will Turn ON.

In Rung 1, the signal will flow through Memory Bit 1 as Normally Open Contact is used for it. In a false state, Normally Closed Contact used for Memory Bit 3 also passes the signal and the Solenoid will turn ON. When Push Button 1 or Push Button 2 is released, the Solenoid will remain ON as Latching is used for Solenoid in Rung 1.

When Push Button 1 or Push Button 2 is released, Normally Closed Contact used for Memory Bit 1 in Rung 2 will be false state and allow the signal to pass. Normally Open Contact Used for Solenoid in Rung 2 will also pass the signal as it is in True state and Memory Bit 2 will turn ON which is connected with memory Bit 1 and Solenoid in Rung 2.

When Memory Bit 2 will turn ON, it will store the data that Push Button 1 or Push Button 2 has been released. When Push Button 1 or Push Button 2 is pressed again, Memory Bit 2 in Rung 3 will turn OFF and store the data that Push Button 1 or Push Button 2 is pressed again, and Memory Bit 3 will turn ON i.e. latched with Memory Bit 2 in Rung 3.

So, When Memory Bit 3 turns ON in Rung 3, Normally Closed Contact used for Memory  Bit 3 in Rung 1 will be in True state and the Solenoid will turn OFF. When Push Button 1 or Push Button 2 is released again, the Solenoid will remain OFF as Normally Open Contact used for  Push Button 1 or Push Button 2 in Rung 0 will be in a false state and does not allow the signal to pass.

PLC Program Result

When Push Button 1 or Push Button 2 is PRESSED

PLC Output using Push Buttons
Fig: 2

In Rung 0, Push Button 1 and Push Button 2 are connected in parallel implementing OR Logic Gate. So, when Push Button 1 or Push Button 2 is Pressed, Memory Bit 1 will turn ON in Rung 0.

How to Connect Pushbutton Switch to Programmable Controller
Fig: 3

In Rung 1, the Solenoid will turn ON as Normally Open Contact used for Memory Bit 1 in Rung 1 will be in a True State, and Normally Closed Contact used for Memory Bit 3 will be in a false State.

When Push Button 1 or Push Button 2 is RELEASED

Output on off from a single push button
Fig: 4

When Push Button 1 or Push Button 2 is released, Memory Bit 1 will turn OFF in Rung 0 and Rung 1 but Solenoid will remain ON as Latching is used for Solenoid in Rung 1.

In Rung 2, signal will flow through Memory Bit 1 as Normally Closed Contact used for Memory Bit 1 will be in False State. Normally Open Contact used for Solenoid in Rung 2 will allow signal to pass through it as it is in True state and Memory Bit 2 will Turn ON.

When Push Button 1 or Push Button 2 is PRESSED Again (Second Press)

We are using two push buttons to control the Solenoid.
Fig: 5

Pressing Push Button 1 or Push Button 2 again will turn OFF the Solenoid because Memory Bit 1 in Rung 0, Rung 1, Rung 2 and Rung 3 will turn ON. Turning On Memory Bit 1 in Rung 3 will Turn ON Memory Bit 3 in Rung 3 and Rung 1.

PC to control PLC input logic
Fig: 6

So, Normally Closed Contact used for Memory Bit 3 in Rung 1 will be in true state and does not allow signal to pass to the Solenoid.

When Push Button 1 or Push Button 2 is RELEASED Again (Second Release)

Engineering Arena PLC Logic
Fig: 7

When Push Button 1 or Push Button 2 is released again, Solenoid will remain OFF as Normally Open Contacts used for Push Button 1 and Push Button 2 in Rung 0  will be in false state and will not pass signal to the Solenoid.

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:

  • Basic PLC Alarm Programming Example
  • Run 4 Motors Push button PLC Program
  • Start Stop of one Motor PLC program
  • PLC Automatic Control of Two Outputs
  • PLC Motor Logic with TEST Pushbuttons
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 !
How does SMPS Works? – Switched Mode Power Supply
CW and CCW Operation of Motor from Same Push button
How to Create New Project in Studio 5000?
Free Siemens PLC Training Course
PLC Wiring Questions for Technicians and Engineers
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

Recent Comments

  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers
  • anuj kapoor on DCS Program to Maintain Draft in Furnace
  • anuj kapoor on IoT based Smart Boiler Control System with Cloud PLC and SCADA

Related Articles

Structured Text in PLC: Parking Information Systems

Structured Text in PLC: Parking Information Systems

PLC Digital Inputs

PLC Digital Input and Digital Output Modules

NO NC Contact Animation

Equivalent Logic Gates using PLC Ladder Diagrams

Data Instance in PLC

Tia Portal – Different Instances of Calling a Function Block

Convert an Electrical Diagram into PLC Program

How to Convert an Electrical Diagram into PLC Program?

Design Counters in PLC Programming With a Move Instruction

Design Counters in PLC Programming With a Move Instruction

PLC Ladder Logic Door Open and Closing System

Which Language is Best for PLC Programming?

Site Commissioning Steps for PLC Programmers

Site Commissioning Steps for PLC Programmers

More Articles

Control Panels Material Take-Off (MTO)

Control Panels Material Take-Off (MTO) – Engineering Project

Calculate LRV and URV for 4-20 mA Loop-powered DP Transmitter

Calculate LRV and URV for 4-20 mA Loop-powered DP Transmitter

LBB protection relay

What is the LBB Protection Relay? (Local Breaker Backup)

Identify Instruments in Piping and instrumentation Diagram

Identify Instruments in Piping and instrumentation Diagram

p-type-semiconductor

N Type and P Type Semiconductors

PLC Karnaugh maps

How to Simplify PLC Coding Using Karnaugh Maps?

Maintenance Override Switch (MOS)

What is Maintenance Override Switch (MOS) ?

Lower Explosive Limit (LEL)

Lower Explosive Limit (LEL)

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?