SlideShare a Scribd company logo
1 of 6
Download to read offline
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 58
Theory and Practical for week 08
Develop PLC program for the following application
a) Traffic Light
b) Water Level Indicator
Experiment: Develop PLC program for the following application
a) Traffic Light
Problem Description: Implement controlling of Traffic Lights in PLC using Ladder Diagram programming
language.
Problem Solution
• There are two methods to solve this problem. One is by using stack operation and the other one is by
using sequencer output method.
• Sequencer output method is best suited for this problem since very less configuration is needed and
program length is also reduced.
• In this method, we need to assign SQO instruction by configuring all the parameters given in the
instruction.
• File, Mask, Dest, Control, Length and Positions are parameters which we need to configure.
• File: It is the starting address for the registers in the sequencer file.
• Mask: Mask is the bit pattern through which data flow happens from source to the destination address.
If there is 1 in the masking, it passes values and if 0, it blocks the data flow.
• Dest: It is the address of the input to which the Sequencer Output instruction moves the data.
• Control: Is the address that contains the parameters with control information for the instruction. EN, DN
and ER are bit which sets according to the status of sequencer output. EN and DN bits are set just as in
timers. ER bit stands for Error bit, it is set when a negative position/length value is detected by the
processor, or zero length value.
• Length: It is the number of steps of the sequencer file starting at position 1. Position 0 is the start-up
position.
• Position: It indicated the steps that is desired to start the sequencer instruction. The start position is all
zeros, this is represented as the neutral position; so no outputs will be turned ON in position 0.
• So, to start the actual function of output sequence, Position 1 is determined as starting sequence while
programming.
• Integers or Bit Registers are used as Destination Address.
PLC Program
Here is PLC program to Control Traffic Lights, along with program explanation and run time test cases.
List of Inputs and Outputs
I:1/0 = Start (Input)
I:1/1 = Stop (Input)
B3:0/0 = Latched Coil Bit (Bit)
T4:0 = Timer to update output sequence (Timer)
SQO = Sequencer output (Sequencer)
O:2/0 = North-South Green Light (Output)
O:2/1 = North-South Yellow Light (Output)
O:2/2 = North-South Red Light (Output)
O:2/3 = East-West Green Light (Output)
O:2/4 = East-West Yellow Light (Output)
O:2/5 = East-West Red Light (Output)
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 59
Ladder Diagram to control Traffic Light
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
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 60
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)
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 61
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.
Runtime Test Cases
Inputs Outputs Physical Elements
I:1/0 = 1, I:1/1 = 0 O:2/1 = 1, O:2/0 = 0 LHS Detected, Open Outlet Valve
I:1/0 = 0, I:1/1 = 1 O:2/0 = 1. O:2/1 = 0 LLS Detected, Inlet Valve
I:1/0 = 0, I:1/1 = 0 O:2/0 = 1. O:2/1 = 0 None detected, Open Inlet Valve
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 62
Lab Experiment: Execute a PLC program for the following applications
i) Traffic light controlling
Vidya Vikas Educational Trust (R),
Vidya Vikas Polytechnic
27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028
Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 63
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

More Related Content

Similar to Elements of Industrial Automation Week 08 Notes.pdf

S-5-ppt INST.pptx
S-5-ppt INST.pptxS-5-ppt INST.pptx
S-5-ppt INST.pptxNaveenSp8
 
PLC unit 3 lab Brett Bloomberg-1
PLC unit 3 lab Brett Bloomberg-1PLC unit 3 lab Brett Bloomberg-1
PLC unit 3 lab Brett Bloomberg-1Brett Bloomberg
 
PLC Ladder Diagrams.pptx
PLC Ladder Diagrams.pptxPLC Ladder Diagrams.pptx
PLC Ladder Diagrams.pptxsebgeorge1
 
Pt 51 kit - Peripheral self-test
Pt 51 kit - Peripheral self-testPt 51 kit - Peripheral self-test
Pt 51 kit - Peripheral self-testrajbabureliance
 
Repetition, Basic loop structures, Loop programming techniques
Repetition, Basic loop structures, Loop programming techniquesRepetition, Basic loop structures, Loop programming techniques
Repetition, Basic loop structures, Loop programming techniquesJason J Pulikkottil
 
