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: PLC Programming for Pumping and Draining System
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 > PLC Programming for Pumping and Draining System

PLC Programming for Pumping and Draining System

Create PLC programming for pumping and draining for 20 seconds to fill the tank and then drain valve open for 10 seconds.

Last updated: April 21, 2024 4:10 pm
Editorial Staff
PLC Tutorials
1 Comment
Share
6 Min Read
SHARE

Create PLC programming for pumping and draining for 20 seconds to fill the tank and then drain valve open for 10 seconds.

Contents
Pumping and Draining SystemIndustrial Automation Solution VideosInputs/OutputsPLC ProgrammingProgram DescriptionPLC SimulationWhen the Start Push Button is pressed and releasedWhen the Stop Push Button is pressed and released

Note: These PLC programs are designed for students and professionals to learn and practice the ladder logic.

Pumping and Draining System

Problem Statement:

Design a PLC ladder logic for the following application.

We are using two Push Buttons to control the Pump and Drain valve.

When the Start Push Button is pressed and released, the Pump should run for 20 seconds to fill the tank and then the Drain Valve should Open for 10 seconds to drain the tank.

When the Stop Push Button is pressed and released, then the system will stop immediately.

Industrial Automation Solution Videos

Instrumentation Tools prepares the best-in-class industrial automation solution videos for learning purposes for students and professionals.

This video explains the ladder logic programming for pumping and draining.

Inputs/Outputs

Digital Inputs:

Start Push Button: I0.0

Stop Push Button: I0.1

Digital Outputs:

Pump: Q0.0

Drain Valve: Q0.1

PLC Programming

PLC Programming for Pumping and Draining System

Program Description

We have used Normally Open Contacts for Start Push Button(I0.0), Stop Push Button (I0.1), and Memory Bits.

We have used Normally Closed Contacts for Memory Bit 2 (M1).

In Rung 0:

  1. Normally Open Contact is used for the Start Push Button (I0.0) to Turn ON Memory Bit 1 (M0).
  2. Memory Bit 1 (M0) is latched so that when the Start Push Button (I0.0) turns OFF, Memory Bit 1 (M0) still remains ON.

 In Rung 1:

  1. Normally Open Contact is used for the Stop Push Button (I0.1) to Turn ON Memory Bit 2 (M1).
  2. Memory Bit 2 (M1) is latched so that when the Stop Push Button (I0.1) turns OFF, Memory Bit 2 (M1) still remains ON.

In Rung 2:

  1. Normally Open Contact is used for Memory Bit 1 (M0) to Turn ON the outputs Pump (Q0.0) and Drain Valve(Q0.1). 
  2. Timer TP is used to Turn ON the output Pump (Q0.0) for a limited time.
  3. Timer TON is used to delay the turning ON time of the output Drain Valve (Q0.1) for some time.
  4. Timer TP is used to Turn ON the output Drain Valve (Q0.1) for a limited time. 
  5. Normally Closed Contacts are used for Memory Bit 2 (M1) to turn OFF the output Pump (Q0.0) and Drain Valve (Q0.1).

PLC Simulation

Let’s simulate our PLC program and analyze the results. Take note that we may show part of the logic instead of complete code.

When the Start Push Button is pressed and released

When the Start Push Button (I0.0) is pressed and released,  Memory Bit 1 (M0) turns ON. Memory Bit 1 (M0) is latched so that when the Start Button (I0.0) is released, Memory Bit 1 (M0) still remains ON.

fill the tank plc program

When Memory Bit 1 (M0) turns ON in Rung0, Normally Open Contact used for Memory Bit 1 (M0) will be in True state and pass the signal through it and the output Pump (Q0.0) turns ON but for a limited time as Timer Function Block type TP is used to Turn ON the output Pump (Q0.0) for a limited time and the time set to 20 seconds.

PLC system to drain water tank

In a false state, Normally Closed Contact used for Memory Bit 2 (M1) passes the signal to turn ON the output Pump (Q0.0). So after 20 seconds, the output Pump (Q0.0) will turn OFF.

Also, when Memory Bit 1 (M0) turns ON, the output Drain Valve (Q0.1) will turn ON after 20 seconds (i.e immediately when the output Pump (Q0.0) turns OFF) as Timer Function Block TON is used to delay the turning ON time of the output Drain Valve (Q0.1).

Automatic Pumping and Draining

The time is set to 20 seconds.  In a false state, Normally Closed Contact used for Memory Bit 2 (M1) passes the signal to turn ON the output Drain Valve (Q0.1).

So after 20 seconds, the output Drain Valve (Q0.1) will turn ON but for a limited time as Timer Function Block type TP is used to turn ON the output Drain Valve (Q0.1) for a limited time. The time is set to 10 seconds. So after 10 seconds, the output Drain Valve (Q0.1) will turn OFF.

When the Stop Push Button is pressed and released

When the Stop Push Button (I0.1) is pressed and released,  Memory Bit 2 (M1) turns ON. Memory Bit 2 (M1) is latched so that when the Stop Push Button (I0.1) is released, Memory Bit 2 (M1) still remains ON.

Drain valve ladder logic

When Memory Bit 2 (M1) turns ON in Rung1, Normally Closed Contacts used for Memory Bit 2 (M1) in Rung2 will be in a True state and will not allow the signal to pass through it and the outputs Pump (Q0.0), and Drain Valve (Q0.1) will turn OFF immediately.

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:

  • Valve Logic in Siemens PLC Programming
  • PLC Scaling Program for Control Valve
  • PLC Programming for Pneumatic Valves
  • PLC Program to Drain Product from Tank
  • Control Valves PLC Ladder Programming
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 !
What are Functions in PLC Programming? (FCs)
What is PLC Redundancy?
Chemical Mixing Process using PLC
Monitor and Modify Variables in Simatic Manager
PLC Counter Instructions
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Wayne Clewell says:
    May 20, 2024 at 4:48 pm

    I worry sometimes about using latches in control circuitry. Primarily, my instructions
    for programming state. ” What will your Program do, when power goes out ” Do you want a machine to start again as if nothing has happened, or should you use Seal in circuits that necessitate someone re-establishing the machine operation ?

    Reply

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

PLC Program for Filling Operation

PLC Program for Continuous Filling Operation

PLC Ladder Logic Example based on Set Coil and Reset Coil

PLC Ladder Logic Example based on Set Coil and Reset Coil

PLC Code to Start & Stop Motor and Pump as per Logic

PLC Code to Start & Stop Motor and Pump as per Logic

Automation Engineers Interview Questions

Industrial Automation Engineers Interview Questions

Automatic Car Washing Process using PLC Ladder Diagram

Automatic Car Washing using PLC

Relay Internal Parts

Relay Operation, Types, Symbols & Characteristics

PLC Timer Application in Security Camera Recording

PLC Timer Application in Security Camera Recording

PLC Training Data Tables FIFO and LIFO

FIFO Instruction in Allen Bradley PLC Programming

More Articles

Alternator Objective Questions and Answers

125+ Alternator Objective Questions and Answers

Top 10 Facts about HART Technology

Top 10 Facts about HART Technology

Digital Electronics Multiple Choice Questions

Multivibrators Objective Questions

Difference between Feedback, Feedforward, and Cascade Control

Difference between Feedback, Feedforward, and Cascade Control?

Automatic bending machine for exhaust pipe

PLC Logic for Automatic Bending Machine for Exhaust Pipe

Basics of Butterfly Valves

Integral (Reset) Control Theory

Electrical Machines Questions and Answers

Power Flow Through an Inductive Impedance Questions

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?