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: Auto and Manual Liquid Tank System: PLC Program Example
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 > Auto and Manual Liquid Tank System: PLC Program Example

Auto and Manual Liquid Tank System: PLC Program Example

Create a PLC program for auto and manual liquid tank system using EcoStruxure Machine Expert-Basic by Schneider Electric.

Last updated: June 25, 2024 12:05 pm
Editorial Staff
PLC Tutorials
No Comments
Share
6 Min Read
SHARE

Create a PLC program for auto and manual liquid tank system using EcoStruxure Machine Expert-Basic by Schneider Electric.

Contents
PLC Program for Liquid TankProgram ExplainedI/O DetailsPLC Programming Code

PLC Program for Liquid Tank

This article discusses the PLC program for Filling And Emptying tank liquids which can be RUN automatically or manually. When the system is manually operated, the operation of the Liquid Pump, Input Valve, and Output Valve can only be controlled using the Push Button.

When the system runs automatically, if the liquid Tank is empty, the input valve will automatically Open and the liquid pump will Activate 5 seconds later. During the liquid filling process, the Output Valve will always be Closed.

When the liquid Tank is full, the pump input valve will Close and the liquid pump will be Disabled, and the output valve will Open. The liquid pump and input valve will be Active again when the liquid Tank is empty.

Program Explained

Liquid Tank Filling Emptying PLC Program Example
PLC Logic for Liquid Tank Control
Schneider Electric automation example

In this program, the system will only RUN if the START_SYSTEM (I0.0) button is pressed and will only STOP if the STOP_SYSTEM (I0.1) button is pressed. By default, the system is in Manual Mode. If the MODE button (I0.2) is pressed then the system Mode will change to Automatic.

In Manual Mode, the PB_PUMP (I0.7) button activates the PUMP Output (Q0.0), the PB_VALVE_IN (I0.5) button activates the VALVE_IN Output (Q0.1), and the PB_VALVE_OUT (I0.6) button activates Output VALVE_OUT (Q0.2).

In Automatic Mode, the system will RUN when the MODE button (I0.2) becomes HIGH/True. In Automatic Mode, the system does not use push buttons to control the PUMP Output (Q0.0), VALVE_IN Output (Q0.1), and VALVE_Out Output (Q0.2). In Automatic Mode, SENS_LOW (I0.3) is used to indicate the lowest point of liquid in the Tank (low level), and SENS_HIGH (I0.4) is used to indicate the highest point of liquid in the Tank (high level).

When the liquid Tank is empty, the NC (Normally Close) SENS_LOW (I0.3) and SENS_HIGH (I0.4) contacts will Activate VALVE_IN (Q0.1) and the PUMP Output (Q0.0) will Activate 5 seconds later to RUN the liquid filling process.

When the Tank is full then the Contact NO (Normally Close) of SENS_LOW (I0.3) and SENS_HIGH (I0.4) will Activate the output VALVE_OUT (Q0.2) to RUN the process of emptying the liquid. VALVE_OUT (Q0.2) will be Closed when the NO (Normally open) contacts of SENS_LOW (I0.3) and SENS_HIGH (I0.4) are LOW/False.

I/O Details

Addressing Input, Output, TIM, Bit Memory, and Word Memory details as follows.

CommentInput (I)Output(Q)Memory Bits
START_SYSTEMI0.0  
STOP_SYSTEMI0.1  
MODEI0.2  
SENS_LOWI0.3  
SENS_HIGHI0.4  
PB_VALVE_INI0.5  
PB_VALVE_OUTI0.6  
PB_PUMPI0.7  
PUMP Q0.0 
VALVE_IN Q0.1 
VALVE_OUT Q0.2 
SYSTEM_ON  M0
PUMP_1  M1
VALVE_IN_1  M2
VALVE_OUT_1  M3
PUMP_2  M4
VALVE_IN_2  M5
VALVE_OUT_2  M6

PLC Programming Code

Auto and Manual Liquid Tank System

The image above shows when the memory Output bit SYSTEM_ON (M0) has been Active. Once the START_SYSTEM (I0.0) push button is pressed then the memory Output bit SYSTEM_ON (M0) becomes Active. Due to the latching, the memory output bit SYSTEM_ON (M0) remains Active even though the START_SYSTEM (I0.0) push button is released.

