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 !
How to Automatically Close Pop-up in FactoryTalk View Studio?
Example of Automated Guided Vehicle with PLC
PID Block in RSLogix 500
Elevator Control: PLC Program with 5-Second Floor Stops
Types of Cables used in Industrial 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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Kamli on Top Free PLC Software
  • 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

Related Articles

Industrial Automation Cold and Hot Standby

Difference between Cold Standby and Hot Standby

Instrumentation During the Detail Design Phase

Instrumentation Engineer Activities & Documents – Detail Design Phase

SCADA System

What is SCADA System?

CRA Module in Schneider PLC

CRA Module in Schneider PLC – Remote IO Adapter Module

Opposite Acting Control Valves Application

PLC Ladder Logic for Opposite Acting Control Valves Application

Automatic Bottle Filling System using PLC

Automatic Bottle Filling System using PLC

Node-RED in PLC Automation

Node-RED in PLC Industrial Automation

HMI book

HMI Handbook

More Articles

Industrial Automation Components

Industrial Automation Components Questions and Answers

Homebrew CNC Machine

Embarking on a Homebrew CNC Project: A Journey of Creativity

How to Calibrate Load Cells

How to Calibrate Load Cells in Weighing Applications?

How to Install Thermowell on an Elbow?

Advantages of Pneumatic Systems in the Automotive Industry

Advantages of Pneumatic Systems in the Automotive Industry

pH Analyzers Interview Questions Answers

pH Analyzer Interview Questions and Answers

CODESYS open source PLC software

What is CODESYS? Why Do You Need to Learn it?

Industrial Networking Interview Questions

Industrial Networking and Wireless Interview Questions

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?