Swinburne University of Technology Faculty of Science, E.docx
Swinburne University of Technology Faculty of Science, E.docxSwinburne University of Technology Faculty of Science, E.docx
Swinburne University of Technology Faculty of Science, E.docxmattinsonjanel
 
detail of flowchart and algorithm that are used in programmingpdf
detail of flowchart and algorithm that are used in programmingpdfdetail of flowchart and algorithm that are used in programmingpdf
detail of flowchart and algorithm that are used in programmingpdfssuserf86fba
 
Algorithm Flowchart Manual ALGORITHM FLOWCHART MANUAL For STUDENTS
Algorithm   Flowchart Manual ALGORITHM   FLOWCHART MANUAL For STUDENTSAlgorithm   Flowchart Manual ALGORITHM   FLOWCHART MANUAL For STUDENTS
Algorithm Flowchart Manual ALGORITHM FLOWCHART MANUAL For STUDENTSAlicia Edwards
 
Digital Logic Counter.ppt
Digital Logic Counter.pptDigital Logic Counter.ppt
Digital Logic Counter.pptRaziyaSultana30
 
UNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptxUNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptxGowrishankar C
 
Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01VincentAcapen1
 

Similar to Elements of Industrial Automation Week 08 Notes.pdf (20)

S-5-ppt INST.pptx
S-5-ppt INST.pptxS-5-ppt INST.pptx
S-5-ppt INST.pptx
 
PLC unit 3 lab Brett Bloomberg-1
PLC unit 3 lab Brett Bloomberg-1PLC unit 3 lab Brett Bloomberg-1
PLC unit 3 lab Brett Bloomberg-1
 
PLC Ladder Diagrams.pptx
PLC Ladder Diagrams.pptxPLC Ladder Diagrams.pptx
PLC Ladder Diagrams.pptx
 
Pt 51 kit - Peripheral self-test
Pt 51 kit - Peripheral self-testPt 51 kit - Peripheral self-test
Pt 51 kit - Peripheral self-test
 
Ring counter
Ring counterRing counter
Ring counter
 
Repetition, Basic loop structures, Loop programming techniques
Repetition, Basic loop structures, Loop programming techniquesRepetition, Basic loop structures, Loop programming techniques
Repetition, Basic loop structures, Loop programming techniques
 
Swinburne University of Technology Faculty of Science, E.docx
Swinburne University of Technology Faculty of Science, E.docxSwinburne University of Technology Faculty of Science, E.docx
Swinburne University of Technology Faculty of Science, E.docx
 
Timing & Control.pptx
Timing & Control.pptxTiming & Control.pptx
Timing & Control.pptx
 
detail of flowchart and algorithm that are used in programmingpdf
detail of flowchart and algorithm that are used in programmingpdfdetail of flowchart and algorithm that are used in programmingpdf
detail of flowchart and algorithm that are used in programmingpdf
 
Algorithm Flowchart Manual ALGORITHM FLOWCHART MANUAL For STUDENTS
Algorithm   Flowchart Manual ALGORITHM   FLOWCHART MANUAL For STUDENTSAlgorithm   Flowchart Manual ALGORITHM   FLOWCHART MANUAL For STUDENTS
Algorithm Flowchart Manual ALGORITHM FLOWCHART MANUAL For STUDENTS
 
Algorithm manual
Algorithm manualAlgorithm manual
Algorithm manual
 
Digital Logic Counter.ppt
Digital Logic Counter.pptDigital Logic Counter.ppt
Digital Logic Counter.ppt
 
PLC
PLCPLC
PLC
 
UNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptxUNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptx
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
 
IIA module 6
IIA module 6IIA module 6
IIA module 6
 
Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01
 
EC203DSD - Module 5 - 3.ppt
EC203DSD - Module 5 - 3.pptEC203DSD - Module 5 - 3.ppt
EC203DSD - Module 5 - 3.ppt
 
8155 Basic Concepts
8155 Basic Concepts8155 Basic Concepts
8155 Basic Concepts
 
Direct operation of a motor using or logic
Direct operation of a motor using or logicDirect operation of a motor using or logic
Direct operation of a motor using or logic
 

More from THANMAY JS

Multimedia and Animation 20CS21P Portfolio.pdf
Multimedia and Animation 20CS21P Portfolio.pdfMultimedia and Animation 20CS21P Portfolio.pdf
Multimedia and Animation 20CS21P Portfolio.pdfTHANMAY JS
 
