Home » PLC Program to Drain Same Products from Two Tanks
PLC Tutorials

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

PLC Program to Drain Same Products from Two Tanks

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

Ladder Logic for draining same products from two tanks Drain Same Products from Two Tanks analog value from the transmitter fill storage tank pump PLC Pump ON PLC Drain Pump

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

PLC Logic to Drain Same Products from Two Tanks

Author : Bhavesh

Articles You May Like :

PLC Timer Instructions

Ladder Logic Questions & Answers

Contacts and coils

PLC Analog Input Scaling

PLC Example with Switches

Similar Articles:

Related Articles

Difference between DCS, PLC, and RTU ?

S Bharadwaj Reddy

PLC Input/Output Modules

S Bharadwaj Reddy

How PLC Controls ON/OFF Valve ?

S Bharadwaj Reddy

RSLogix 5000 PLC Programming Procedure

S Bharadwaj Reddy

DCS & Field Instruments Interview Questions

S Bharadwaj Reddy

PLC Program for Two Way Switch Logic

S Bharadwaj Reddy

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

WordPress Image Lightbox