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
Notification Show More
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 Example on Multiple LEDs using Set Coil
How to Download EcoStruxure Machine Expert? Schneider PLC Software
Your First Steps Through STL Language
PLC Programming for Sequential Batch Mixing System
Heating and Mixing of Products using PLC Example Tutorial
Advanced PLC Programming for Defective Parts Sorting
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

PLC Analog I/O Potential Problems – Troubleshooting & Issues
PLC Program for Trash Compactor
How to do Scaling for Analog Input in RSLogix 500?
Parking Lights PLC Program Explained with Video
Basics of 4 to 20 mA analog Signals
PLC Programming Example with Pushbutton and Motor
Scaling with Parameters (SCP) Instruction in PLC
PLC Sizes and Applications

Keep Learning

PLC Program for an Alternate output circuit

PLC Program for Alternate Output Circuit with Latched Function

Programmable Logic Controller Boiler Logic

PLC Ladder Logic for Start-up Control of Boilers

Batch Mixing with PLC Ladder Logic Program

Batch Mixing with PLC Ladder Logic Program

80+ PLC MCQ

80+ PLC MCQ Questions

Batch mixing process automation with Omron PLC

Automate Batch Mixing with Repeated Cycles in Omron PLC

PLC Karnaugh maps

How to Simplify PLC Coding Using Karnaugh Maps?

PLC Program for Positive edge pulse output for one scan cycle

PLC Program for Positive Edge Pulse Output for One Scan Cycle

PLC Program for Analog Input Sampling

PLC Analog Input Sampling Ladder Logic

Learn More

Use Dumps to Ace Certbolt Microsoft AZ-204 Exam

Use Dumps to Ace Certbolt Microsoft AZ-204 Exam

Field Transmitter Installation

Cables and Cable Glands Questions and Answers

Pneumatic Circuit Design Using PLC - 2

PLC Pneumatic Circuit Control

Robotic Process Automation

What is Robotic Process Automation? Advantages, Applications

WHILE DO Statement in SCL Language

WHILE DO Statement in SCL Language

PLC Program for motor operation based on time cycle

PLC Motor Operation based on Time Cycle Sequence – Program

Two pressure transmitters

Pressure Transmitters Leg Compensation Technique

Turbidity Sensor Calibration Procedure

Turbidity Sensor Calibration Procedure

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?