Fundamentals of Automation Technology 20EE43P Portfolio.pdf
Fundamentals of Automation Technology 20EE43P Portfolio.pdfFundamentals of Automation Technology 20EE43P Portfolio.pdf
Fundamentals of Automation Technology 20EE43P Portfolio.pdfTHANMAY JS
 
Elements of Industrial Automation Portfolio.pdf
Elements of Industrial Automation Portfolio.pdfElements of Industrial Automation Portfolio.pdf
Elements of Industrial Automation Portfolio.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T Chapter 5.pdf
Fundamentals of Computer 20CS11T Chapter 5.pdfFundamentals of Computer 20CS11T Chapter 5.pdf
Fundamentals of Computer 20CS11T Chapter 5.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T Chapter 4.pdf
Fundamentals of Computer 20CS11T Chapter 4.pdfFundamentals of Computer 20CS11T Chapter 4.pdf
Fundamentals of Computer 20CS11T Chapter 4.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T Chapter 3.pdf
Fundamentals of Computer 20CS11T Chapter 3.pdfFundamentals of Computer 20CS11T Chapter 3.pdf
Fundamentals of Computer 20CS11T Chapter 3.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T Chapter 2.pdf
Fundamentals of Computer 20CS11T Chapter 2.pdfFundamentals of Computer 20CS11T Chapter 2.pdf
Fundamentals of Computer 20CS11T Chapter 2.pdfTHANMAY JS
 
Fundamentals of Computer 20CS11T.pdf
Fundamentals of Computer 20CS11T.pdfFundamentals of Computer 20CS11T.pdf
Fundamentals of Computer 20CS11T.pdfTHANMAY JS
 
Elements of Industrial Automation Week 09 Notes.pdf
Elements of Industrial Automation Week 09 Notes.pdfElements of Industrial Automation Week 09 Notes.pdf
Elements of Industrial Automation Week 09 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 06 Notes.pdf
Elements of Industrial Automation Week 06 Notes.pdfElements of Industrial Automation Week 06 Notes.pdf
Elements of Industrial Automation Week 06 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 05 Notes.pdf
Elements of Industrial Automation Week 05 Notes.pdfElements of Industrial Automation Week 05 Notes.pdf
Elements of Industrial Automation Week 05 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 04 Notes.pdf
Elements of Industrial Automation Week 04 Notes.pdfElements of Industrial Automation Week 04 Notes.pdf
Elements of Industrial Automation Week 04 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 03 Notes.pdf
Elements of Industrial Automation Week 03 Notes.pdfElements of Industrial Automation Week 03 Notes.pdf
Elements of Industrial Automation Week 03 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 02 Notes.pdf
Elements of Industrial Automation Week 02 Notes.pdfElements of Industrial Automation Week 02 Notes.pdf
Elements of Industrial Automation Week 02 Notes.pdfTHANMAY JS
 
Elements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfElements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfTHANMAY JS
 
Automation and Robotics Week 08 Theory Notes 20ME51I.pdf
Automation and Robotics Week 08 Theory Notes 20ME51I.pdfAutomation and Robotics Week 08 Theory Notes 20ME51I.pdf
Automation and Robotics Week 08 Theory Notes 20ME51I.pdfTHANMAY JS
 
Automation and Robotics Week 04 Theory Notes 20ME51I.pdf
Automation and Robotics Week 04 Theory Notes 20ME51I.pdfAutomation and Robotics Week 04 Theory Notes 20ME51I.pdf
Automation and Robotics Week 04 Theory Notes 20ME51I.pdfTHANMAY JS
 
Automation and Robotics Week 03 Theory Notes 20ME51I.pdf
Automation and Robotics Week 03 Theory Notes 20ME51I.pdfAutomation and Robotics Week 03 Theory Notes 20ME51I.pdf
Automation and Robotics Week 03 Theory Notes 20ME51I.pdfTHANMAY JS
 
Automation and Robotics Week 02 Theory Notes 20ME51I.pdf
Automation and Robotics Week 02 Theory Notes 20ME51I.pdfAutomation and Robotics Week 02 Theory Notes 20ME51I.pdf
Automation and Robotics Week 02 Theory Notes 20ME51I.pdfTHANMAY JS
 
