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: Structured Text PLC Programming for Two-Tanks Level Application
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 > Structured Text PLC Programming for Two-Tanks Level Application

Structured Text PLC Programming for Two-Tanks Level Application

Learn how to write a structured text PLC programming for the two-tanks level control application for beginners.

Last updated: September 13, 2024 2:16 pm
Viral Nagda
PLC Tutorials
1 Comment
Share
4 Min Read
SHARE

When you are using structured text for PLC programming, it helps a lot in saving time and decoding the logic easily. It requires a good knowledge of syntax and instruction format. Once written, you can write the complex logics easily.

Contents
Structured Text for two-tank level applicationStructured Text PLC Programming

One system which is used widely in many processes is controlling the level of two tanks. Because tanks are used in many applications, it must be understood to write the logic properly. In this post, we will see how to write a PLC program for controlling the level of two tanks using structured text.

Structured Text for two-tank level application

Let us understand the case scenario first. Refer to the below image. There are two tanks in the system. Both the tanks have two level switches (/sensors) each – low and high.

Structured Text PLC Programming for Two-Tanks Level Control

The first tank is filled by a valve. The second tank is drained by a valve. In between the two tanks, another valve which drains the first tank as well as fills the other tank.

When any level is low, then the drain valve will remain closed. When any level is high, then the filling valve will remain closed. The valve remains closed as long as the level is not healthy; once healthy, then it will open again.

Structured Text PLC Programming

Now, let us see the logic to be written. As we are using structured text, we will use simple if-else statements for understanding it.

Refer to the below image. There are four PLC inputs – tank-1 level high, tank-1 level low, tank-2 level high, and tank-2 level low.

There are three PLC outputs – valve-1, valve-2 and valve-3.

ST Example PLC Program Tank Level

First, we will see how to fill tank-1. If the level of tank-1 is high, then the valve will remain off. So, we used an if-else statement where, if the value of the sensor is zero, it means the level is normal and the valve output will be written as 1. Else, it will be written as 0.

Now, we will see how to fill tank-2 and drain tank-1. If the level of tank-2 is high or the level of tank-1 is low, then the valve will remain off. So, we used an if-else statement where, if the value of both the sensors are zero, it means the level is normal and the valve output will be written as 1. Else, it will be written as 0.

Now, we will see how to drain tank-2. If the level of tank-2 is low, then the valve will remain off. So, we used an if-else statement where, if the value of the sensor is zero, it means the level is normal and the valve output will be written as 1. Else, it will be written as 0.

Due to this logic, the valves control the level of the tanks and avoid them from being overfilled or the drain valves remaining open unnecessarily in case of empty-tank. The valves work in tandem with each other and thus control the levels of both the tanks.

In this way, we saw how to write a PLC program for controlling the level of two tanks using structured text language.

Read Next:

  • Inside the PLC Control Panel: Test Quiz
  • Which Language is Best for PLC Programming?
  • Exhaust Fan Control: Example of PLC Timer Logic
  • PLC Program to Drain Products from Two Tanks
  • Automation Solutions Logic for Stairway Lighting
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 based Door Open and Closing System
PID Simulator Download
Drive Multiple Speeds with Different Reference using PLC
Create a User-Defined Function Block in Codesys
PLC Interlock Logic with First Input Priority
PLC Multiple Outputs Configuration
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Romelroy4702 says:
    September 30, 2024 at 12:02 pm

    The Process explanation has to be like this as follows:- Initial Condition: LLST1 & LLS T2 should be ON. When Push button Start (Pb Start) is pressed ON, Motor ON.

    When HLST1 becomes ON, Motor becomes OFF & V1 gets ON. Then so on. If you need the details of this whole Process kindly, message in this. Thank you

    Reply

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

System and Local Time in PLC
Micro Memory Card (MMC) in Siemens PLC
Difference Between Microcontroller and PLC
ESG in Industrial PLC Automation Systems
SCADA Communication and Protocols
PLC Light Sequence Control using Bit Shift Registers
Types of Script in Intouch Scada
Communication Processor Module in Siemens PLC

Keep Learning

Siemens PLC

Will PLCs become obsolete?

Preventive Maintenance of Variable Frequency Drive

Preventive Maintenance of Variable Frequency Drive (VFD)

PLC Program for Control Valve Scaling

PLC Program for Control Valve Scaling

Types of Noise in Electronics

Types of Noise in Electronics

Web SCADA HMI

Web-based SCADA HMI Software

SCADA and PLC Configuration

Examples of SCADA and PLC Configuration Systems

Industrial Automation Projects

Evaluating Industrial Automation Projects Return on investment (ROI)

PLC Engineers Interview Questions

PLC SCADA Engineers Interview Questions and Answers

Learn More

PLC program pushbutton switches

PLC Permissive for Motor Control

Top Electrical Engineering Interview Questions for Freshers

Top Electrical Engineering Interview Questions for Freshers

HART Transmitters Loop Checks

Loop Check of 4-20mA or HART Transmitters

Valve Leakage Tests

Types of Valve Leakage Tests

Power Factor Meter Principle

Power Factor Meter Principle

Critical Factors to Consider for Engineering Students to Ensure a Smooth Path

Critical Factors to Consider for Engineering Students to Ensure a Smooth Path

PLC Program for Forward and Reverse Motor control

3 Phase Motor Control using PLC Ladder Logic

Hydraulic Actuators

Working Principle of Hydraulic Actuators

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?