Unit_4 PLC Applications
Unit_4 PLC Applications
• To detect high and low level of liquid in the tank, two level switches are used which gives
output in digital terms, that is when corresponding levels are detected, it gives output
high otherwise remain low.
• To control level of this system, Single Acting piston valve can be used which has two
states, either fully open or fully close.
• Low Level Switch is mounted at the bottom of the tank and Level High switch mounted
at the side upper most position.
• When this inputs are detected, output to Control Valve has to be latched in order to
continuously fill or empty the system.
• Master start/stop is also provided to shut down or start the entire process.
PLC Program
Here is PLC program to Control Level of a Single Tank, along with program explanation and run time test
cases.
List of Inputs and Outputs
I:1/0 = Level High Switch (Input)
I:1/1 = Level Low Switch (Input)
O:2/0 = Inlet Valve (Output)
O:2/1 = Outlet Valve (Output)
I:1/14 = Start (Input)
I:1/15 = Stop (Input)
Program Description
• RUNG000 is simply for latching a coil and master start-stop buttons.
• RUNG001 is to control the outlet valve through O:2/1. This is done when Level High is detected.
• Latching of Output O:2/1 is done because when High Level is detected, input to RUNG001 is temporary,
like Push Button. So in order to keep outlet valve open until the Level Low I:1/1 is detected, latching is
done. XIO of Level Low Switch is connected in series so that when Level Low is detected, it goes true
closing the outlet valve.
• Similarly in RUNG002, it works exactly same. The only difference in RUNG002 is that extra I:1/14 contact
in parallel with LLS.
• Suppose when the system is started and the tank is partially filled, neither LHS nor LLS is detected, in this
case, outlet and inlet valves remain closed while inlet valve should open to start filling the tank because
it’s partially filled.
• To eliminate this error, I:1/14 (Start) is connected in parallel to LLS I:1/1 contact. This checks if LHS (I:1/0)
is detected or not. If LHS is not detected, then it opens the inlet valve until LHS is detected.
Applications :2: PLC Program for Counting of Parts from Conveyor
This is a PLC Program for Counting of Parts from Conveyor.
Problem Description
Parts are moved on the conveyor. Count the number of parts collected at the end of the
conveyor and display it on the display in PLC using Ladder Diagram programming language.
Problem Solution
• Mount Proximity Switch to detect the parts.
• Use output of proximity to counter as an input to increment data.
• Convert this number into appropriate numerical and show number of parts
collected.
• Most widely Inductive and Capacitive Proximity switches are used to detect parts.
• Inductive Proximity are used to detect metal objects while to detect other objects,
Capacitive Proximity Switch is most widely used.
• Capacitive Proximity detection capability ranges from 1 to 25mm distance.
• Mount this sensor according to the size of parts present on the conveyor and
width of conveyor so that this sensor can detect parts easily.
• CUP is used to increment the number of parts collected.
PLC Program
Here is PLC program for Counting of Parts from Conveyor, along with program
explanation and run time test cases.
List of Inputs and Outputs
I:1/0 = Start (Input)
I:1/1 = Stop (Input)
I:1/5 = Proximity (Part detection) (Input)
C5:0 = Counter Up (Counter)
O:6 = Display address (Output)
TOD = Hexadecimal to BCD conversion instruction (Compute)
B3:0/0 = Latching Bit (Bit)
Program Description
• RUNG000 is the master start/stop rung used to start and stop the counting process.
• RUNG001 is to count the number parts collected. Counter Up with address C5:0 is to
count the number of parts collected. Whenever a part is detected by Proximity Switch,
I:1/5 goes true momentarily and it increments accumulator value of the counter.
• RUNG002 is used to convert Decimal numbers into Binary Coded Decimal. Source
address is given as C5:0.ACC and destination address is given as O:6 which is of Display.
Converted BCD number is decoded by the display and the value present in accumulator
of CUP C5:0 is displayed.
Applications :3: PLC Program to Remove Empty Detected Bottle on Conveyor
Rung 0002:
Memory contacts used to turn on PUMP P1 (O: 0/0) with counter (C5:0).
Since we are going to shift pump operation from P1 to P2, two counters are used to shift between
Pl and P2.
Counter C5:1 is used to turn on PUMP P2(O:0/2).
Rung 0003 & 0004:
B3:0/0 enabled to turn on B3:0/2 which is to turn on PUMP P3(O:0/1) when high-level sensor(I:0/2)
turn ON and low-level sensor (I:0/3) is in off condition.B3:0/2 is latched with high-level sensor
because pump p3 should not go off once water started reducing.
Rung 0005:
When Pump 3 (O: 0/1) is running, the low-level sensor turns on will make Pump p3 off and pump
P1(O:0/0) ON.
Rung 0006:
Both Counter reset is done once the second counter (C5:1) done bit turns ON.