Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: PLC Instruction List Example for Level Control of Tank
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Instruction List Example for Level Control of Tank

PLC Instruction List Example for Level Control of Tank

Explore a PLC instruction list example for tank level control and learn the nuances of using instruction list language.

Last updated: March 11, 2025 4:04 pm
Editorial Staff
PLC Tutorials
No Comments
Share
7 Min Read
SHARE

Level control of a tank is the most commonly used system in an automation application. PLC programmers use different types of languages according to their feasibility. One of the languages which is used very less is the instruction list. We can use this language for our purpose here of writing the program for level control. In this post, we will control the level of the tank by using instruction list language and continue from our earlier post where we saw basic instructions like timers and counters written in this language.

Example for Level Control of Tank

  1. Let us look at the case scenario first. We have a tank which has a level transmitter installed in it, for controlling the valves. There are two valves – one at inlet and one at outlet. The inlet valve is used to fill the tank proportionally, and the outlet valve is used to drain the tank proportionally. Both these proportionate actions take place through the level transmitter. Instead of PID, we will use some simple mathematical formulae for controlling the valves.
  2. For this application, we will use Machine Expert Basic software and write the coding in instruction list language. Following are the PLC inputs – level transmitter. Following are the PLC outputs – filling valve and draining valve.
  3. Refer to the below image. The green lines inside the tank are used for control of the filling valve and the blue lines inside the tank are used for control of the drain valve. When the water is below the green line in the bottom of the tank, the filling valve opens at it’s maximum position. When the water is above the green line in the top of the tank, the filling valve opens at it’s minimum position. When the water is below the blue line in the bottom of the tank, the drain valve opens at it’s minimum position. When the water is above the blue line in the top of the tank, the drain valve opens at it’s maximum position. So, as the water level increases, the drain valve will open and vice-versa for inverse action. When the water level decreases, the filling valve will open and vice-versa for inverse action. In between the lines, three internals level setpoints will be present in the PLC program. When any interval is crossed for the particular valve, that valve will open or close by 20%.
PLC Instruction List Example for Level Control of Tank
  1. See the first rung below. We will control the filling valve first. We created five cases for this valve. Here, the case refers to the level of the tank. In all the five cases, five different values are moved to the valve. For the five cases, we will create parallel branches to operate the valve. For branches, MPS denotes start of the branch, MRD denotes branch extension and MPP denotes end of the branch. As a branch is created, we use a true variable which continuously supplies power to the rung. In the first branch, if the level is less than 50, then a value of 90 is moved to the valve.  In the second branch, if the level is more than equal to 50 and less than 400, then a value of 70 is moved to the valve. In the third branch, if the level is more than equal to 400 and less than 650, then a value of 50 is moved to the valve. In the fourth branch, if the level is more than equal to 650 and less than 950, then a value of 30 is moved to the valve. In the fifth branch, if the level is more than 950, then a value of 10 is moved to the valve. So, as branches work in OR condition, if any of the branch conditions is true, then the operation will take place.
how to control the level of a tank using instruction list language
  1. See the second rung below. We will control the drain valve here. We created five cases for this valve. Here, the case refers to the level of the tank. In all the five cases, five different values are moved to the valve. For the five cases, we will create parallel branches to operate the valve. As a branch is created, we use a true variable which continuously supplies power to the rung. In the first branch, if the level is less than 100, then a value of 10 is moved to the valve.  In the second branch, if the level is more than equal to 100 and less than 450, then a value of 30 is moved to the valve. In the third branch, if the level is more than equal to 450 and less than 700, then a value of 50 is moved to the valve. In the fourth branch, if the level is more than equal to 700 and less than 1000, then a value of 70 is moved to the valve. In the fifth branch, if the level is more than 1000, then a value of 90 is moved to the valve. So, as branches work in OR condition, if any of the branch conditions are true, then the operation will take place.
PLC Instruction List Example

In this way, we saw how to control the level of a tank using instruction list language.

Read Next:

  • Light Sequences Structured Text PLC Program
  • Motor Direction Control using Limit Switches
  • Star Delta Starter using Functional Block Diagram
  • While Do Statement in Structured Text PLC Program
  • PLC Instruction List for Motor Reverse and Forward
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 !
Example PLC Program to Control a Pump based on Level Sensors
How to use Converters in PLC
What is Function Module in Siemens PLC?
PLC Techniques for I/O Mapping
Connecting Faceplate to PLC Project – HMI Tutorial
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers

Related Articles

PLC Program for an Alternate output circuit

PLC Program for Alternate Output Circuit with Latched Function

Jog button in Motor Start Stop Logic using PLC

What is Motor Jogging ?

Downloading Free PLC software

Step by Step Guidelines for Downloading Free PLC software

Siemens PLC Simulator and Plant Simulation Software

How to use Simulator in Siemens PLC?

PLC Program for Water filling and Discharging Process

PLC Program for Water filling and Discharging Process

PLC Programming Course Online Free

PLC Programming Course Online Free

Anti-static Wrist Straps

Anti-static Wrist Straps in Industrial Automation

Electrical Circuit Label Schematic

Label the Electrical Circuit Schematic

More Articles

Safety Instrumented System Engineer Interview Questions

Safety Instrumented Systems Online Exam

Ion Spectrometers Questions & Answers

Auger Electron Spectroscopy

Automatic bending machine for exhaust pipe

PLC Logic for Automatic Bending Machine for Exhaust Pipe

CIPP Lining Procedure

What is CIPP Lining? Procedure and Advantages

Free Download Industrial Control System Book

Free Download Industrial Control System Book

Sump Tank Level Transmitter

Problem with Sump Tank Level Transmitter

Reproducibility in Measurement

What is Reproducibility?

Intrinsic Safety of Instruments

Intrinsic Safety of Instruments

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?