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 to Drain Same Products from Two Tanks
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 to Drain Same Products from Two Tanks

PLC Program to Drain Same Products from Two Tanks

This is a PLC Program to drain the same products from two tanks. Learn the PLC programming with this simple example.

Last updated: November 3, 2023 12:10 pm
Editorial Staff
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

This is a PLC Program to drain the same products from two tanks. Learn the PLC programming with this simple example.

Contents
Drain the Same Products from Two TanksProblem DiagramPLC Example SolutionList of I/OsPLC Ladder Diagram for draining the same products from two tanksProgram ExplanationResult

Drain the Same Products from Two Tanks

Problem Description

Two tanks are filled with same products. Draining materials from these two tanks is depended on the requirement of storage tank.

Implement logic for this system in PLC using ladder diagram.

Problem Diagram

PLC Program to Drain Same Products from Two Tanks

PLC Example Solution

Here two tanks are used for the system. For level measurement, two sensors are used (level low sensors). As shown in figure we use here two pumps for transferring the materials from tanks (Tank 1 & Tank 2) to storage tanks.

Here we will use level transmitter for storage tank level measurement. PUMP 1 & PUMP 2 will be controlled by level transmitter feedback.

Here we used two pumps for smooth operation. Both pumps will be operated when level of the storage tanks is detected below its limit.

Note:-Here we are consider simple automation for this system. Level transmitter is used in this system and it will measure the level of the storage.

Storage tank is taken of 500cm height for simplicity and level transmitter feedback is 4 to 20mA.

We will use PLC S7-300 for this application. We will use scaling for programming purpose.

List of I/Os

List of inputs

  • Cycle START:- I0.0
  • Cycle STOP :- I0.1
  • Level low of tank 1 :- I0.2
  • Level of tank 2 :- I0.3

List of outputs

  • Pump 1 :- Q0.0
  • Pump 2 :- Q0.1

M memory

  • Cycle ON bit :- M0.0
  • Analog value from the transmitter :- MW10 (INT)
  • Analog value from the transmitter :- MD100 (DINT)
  • Multiplication value :- MD104
  • Actual water level (cm) :- MD108

PLC Ladder Diagram for draining the same products from two tanks

Ladder Logic for draining same products from two tanks
Drain Same Products from Two Tanks
analog value from the transmitter
fill storage tank pump
PLC Pump ON
PLC Drain Pump

Program Explanation

For this application, we used S7-300 PLC and TIA portal software for programming.

Network 1:

we used latching circuit for cycle ON (M0.0) output.it can be started by pressing START PB (I0.0) and stop by pressing STOP PB (I0.1).

Network 2:

Here actual count or value coming from the transmitter is current (4 to 20mA) so by using analog input channel in the PLC we can convert it into digital count. This digit is in INT (MW10) format so we need to convert it into DINT (MD100) for calculation or multiplication.

Network 3:

DINT value (MD100) is multiplied with max height (500cm) of the tank for calculation purpose.

Network 4:

Multiplied value (MD104) is divided by max count of the analog module (27648).And final actual height is stored in MD108.

Network 5:

Here we used comparator for PUMP 1 (Q0.0).During requirement of the material PUMP 3 will be operated by operator, water level height will decrease.

So as per our automation or system we need to fill storage tank, pump 1 will be started if water level is less than its limit (here we have taken 480cm).

Note:- PUMP 1 should be stop if level low (I0.2) of the tank 1 is detected.

Network 6:

Here we used comparator for PUMP 2 (Q0.1). During requirement of the material PUMP 3 will be operated by operator, water level height will decrease. So as per our automation or system we need to fill storage tank, pump 2 will be started if water level is less than its limit (here we have taken 480cm).

Note:- PUMP 2 should be stop if level low (I0.3) of the tank 2 is detected.

During all function cycle should be ON.

Note:- Above application may be different from actual application. This example is only for explanation purpose only. We can implement this logic in other PLC also. This is the simple concept of drainage system, we can use this concept in other examples also.

All parameters considered in example are for explanation purpose only, parameters may be different in actual applications. Also all interlocks are not considered in the application.

Result

PLC Logic to Drain Same Products from Two Tanks

Author: Bhavesh

If you liked this article, then 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 Timer Instructions
  • Ladder Logic Questions & Answers
  • Contacts and coils
  • PLC Analog Input Scaling
  • PLC Example with Switches
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

What are High-Speed Inputs in PLC?
Laws of Boolean Algebra using Ladder Logic
Control Speed of Induction Motor using Analog Output of PLC
How to Program PID Control in PLC with Structured Text?
What is SCADA System?
Step by Step Guidelines for Downloading Free PLC software
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 Controllers in Closed Loop Control Systems – PLC Basics
How to Add Security in InTouch SCADA?
Count the Number of Bottles in Packaging Carton PLC Logic
PLC Program for Motor Starter
Basics of Permissive and Interlock Circuits
How to Reduce Relay Noise in PLC Systems?
Using Clock Memory Bits in TIA Portal – Siemens PLC
Jog Function in Motor Start Stop Logic using PLC

Keep Learning

Online PLC Ladder Logic

Mis-conceptions of PLC Ladder Logic

Organization block Siemens

Tia Portal – OB30 Cyclic Interrupt Organization Block

Database for each safety module

Global Acknowledgment Instruction in Safety PLC

Structured Control Language (SCL) Elements

Value Assignments in SCL Language – Single, Multiple, Combined

Control Loops

Control Loops Objective Questions and Answers

Structured Text PLC Program for Sequential Process Data Storage

Structured Text PLC Code for Sequential Process Data Storage

Shutdown Motors in Timed Operation PLC Program

Shutdown Motors in Timed Operation PLC Program

Simple Conveyor Control PLC Program

XG5000 Example of Simple Conveyor Control PLC Program

Learn More

Fail Safe Switch Circuit

Basics of Fail-safe Circuits

Questions on Level Switches

Questions on Level Switches

Power Electronics Objective Questions

PWM based Inverters in Power Electronics Quiz

Valve stem travel

Control Valves Mechanical Friction Problems

Thermowell Immersion Length

Thermowell Insertion and Immersion Length

harmonics-effect-on-transformer

Harmonics effect on Transformer

Ball Valve Material Selection

Ball Valve Material Selection

Dual Solenoid Valve on Control Valve

Why we Require Dual SOV on a Control Valve?

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?