RUNG001 is to control V2 Valve. This is operated whenever Low level of Tank1 is detected or if Low level or
high level both are not detected.
RUNG002 is to control V4 valve. This is operated whenever Temperature data of tank 1 is greater than or
equal to 70o C.
Latching of V4 is not provided because it is independent of Inlet valves. Even if the tank is half empty but
temperature is more than 70oC, outlet valve of the tanks open.
Similarly RUNG003 and RUNG004 work and V3 and V5 are operated.
Runtime Test Cases
Input
Output
Physical
Elements
I:1/2 = 1
O:2/0 = 1
Open V2 Valve
I:1/3 = 1
O:2/0 = 0
Close V2 Valve
N7:0 ≥ 70
O:2/1 = 1
Open V4 Valve
N7:0 < 70
O:2/1 = 0
Close V4 Valve
I:1/4 = 1
O:2/2 = 1
Open V3 Valve
I:1/5 = 1
O:2/2 = 0
Close V3 Valve
N7:1 ≤ 20
O:2/3 = 1
Open V5 Valve
N7:1 > 20
O:2/3 = 0
Close V5 Valve
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)