In Rung-1, (MANUAL NETWORK) you can see that the system can RUN because of the NC (Normally Close) contact from MODE (I0.2).

PLC program for liquid tank

The image above shows the condition of the output memory bits PUMP_1 (M1), VALVE_IN_1 (M2), and VALVE_OUT_1 (M3) which have been activated manually.

Auto manual PLC programming

The picture above shows the Output PUMP (Q0.0), VALVE_IN (Q0.1), and VALVE_OUT (Q0.2) which have been Active because the NO (Normally Open) contacts of the memory bits PUMP_1 (M1), VALVE_IN_1 (M2), VALVE_OUT_1 (M3) are in HIGH/True condition.

Liquid Tank Filling and Emptying PLC System

The figure above shows the condition when the system has been RUN in automatic Mode. Because the liquid Tank is empty, the memory Output bit VALVE_IN_2 (M5) becomes Active.

Because the system has been running for more than 5 seconds then the memory Output bit PUMP_2 (M4) becomes Active.

This Step has been going on the process of filling the liquid in the Tank.

PLC Programming for Liquid Tank Filling

Because the NO (Normally Open) contacts of the VALVE_IN_2 (M5) and PUMP_2 (M4) bit memory are Active, the pump (Q0.0) and VALVE_IN (Q0.1) outputs are Active.

Example PLC Code for Liquid Tank

The picture above shows the process of emptying the liquid tank. Because the tank is full, the memory Output bit VALVE_OUT_2 (M6) becomes Active. The Interlock function of the VALVE_OUT_2 (M6) bit memory makes the VALVE_IN_2 (M5) and PUMP_2 (M4) bit memory outputs Disabled.

Tank Filling and Emptying PLC Logic

Because the NO (Normally Open) contact of VALVE_OUT_2 (M6) has been Active, the Output of VALVE_OUT (Q0.2) becomes Active.

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:

  • Batch Mixing with PLC Ladder Logic Program
  • Ecostruxure Machine Expert HVAC Software
  • Tank Filling and Emptying using Scada Script
  • PLC Program for Water Level Control Logic
  • Automatic Empty Bottle detection using PLC
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 Program for Ceramic Burning Oven Conveyor System
FOR DO Statement in SCL Language
Best 100 PLC Projects for Final Year Engineering Students
PLC Program for Daily Production Record
Conveyor Sorting System with Color Detection PLC Logic
SCADA for Substation Automation
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

Drilling Process using PLC Program
PLC Program for Conditional Control Logic
PLC Conveyor Motor Ladder Logic
Learn PLC in Hindi
PLC Motor Operation based on Time Cycle Sequence – Program
PLC Pump Permissive Interlocks
How to Connect PLC with SCADA System via OPC UA?
Understanding the Scan Cycle of SIEMENS PLC

Keep Learning

How to Detect Speed of Conveyor in PLC

How to Detect Speed of Conveyor in PLC?

Offline UPS

UPS Working Principle and Types – Offline and Online UPS Systems

Pump and Mixer Operations Example PLC Timer-Based Control

Pump and Mixer Operations Example: PLC Timer-Based Control

How to Filter Digital and Analog Inputs in a PLC

#7 PLC Best Practices – Validate and Alert for Paired Inputs/Outputs

PLC Technique for IO Mapping

PLC Techniques for I/O Mapping

PLC Math instructions

PLC Math instructions

Allen Bradley PLC Example with Sub routines

How to use Sub Routines with Allen Bradley PLC

One-Shot Rising and Falling Edge Instructions in Rockwell PLC

One-Shot Rising and Falling Edge Instructions in Rockwell PLC

Learn More

Types of Electrical Loads

Types of Electrical Loads

Tie rods double acting cylinder

What is a Pneumatic Cylinder?

measure the temperature of RTD

Measure the Temperature of the RTD

valve-actuator

Pneumatic Control Valve Actuators

Introduction to PLC

#9 PLC Best Practices – Validate indirections

Phase Watcher Multiphase Flow Meter (MPFM) Procedure

Difference Between Modbus TCP IP and Profinet

Difference Between Modbus TCP IP and Profinet

Convert-Percentage-to-current

Convert Percentage (0-100%) to current (4-20mA)

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?