Automation and Robotics Week 01 Theory Notes 20ME51I.pdf
Automation and Robotics Week 01 Theory Notes 20ME51I.pdfAutomation and Robotics Week 01 Theory Notes 20ME51I.pdf
Automation and Robotics Week 01 Theory Notes 20ME51I.pdfTHANMAY JS
 

More from THANMAY JS (20)

Multimedia and Animation 20CS21P Portfolio.pdf
Multimedia and Animation 20CS21P Portfolio.pdfMultimedia and Animation 20CS21P Portfolio.pdf
Multimedia and Animation 20CS21P Portfolio.pdf
 
Fundamentals of Automation Technology 20EE43P Portfolio.pdf
Fundamentals of Automation Technology 20EE43P Portfolio.pdfFundamentals of Automation Technology 20EE43P Portfolio.pdf
Fundamentals of Automation Technology 20EE43P Portfolio.pdf
 
Elements of Industrial Automation Portfolio.pdf
Elements of Industrial Automation Portfolio.pdfElements of Industrial Automation Portfolio.pdf
Elements of Industrial Automation Portfolio.pdf
 
Fundamentals of Computer 20CS11T Chapter 5.pdf
Fundamentals of Computer 20CS11T Chapter 5.pdfFundamentals of Computer 20CS11T Chapter 5.pdf
Fundamentals of Computer 20CS11T Chapter 5.pdf
 
Fundamentals of Computer 20CS11T Chapter 4.pdf
Fundamentals of Computer 20CS11T Chapter 4.pdfFundamentals of Computer 20CS11T Chapter 4.pdf
Fundamentals of Computer 20CS11T Chapter 4.pdf
 
Fundamentals of Computer 20CS11T Chapter 3.pdf
Fundamentals of Computer 20CS11T Chapter 3.pdfFundamentals of Computer 20CS11T Chapter 3.pdf
Fundamentals of Computer 20CS11T Chapter 3.pdf
 
Fundamentals of Computer 20CS11T Chapter 2.pdf
Fundamentals of Computer 20CS11T Chapter 2.pdfFundamentals of Computer 20CS11T Chapter 2.pdf
Fundamentals of Computer 20CS11T Chapter 2.pdf
 
Fundamentals of Computer 20CS11T.pdf
Fundamentals of Computer 20CS11T.pdfFundamentals of Computer 20CS11T.pdf
Fundamentals of Computer 20CS11T.pdf
 
Elements of Industrial Automation Week 09 Notes.pdf
Elements of Industrial Automation Week 09 Notes.pdfElements of Industrial Automation Week 09 Notes.pdf
Elements of Industrial Automation Week 09 Notes.pdf
 
Elements of Industrial Automation Week 06 Notes.pdf
Elements of Industrial Automation Week 06 Notes.pdfElements of Industrial Automation Week 06 Notes.pdf
Elements of Industrial Automation Week 06 Notes.pdf
 
Elements of Industrial Automation Week 05 Notes.pdf
Elements of Industrial Automation Week 05 Notes.pdfElements of Industrial Automation Week 05 Notes.pdf
Elements of Industrial Automation Week 05 Notes.pdf
 
Elements of Industrial Automation Week 04 Notes.pdf
Elements of Industrial Automation Week 04 Notes.pdfElements of Industrial Automation Week 04 Notes.pdf
Elements of Industrial Automation Week 04 Notes.pdf
 
Elements of Industrial Automation Week 03 Notes.pdf
Elements of Industrial Automation Week 03 Notes.pdfElements of Industrial Automation Week 03 Notes.pdf
Elements of Industrial Automation Week 03 Notes.pdf
 
Elements of Industrial Automation Week 02 Notes.pdf
Elements of Industrial Automation Week 02 Notes.pdfElements of Industrial Automation Week 02 Notes.pdf
Elements of Industrial Automation Week 02 Notes.pdf
 
Elements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfElements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdf
 
Automation and Robotics Week 08 Theory Notes 20ME51I.pdf
Automation and Robotics Week 08 Theory Notes 20ME51I.pdfAutomation and Robotics Week 08 Theory Notes 20ME51I.pdf
Automation and Robotics Week 08 Theory Notes 20ME51I.pdf
 
Automation and Robotics Week 04 Theory Notes 20ME51I.pdf
Automation and Robotics Week 04 Theory Notes 20ME51I.pdfAutomation and Robotics Week 04 Theory Notes 20ME51I.pdf
Automation and Robotics Week 04 Theory Notes 20ME51I.pdf
 
