Elements of Industrial Automation Week 08 Notes
Elements of Industrial Automation Week 08 Notes
Program Description
• RUNG000 again here is for Master Start and Stop the process.
• File; #N7:0 and File length is 10, hence output sequence is varied from N7:0 to N7:10 with each input.
• Destination is set to O:2 hence with each transition, N7:0 to N7:10 are moved to O:2 with masking.
• O:2/0 to O:2/5 are used as the output address to Traffic Lights and hence Mask has value 003Fh which
means data flow of N7:0/0…N7:10/0 to N7:0/5…N7:10/5 is passed and the remaining
N7:0/6…N7:10/6 to N7:0/15…N7:10/15 are blocked.
• Control parameters are assigned to register R6:0.
• Sequence of traffic lights to be operated are stored in the registers from N7:0 to N7:10 as following.
• Time base is set to 4secs, hence after every 4secs, output sequence is changed to its next register pattern
outputs which is then transferred to O:2 and O:2/0 to O:2/5 are energized accordingly.
• As we can see, from N7:1 to N7:4 have the same bit pattern. So, these bits are set to 1 for 4 cycles that
is 16secs. These bits are used for South-North Green light and East-West Red light.
• Similarly, the entire sequence is followed.
• When Stop I:1/1 is pressed, Position is reset to 0 and all the outputs are de-energized.
Runtime Test Cases
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 59
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Experiment: Develop PLC program for the following application
b) Water Level Indicator
Problem Description
One open tank is installed in the plant of which liquid level is to be controlled. When level reaches the Level
Low, Outlet flow is blocked and inlet flow is allowed until high level is achieved. And when Level High is
detected, outlet flow is allowed and inlet flow is blocked.
Problem Diagram
Diagram of a single tank level control
Problem Solution
• 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 these 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)
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 60
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Ladder Diagram to control this process
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.
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 61
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Lab Experiment: Execute a PLC program for the following applications
i) Traffic light controlling
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 62
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Lab Experiment: Execute a PLC program for the following applications
ii) Water level controlling
Note:
a) Motor switch = O:2/0
b) Low level indicator I:1/4
c) High Level indicator I:1/5
c) Level indicator send signals like Push Button
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 63