You are on page 1of 6

PLC Program to Drain

Same Products from Two


Tanks
Drain Same Products from Two Tanks
This is PLC Program to drain same products from two tanks.

Problem Description
Two tanks are filled with same products. Draining materials from these two
tanks is depended on the requirement of storage tank. Implement logic for this
system in PLC using ladder diagram.
Problem Diagram
Problem Solution

 Here two tanks are used for the system. For level measurement, two
sensors are used (level low sensors). As shown in figure we use here two
pumps for transferring the materials from tanks (Tank 1 & Tank 2) to
storage tanks.
 Here we will use level transmitter for storage tank level measurement.
PUMP 1 & PUMP 2 will be controlled by level transmitter feedback.
 Here we used two pumps for smooth operation. Both pumps will be
operated when level of the storage tanks is detected below its limit.
 Note:-Here we are consider simple automation for this system. Level
transmitter is used in this system and it will measure the level of the
storage.
 Storage tank is taken of 500cm height for simplicity and level transmitter
feedback is 4 to 20mA.
 We will use PLC S7-300 for this application. We will use scaling for
programming purpose.
List of inputs/outputs
List of inputs

 Cycle START:- I0.0


 Cycle STOP :- I0.1
 Level low of tank 1 :- I0.2
 Level of tank 2 :- I0.3
List of outputs

 Pump 1 :- Q0.0
 Pump 2 :- Q0.1
M memory

 Cycle ON bit :- M0.0


 Analog value from the transmitter :- MW10 (INT)
 Analog value from the transmitter :- MD100 (DINT)
 Multiplication value :- MD104
 Actual water level (cm) :- MD108
PLC Ladder diagram for draining same products from two tanks
Program Description

For this application we used S7-300 PLC and TIA portal software for
programming.
Network 1 :-

we used latching circuit for cycle ON (M0.0) output.it can be started by pressing
START PB (I0.0) and stop by pressing STOP PB (I0.1).
Network 2 :-
Here actual count or value coming from the transmitter is current (4 to 20mA) so
by using analog input channel in the PLC we can convert it into digital count.
This digit is in INT (MW10) format so we need to convert it into DINT (MD100)
for calculation or multiplication.
Network 3 :-

DINT value (MD100) is multiplied with max height (500cm) of the tank for
calculation purpose.
Network 4 :-

Multiplied value (MD104) is divided by max count of the analog module


(27648).And final actual height is stored in MD108.
Network 5 :-

Here we used comparator for PUMP 1 (Q0.0).During requirement of the


material PUMP 3 will be operated by operator, water level height will decrease.
So as per our automation or system we need to fill storage tank, pump 1 will be
started if water level is less than its limit (here we have taken 480cm).
Note:- PUMP 1 should be stop if level low (I0.2) of the tank 1 is detected.
Network 6 :-

Here we used comparator for PUMP 2 (Q0.1). During requirement of the


material PUMP 3 will be operated by operator, water level height will decrease.
So as per our automation or system we need to fill storage tank, pump 2 will be
started if water level is less than its limit (here we have taken 480cm).
Note:- PUMP 2 should be stop if level low (I0.3) of the tank 2 is detected.
During all function cycle should be ON.

Note:- Above application may be different from actual application. This example


is only for explanation purpose only. We can implement this logic in other PLC
also. This is the simple concept of drainage system, we can use this concept in
other examples also.
All parameters considered in example are for explanation purpose only,
parameters may be different in actual applications. Also all interlocks are not
considered in the application.

Runtime Test Cases

You might also like