Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

PLC Program to Control Level of Two Tanks

This is a PLC Program to Control Level of Two Tanks.


Problem Description

Two simultaneous processes are to be performed in two separate tanks which are
connected through a valve. Process 1 takes place in the 1st tank and Process 2 takes in the
2nd tank. Control level of these tanks in PLC using Ladder Diagram programming
language.
Problem Diagram

Problem Solution

 Mount two level switches in the first tank and two switches in the second tanks. Both switches
of tanks detect High and Low level of the tanks.
 Install inlet valve to control inlet process flow and outlet valve to control outlet process flow.
 Install one more connecting valve to control draining of process material from Process 1 Tank
to Process 2 Tank.
 Provide interlocking to prevent from malfunctioning or overflowing.

PLC Program

Here is PLC program to Control Level of Two Tanks, along with program explanation
and run time test cases.
List of inputs or Outputs
I:1/0 = Level High Switch-Tank 1, LHS1 (Input)
I:1/1 = Level Low Switch-Tank 1, LLS1 (Input)
I:1/3 = Level Low Switch-Tank 2, LLS2 (Input)
O:2/0 = Inlet Valve (Output)
O:2/1 = Tank Connecting Valve (Output)
O:2/2 = Outlet Valve (Output)
I:1/14 = Start (Input)
I:1/15 = Stop (Input)
B3:0/0 = Master Coil Bit (Bit)

Ladder Diagram to control level of two tanks

Program Description

 RUNG000 is a master start/stop rung to Start and Stop the entire process.
 RUNG001 is for controlling Connecting Valve output O:2/1. It is opened when LHS1 I:1/0,
Pro1 Done I:1/5 and LLS2 I:1/3 are detected. And it is closed when LLS1 I:1/1 is detected, or
in other words, when Process 1 Tank is empty.
 Important thing to note here is that if Tanks’ size/shape were not same and any one XIC
contact from O:2/1, I:1/0 or I:1/5 was not connected, there would have been a chance of
malfunctioning/overflowing.
 RUNG002 is for controlling Inlet valve O:2/0. It is allows the inlet flow by opening Inlet Valve
whenever Low Level switch of Process1 Tank LLS1 with address I:1/0 is detected.
 RUNG003 is for controlling Outlet Valve with address O:2/2. It allows the process material to
flow out when Pro1 Done I:1/6 is detected.
 Consider any set point of Process1 and Process2 as I:1/5 and I:1/6.

Runtime Test Cases

Inputs Outputs Physical Elements


I:1/0 = 1, I:1/1 = 0 O:2/2 = 1 Open Outlet Valve
I:1/0 = 0, I:1/1 = 1 O:2/0 = 1 Open Inlet Valve
I:1/0 = 1, I:1/5 = 1, I:1/3 = 1 O:2/1 = 1 Open Connecting Valve
I:1/0 = 0, I:1/1 = 0 O:2/0 = 1 Open Inlet Valve
I:1/0 = 1 O:2/0 = 0 Close Inlet Valve
I:1/1 = 1 O:2/1 = 0 Close Connecting Valve
I:1/3 = 1 O:2/2 = 0 Close Outlet Valve

Sanfoundry Global Education & Learning Series – PLC Algorithms.


To practice all PLC programs, here is complete set of 100+ PLC Problems and Solutions.
« Prev Page - PLC Program to Control Level of a Single Tank
» Next Page - PLC Program to Control Level of Parallel Tanks

Deep Dive @ Sanfoundry:

1. Linux Program to Append to the End of a File using File Descriptors


2. Linux Program to Read from a File using File Descriptors
3. Linux Program to Write to a File using File Descriptors
4. Linux Program to Duplicate a File Descriptor with fcntl()
5. Cloud Computing Training – Amazon Web Services (Advanced Level)
6. Cloud Computing Training – Amazon Web Services (Beginner Level)
7. Training on Kernel Level Snapshot Software Design & Implementation on Linux
8. HDLC – High-Level Data Link Control Training
9. Training on Kernel Level CDP Software Design & Implementation on Linux
10. Linux Program to Open and Close a File using File Descriptors

HOW MUCH DO YOU KNOW ABOUT ROBOTS?

How was the first working robot employed in 1961?

The word robot comes from the Czech word 'robota', which means:

There are ~4,000 robots serving in the US army, including ones that:
This first humanoid robot was 7 feet tall and could 'speak' 700 words.

In the United Arab Emirates, robot jockeys are often used:

The robot rock band that features a 78-fingered guitarist is called:

Who sketched 'mechanical knights' as early as 1945?

In which country did Barack Obama play game of soccer against a robot?

Spirit and Opportunity refer to which robots?

The first case of robot homicide occured when:

15

 Searching for gold

 Spying on Russian-American families

 Watering at the Olive Garden

 Making cars for Ford

 Machinery

 Superhuman

 Fake friend

 Drudgery

 Attack soldiers as part of training

 Teach soldiers foreign languages

 Detect roadside bombs

 Prepare coffee for officers

 Electra

 Apollo

 Dollie

 Simon

 To find hidden oil wells

 As moving jukeboxes in bars

 To clear land mines

 Instead of humans for camel racing

 Mind over Body

 Best of Bionic

 Heavy and Metal

 Z-Machines

 The Wright Brother

 Thomas Edison

 Henry Ford

 Leonardo Da Vinchi

 Thailand

 Brazil

 Japan
 England

 The first pair of Google cars

 The 'bots that uncovered Bin Laden

 The first mobile Japanese robot

 Drones made to explore Mars

 A robot combusted, killing 2 engineers

 A Google car ran over a pedestrian

 A robotic arm crushed a factory worker

 A hacked NASA robot went rogue

START NEXT QUIZ


You Scored A Fair

5/10
CHALLENGE
YOUR FRIENDS

NEXT QUIZ ST ART S IN :

10

Your Score 0 Question 1/10


Add This Widget To Your Site

You might also like