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: Example PLC Program to Control a Pump based on Level Sensors
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 > Example PLC Program to Control a Pump based on Level Sensors

Example PLC Program to Control a Pump based on Level Sensors

Learn an example PLC program to control a pump based on level sensors using ladder diagram logic with a video explanation.

Last updated: April 10, 2024 11:15 am
Editorial Staff
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

Learn an example PLC program to control a pump based on level sensors using ladder diagram logic with a video explanation.

Contents
PLC Program to Control a PumpPLC Learning SeriesInputsOutputsLadder Diagram LogicProgram DescriptionTest Case

Note: The PLC logic example is designed for beginners who are interested to learn the ladder diagrams.

PLC Program to Control a Pump

Problem Statement

Design a PLC ladder logic for the following application.

We are using two level sensors to control the pump. (You can also call them as Level switches in this case).

If the low-level sensor detects the tank is low, then the pump will run for 20 seconds.

If the high-level sensor detects the tank is full, then the pump will stop for 30 seconds.

PLC Learning Series

Our PLC learning series videos are useful for engineers to learn basic PLC programming.

PLC Programming Example for Low and High Level Switches

Inputs

The required inputs are listed below.

Low level sensor: I0.0

High level sensor: I0.1

Outputs

The required outputs are listed below.

Pump: Q0.0

Ladder Diagram Logic

Example PLC Program to Control a Pump based on Level Sensors

Program Description

We have used Normally Open Contacts for low-level sensor as well as high-level sensor.

We have also used the Normally Closed Contact for Memory (M0) bit in Rung0.

For the Pump, Timer Function Block Type TP is used.

To keep the Pump ON for 20 seconds, Timer Function Block type TP (TM0) is used.

Timer Function Block type TP (TM2) is also used for Memory Bit (M0) to keep it ON for 30 seconds.

To keep the Pump OFF for 30 seconds, Memory Bit taken as Normally Closed Contact in Rung0 is used.

Test Case

Now we simulate our PLC program and see the results.

When the Low-level sensor gets activated (detects the tank is low), the Timer functional block type TP (TM0) will allow the signal to flow for a period of 20 seconds only. (as shown in below image)

Controlling Water Level in the PLC Ladder Logic Program

The memory bit (M0) will also allow the signal as it is in a false state. As a result, the Pump will be turned ON. After 20 seconds, the signal will not flow because of the Timer functional block type TP (TM0).

The pump will turn OFF after being ON for 20 seconds.

When a high-level sensor gets activated i.e., when the tank is full, Timer functional block TP (TM1) will allow the signal to flow for an interval of  30 seconds. (as shown in below image)

Ladder Logic PLC Programming of a Water Pumping System

As a result, the Memory bit (M0) will become true only for 30 seconds. Then, in Rung0, the memory bit (M0) used as Normally Closed Contact will not allow a signal for 30 seconds. As a result, the output Pump will turn OFF for a period of 30 seconds.

In a nutshell, when the low-level sensor detects that the level of the tank is low, the pump gets turned ON for 20 seconds and when the high-level sensor detects that the level of the tank is high, the pump gets turned OFF for 30 seconds.

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:

  • Timers in PLC Programming Tutorials
  • Design Ladder Diagram from Boolean Logic
  • Electrical Ladder Diagram Control with Timers
  • Latching and Unlatching in PLC Programming
  • Electrical Cabinet Air Conditioner Maintenance
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

PLC Mixing Logic in Liquids on EcoStruxure Machine Expert-Basic
PLC Power Supply and Operating Voltages
Automatic Bottle Filling System using PLC
Basic PLC Alarm Programming Example
PLC Program for Control Valve Scaling
Playground Swing Logic Exercise Program in PLC
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

PID with Practical Example
PUT Command in Siemens PLC – TIA Portal Basics
PLC Program for Automatic Bottle Rejection System
Siemens S7 300 and STEP 7 PLC program using SIMATIC Software
Do’s and Don’ts in PLC
80+ PLC MCQ Questions
Door Locking System – PLC Applications Examples
PLC Alarm and Trip Documentation

Keep Learning

Job Skills Required for Industrial Electrical Maintenance

Job Skills Required for Industrial Electrical Maintenance

Difference Between Wifi and Industrial Wireless

Difference Between Wifi and Industrial Wireless

Transistor Output Wiring

PLC Output Types

PLC Boxes Sorting Based on Height

PLC Programming: Sorting and Distribution of Boxes by Height

relay-safety-in-plc

How to Reduce Relay Noise in PLC Systems?

Concept of DCS in Industrial Automation

Concept of DCS in Industrial Automation

InTouch SCADA Training Course

Free InTouch SCADA Tutorial Course for Beginners

FIFO and LIFO Sequences in PLC

What are FIFO and LIFO Sequences in PLC?

Learn More

Pressure Drop Calculator

Pressure Drop Calculator

Digital Electronics Multiple Choice Questions

Parity Checkers Objective Questions

Free Download PLC Book

#10 PLC Best Practices – Assign Register Blocks by Function

Difference between RCCB and RCBO

Difference between RCCB and RCBO

Tube Fitting Parts

Procedure for Crimping the Connector

pH Analyzer Do’s and Don’ts

pH Analyzer Do’s and Don’ts

Servo Operated Electro Magnetic Flowmeter Objective Questions

Electro-Magnetic Flow meter Objective Questions

Vacuum Circuit Breaker Principle

What is Vacuum Circuit Breaker?

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?