Automation and Robotics Week 03 Theory Notes 20ME51I.pdf
Automation and Robotics Week 03 Theory Notes 20ME51I.pdfAutomation and Robotics Week 03 Theory Notes 20ME51I.pdf
Automation and Robotics Week 03 Theory Notes 20ME51I.pdf
 
Automation and Robotics Week 02 Theory Notes 20ME51I.pdf
Automation and Robotics Week 02 Theory Notes 20ME51I.pdfAutomation and Robotics Week 02 Theory Notes 20ME51I.pdf
Automation and Robotics Week 02 Theory Notes 20ME51I.pdf
 
Automation and Robotics Week 01 Theory Notes 20ME51I.pdf
Automation and Robotics Week 01 Theory Notes 20ME51I.pdfAutomation and Robotics Week 01 Theory Notes 20ME51I.pdf
Automation and Robotics Week 01 Theory Notes 20ME51I.pdf
 

Recently uploaded

Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Elements of Industrial Automation Week 08 Notes.pdf

  • 1. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 58 Theory and Practical for week 08 Develop PLC program for the following application a) Traffic Light b) Water Level Indicator Experiment: Develop PLC program for the following application a) Traffic Light Problem Description: Implement controlling of Traffic Lights in PLC using Ladder Diagram programming language. Problem Solution • There are two methods to solve this problem. One is by using stack operation and the other one is by using sequencer output method. • Sequencer output method is best suited for this problem since very less configuration is needed and program length is also reduced. • In this method, we need to assign SQO instruction by configuring all the parameters given in the instruction. • File, Mask, Dest, Control, Length and Positions are parameters which we need to configure. • File: It is the starting address for the registers in the sequencer file. • Mask: Mask is the bit pattern through which data flow happens from source to the destination address. If there is 1 in the masking, it passes values and if 0, it blocks the data flow. • Dest: It is the address of the input to which the Sequencer Output instruction moves the data. • Control: Is the address that contains the parameters with control information for the instruction. EN, DN and ER are bit which sets according to the status of sequencer output. EN and DN bits are set just as in timers. ER bit stands for Error bit, it is set when a negative position/length value is detected by the processor, or zero length value. • Length: It is the number of steps of the sequencer file starting at position 1. Position 0 is the start-up position. • Position: It indicated the steps that is desired to start the sequencer instruction. The start position is all zeros, this is represented as the neutral position; so no outputs will be turned ON in position 0. • So, to start the actual function of output sequence, Position 1 is determined as starting sequence while programming. • Integers or Bit Registers are used as Destination Address. PLC Program Here is PLC program to Control Traffic Lights, along with program explanation and run time test cases. List of Inputs and Outputs I:1/0 = Start (Input) I:1/1 = Stop (Input) B3:0/0 = Latched Coil Bit (Bit) T4:0 = Timer to update output sequence (Timer) SQO = Sequencer output (Sequencer) O:2/0 = North-South Green Light (Output) O:2/1 = North-South Yellow Light (Output) O:2/2 = North-South Red Light (Output) O:2/3 = East-West Green Light (Output) O:2/4 = East-West Yellow Light (Output) O:2/5 = East-West Red Light (Output)
  • 2. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 59 Ladder Diagram to control Traffic Light 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
  • 3. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 60 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)
  • 4. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 61 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. Runtime Test Cases Inputs Outputs Physical Elements I:1/0 = 1, I:1/1 = 0 O:2/1 = 1, O:2/0 = 0 LHS Detected, Open Outlet Valve I:1/0 = 0, I:1/1 = 1 O:2/0 = 1. O:2/1 = 0 LLS Detected, Inlet Valve I:1/0 = 0, I:1/1 = 0 O:2/0 = 1. O:2/1 = 0 None detected, Open Inlet Valve
  • 5. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 62 Lab Experiment: Execute a PLC program for the following applications i) Traffic light controlling
  • 6. Vidya Vikas Educational Trust (R), Vidya Vikas Polytechnic 27-128, Mysore - Bannur Road Alanahally, Alanahally Post, Mysuru, Karnataka 570028 Prepared by: Mr Thanmay J.S, H.O.D Mechanical Engineering VVETP, Mysore Page | 63 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