SlideShare a Scribd company logo
1 of 59
Department of Mechanical Engineering
JSS Academy of Technical Education, Bangalore-560060
MECHATRONICS
(Course Code:17ME753)
MECHATRONICS
CHAPTER 5: Programmable logic controller
TEXT BOOKS
• Mechatronics Electronic control system in Mechanical and Electrical Engineering, W Bolton,
Pearson Education, 1st Ed., 2005.
REFERENCE BOOKS:
• Mechatronics by HMT Ltd. - Tata McGrawHill, 1st Edition, 2000
Further Reference:
National Programme on Technology Enhanced Learning (NPTEL)
https://nptel.ac.in/courses/112103174/1 by Dr. S. N. Joshi (IITG)
• Explain the concepts of PLC, the process of integration in mechatronics system.
Learning Objectives
Module 3
Programmable logic controller: Introduction to PLC's, basic structure, Principle of
operation, Programming (concept of ladder diagram), concept of latching & selection
of a PLC.
Programmable Logic Controller
• PLC: Basically a controller.
• Controller: Controls the parameters of the system that affects the system
performance. (e.g. car)
• Logical controller: controls the parameters with certain logic. (e.g. Lift)
• Programmable: Can be reprogrammed for different tasks by end user
Introduction
Programmable Logic Controller
• Microprocessor-based controller, uses programmable memory to store
instructions to implement functions like, logic, sequence, timing, etc. to control
parameters of the system for effectiveness.
• Can be reprogrammed for different tasks by end user.
Introduction
Programmable Logic Controller
Reasons why PLCs are being widely used
• Rugged and designed to withstand vibrations, temperature, humidity and noise
• User friendly, fast and easy to operate
• Eliminate the need for hard wired relay logic
• Automation in industries (Assembly, Bottling plant, Welding, Painting, MHE etc.)
• Its input and output modules can be extended depending on the requirements
Programmable Logic Controller
Advantages
• Less wiring, Wiring between devices and relay contacts are done in the PLC
program.
• Easier and faster to make changes.
• Troubleshooting aids make programming easier and reduce downtime.
• Reliable components make these likely to operate for years before failure.
Programmable Logic Controller
Advantages
• Eliminates much of the hard wiring that was associated with conventional relay
control circuits.
• The program takes the place of the external
wiring that would be required for control of a
process.
Programmable Logic Controller
Advantages
• Increased Reliability: Once a program has been written and tested it can be
downloaded to other PLCs.
• Since all the logic is contained in the PLC’s
memory, there is no chance of making a
logic wiring error.
Programmable Logic Controller
Advantages
• More Flexibility: Original equipment manufacturers (OEMs) can provide system
updates for a process by simply sending out a new program.
• It is easier to create and change a program in a
PLC than to wire and rewire a circuit.
• End-users can modify the program in the field.
Programmable Logic Controller
Advantages
• Lower Costs: Originally PLCs were designed to replace relay control logic.
• Generally, if an application requires more than
about 6 control relays, it will usually be less
expensive to install a PLC.
Programmable Logic Controller
Advantages
• Communications Capability: A PLC can communicate with other controllers or
computer equipment
• They can be networked to perform functions as:
supervisory control, data gathering, monitoring
devices and process parameters, and
downloading and uploading of programs.
Programmable Logic Controller
Advantages
• Faster Response Time: PLCs operate in real-time which means that an event
taking place in the field will result in an operation or output taking place.
• Machines that process thousands of items per
second and objects that spend only a fraction of
a second in front of a sensor require the PLC’s
quick response capability.
Programmable Logic Controller
Advantages
• Easier To Troubleshoot: PLCs have resident diagnostic and override functions
that allows users to easily trace and correct software and hardware problems.
• The control program can be watched in real-time
as it executes to find and fix problems.
Basic Structure
Basic Structure
Programmable Logic Controller
Basic Structure
Sensors & Transducers Actuators
Logic
Solenoid valve
Motors
LED display
Sounds / Alarm
Programmable Logic Controller
Basic Structure
1. Power supply
2. Central processing unit (CPU)
3. Storage / Memory
4. Input/output interface circuit
5. The function module
6. The communication module
7. Programming unit
Basic Structure
• PLC power supply converts a line voltage, commonly 120 or 240
volts AC, or Alternating Current, into a useable DC, or Direct
Current, voltage, commonly 24 volts, to power on the PLC and its
components.
• Modular style PLC racks, the power supply is also part of the
backplane or rack.
• While the main power supply is the primary source of power for the
PLC, there is usually a battery backup as well, to provide energy to
the memory of the PLC in case of a power supply failure
Power supply
Programmable Logic Controller
CPU
• Control centre of the PLC
• Performs the routine check
• It controls and processes all the operations within the PLC
Processor Module
Programmable Logic Controller
Memory: The memory elements available in PLC are;
• ROM: Permanent storage for the OS and fixed data.
• RAM: For user's program.
• Programs in RAM can be changed by the user.
• To prevent the loss of these programs, when the supply is switched off, a
battery is provided in the PLC to maintain the RAM contents for a period of time.
Programmable Logic Controller
lnput / Output (l/O) circuitry
• I/O unit provides the interface between the system
and outside world.
• Programs are entered into using the input unit.
• The programs, can also be entered by means of PC,
with an appropriate software package.
Programmable Logic Controller
lnput circuitry
• I/O unit provides the interface between the
system and outside world.
• Programs are entered into using the input unit.
• The programs, can also be entered by means
of PC, with an appropriate software package.
Programmable Logic Controller
Output circuitry
• I/O unit provides the interface between the
system and outside world.
• PLCs employ an optical isolator, which uses
light to electrically isolate the internal
components from the input and output
terminals.
Ladder Logic / Ladder Program / Ladder diagram (LD)
• It is used to program a PLCs.
• It is a graphical programming language which expresses logical operations with
symbolic notation using ladder diagrams.
• It is used by engineers and electricians to execute logical, sequential, counting,
timing and arithmetic tasks in order to carry industrial automation applications.
• Ladder logic programming is still used today because the core fundamental logic
principles for machine and process control are still the same.
Ladder Logic / Ladder Program
Concept of Ladder Logic
• In the earlier days, machine and process automation
was accomplished using a hard wired control system
known as relay logic.
• Ladder logic was originally designed to replace the
use of hard wired relay logic circuits for machine
control.
• The ladder logic programming code actual looks like
an electrical schematic drawing.
Ladder Logic / Ladder Program
Concept of Ladder Logic
• In PLC programming, ladder logic is a programming language, used for
developing logical expressions in order to automate tasks / process.
Ladder Logic / Ladder Program
Concept of Ladder Logic
• Ladder logic is used extensively for programming PLCs in industrial automation
applications.
• E.g. : Material Handling Conveyor System / Pallet Packing and Strapping.
• Ball Mill Lubrication System / Logistics Package Conveying and Sorting.
• Cement Batching / Beverage Bottling and Labelling.
• Hopper and Tank Level Control / Air / Liquid Flow and Pressure Control.
Ladder Logic / Ladder Program
Concepts Ladder Logic
• A ladder diagram is a type of schematic diagram used in industrial automation that represents
logic control circuits.
• Ladder diagrams are composed of two vertical power rails and horizontal logic rungs to form what
looks like a ladder. The control logic in a ladder diagram is contained within the rungs.
Ladder Logic / Ladder Program
What is a Ladder Diagram?
• The name “ladder diagram” is derived
from the program’s resemblance to a
ladder with two vertical rails and a series
of horizontal rungs between them.
• The rails are called “power rails” in the
ladder diagram.
• The reason is because the early control system designers were accustomed to relay logic control
circuits and ladder diagrams closely mimic these.
• The person / staff already knows how to read relay control circuits, so using ladder diagrams for
programming a PLC.
• Also, they were easily able to troubleshooting control system problems.
Ladder Logic / Ladder Program
Why is a ladder diagram used for PLC programming?
Ladder diagram / Logic
• Ladder diagram (LD): official name given in the international PLC programming
standard IEC-61131. (International Electrotechnical Commission)
• Symbols represent opening and closing relays, counters, timers, shift registers,
etc.
• Symbols are arranged in the desired program routine.
• Rules in ladder logic are termed “rungs.”
• Each rung has a single output.
The Logic Behind The Ladder
Seven basic steps of a ladder diagram.
1. Rails: Two rails (power rails) in a ladder diagram, represented by vertical lines.
• The power flows from the left hand side to the right hand side.
2. Rungs: Horizontal lines, connects the rails to the logic expressions.
The Logic Behind The Ladder
(a), (b) Alternative ways of drawing an electric circuit, (c) comparable rung in a ladder program.
The sequence followed by a PLC when carrying out a program as follows.
1. Scan the inputs associated with one rung of the ladder program.
2. Solve the logic operation involving those inputs.
3. Set/reset the outputs for that rung.
4. Move on to the next rung and repeat operations 1, 2, 3.
5. Move on to the next rung and repeat operations 1, 2, 3.
6. And so on until the end of the program with each rung of the ladder program scanned in turn.
7. The PLC then goes back to the beginning of the program and starts again.
if A and B are both closed then a solenoid (output) is energised.
The Logic Behind The Ladder
3. Inputs: Inputs are external control actions (Sensors and Transducers).
E.g. Push button being pressed, limit switch being triggered.
• Inputs are hardwired to the PLC terminals.
• Represented in the ladder diagram by a normally open (NO) or normally closed
(NC) contact symbol.
The Logic Behind The Ladder
4. Outputs: Outputs are external devices (Actuators).
E.g. Turn on and off an electric motor or a solenoid valve.
• The outputs are hardwired to the PLC terminals.
• Represented in the ladder diagram by a relay coil symbol.
The Logic Behind The Ladder
5. Logic Expressions: The logic expressions are used in combination with the
inputs and outputs to formulate the desired control
operations.
6. Address Notation: Address notation describes the input, output, logic expression,
memory addressing structure of the PLC.
• Tag names: descriptions allocated to the addresses.
The Logic Behind The Ladder
7. Comments:
• Important part of a ladder diagram.
• Comments are displayed at the start of each rung.
• Used to describe the logical expressions and control operations of that rung.
• Understanding ladder diagrams are easier by using comments.
How to Read Ladder Logic
Microprocessors operates on the binary concept.
‘Binary’: principle, is that the event/s can be thought of in one of two states.
The states can be defined as:
• 1 or 0
• True or False
• On or Off
• High or Low
• Yes or No
How to Read Ladder Logic
• Ladder logic uses symbolic expressions and a graphical editor for reading and
writing code making it easier.
• If real world event is translated into ladder logic, it symbolically expressed in the
form of a normally open (NO) contact.
E.g. events like a button being pushed or a limit switch being activated.
How to Read Ladder Logic
Example
• Consider event ‘A’, has one of two states, TRUE or FALSE (1 or 0).
• Event is associated with the normally open (NO) contact can be TRUE or FALSE.
• If the event is TRUE, highlighted in green.
ladder logic truth table
How to Read Ladder Logic
• A normally open (NO) contact alone cannot decide what action to take to
automate the event
• It merely tells, what is the state of the event.
• Logic is the ability to decide what action needs to be taken depending on the
state of one or more events.
• Logic concept – IF, THEN logic functions.
Ladder Logic Functions
• Consider an event = A. Allocated to normally open (NO) contact.
• In ladder logic, the events are defined as PLC inputs.
• Let the result of the logic function = ‘Y’.
• The result of a rung logic function is defined as a PLC output.
• The two fundamental elements on a rung in a ladder diagram is first line of code.
Ladder Logic Functions
Two possible logic iterations:
• IF A = FALSE THEN Y = FALSE
• IF A = TRUE THEN Y = TRUE
Ladder Logic Basics – In Built Functions
Ladder Logic Functions
Two possible logic iterations:
• IF A = FALSE THEN Y = FALSE
• IF A = TRUE THEN Y = TRUE
Ladder Logic Basics – In Built Functions
Ladder logic diagram expressed symbolically in the
form of a normally open (NO) contact for the input and
the output relay coil.
In ladder logic fundamental logic functions are;
1. AND
2. OR
3. NOR
4. NAND
5. XOR
Ladder Logic Functions
Logic functions
(a) AND, (b) OR, (c) NOR, (d) NAND, (e) XOR
Ladder Logic AND Functions
Ladder Logic OR Functions
Ladder Logic
The sequence followed by a PLC when carrying out a program
1. Scan the inputs associated with one rung of the ladder program.
2. Solve the logic operation involving those inputs.
3. Set/reset the outputs for that rung.
4. Move on to the next rung and repeat operations 1, 2, 3.
5. Move on to the next rung and repeat operations 1, 2, 3.
6. So on until the end of the program with each rung of the ladder program.
The PLC then goes back to the beginning of the program and starts again.
Ladder Logic
Concept of Latching
• There are situations where it is necessary to hold a coil energized, even when the input which
energized it ceases.
• The term latch circuit is used for the circuit which carries out such an operation.
• It is a self-maintaining circuit, after being energized, it maintains that state until another input is
received.
Concept of Latching
• When Input 1 is energized and closes, there is an output. However, when there is an output, a
set of contacts associated with the output is energized and closes. The contacts is in OR the
Input 1 contacts.
• Even if Input 1 contacts open, the circuit will still maintain the output energized.
• The only way to release the output is by operating the normally closed contact Input 2
Concept of Latching
An example of a latch circuit: consider the requirement for a PLC to control a motor
• We require is a system that will still stop if a failure occurs in the stop switch.
• The program now has the stop switch as open contacts. However, because the hard-wired stop
switch has normally closed contacts, then the program receives the signal to close the program
contacts.
• Pressing the stop switch then opens the program contacts and stops the system
Stop system: (b) safe
Selection of a PLC
The following criteria need to be considered:
1. Types of inputs/outputs required, like;
- Isolation
- Out-board power supply for inputs/outputs
- Signal conditioning
2. lnput/Output capacity required
3. Size of memory required: linked with no. of I/O and complexity of program used
4. Speed and power required for CPU: linked to the no. of types of instructions,
handled by a PLC.
End

More Related Content

What's hot

Classical and Modern Control Theory
Classical and Modern Control TheoryClassical and Modern Control Theory
Classical and Modern Control TheoryQazi Ejaz
 
Unit 1(part-1)Introduction of mechatronics
Unit 1(part-1)Introduction of mechatronicsUnit 1(part-1)Introduction of mechatronics
Unit 1(part-1)Introduction of mechatronicsswathi1998
 
Mechatronics (Sensors)
Mechatronics   (Sensors)Mechatronics   (Sensors)
Mechatronics (Sensors)Abhilash Mu
 
Modern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsModern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsAmr E. Mohamed
 
Basics of Sensors & Transducers
Basics of Sensors & TransducersBasics of Sensors & Transducers
Basics of Sensors & TransducersBurdwan University
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsAmr E. Mohamed
 
Indian Institutte of Robotics , Grippers
Indian Institutte of Robotics , GrippersIndian Institutte of Robotics , Grippers
Indian Institutte of Robotics , GrippersSagar Singhal
 
PLC Programming Languages
PLC Programming LanguagesPLC Programming Languages
PLC Programming LanguagesLIJU. G. CHACKO
 
Root locus techniques
Root locus techniquesRoot locus techniques
Root locus techniquesjawaharramaya
 
introduction to mechatronics
introduction to mechatronicsintroduction to mechatronics
introduction to mechatronicsBilal_11kb
 
Transducer ppt
Transducer pptTransducer ppt
Transducer pptManishaC6
 
Plc presentation
Plc presentationPlc presentation
Plc presentationAkshay Modi
 
Module 5 :Voltage regulator IC 78XX 79XX LM317
Module 5 :Voltage regulator IC 78XX 79XX LM317Module 5 :Voltage regulator IC 78XX 79XX LM317
Module 5 :Voltage regulator IC 78XX 79XX LM317chandrakant shinde
 

What's hot (20)

Classical and Modern Control Theory
Classical and Modern Control TheoryClassical and Modern Control Theory
Classical and Modern Control Theory
 
Unit 1(part-1)Introduction of mechatronics
Unit 1(part-1)Introduction of mechatronicsUnit 1(part-1)Introduction of mechatronics
Unit 1(part-1)Introduction of mechatronics
 
Lecture 2 Servomotors - Basics & Working
Lecture 2   Servomotors - Basics & WorkingLecture 2   Servomotors - Basics & Working
Lecture 2 Servomotors - Basics & Working
 
Mechatronics (Sensors)
Mechatronics   (Sensors)Mechatronics   (Sensors)
Mechatronics (Sensors)
 
Signal conditioning
Signal conditioningSignal conditioning
Signal conditioning
 
Plc (programming)
Plc (programming)Plc (programming)
Plc (programming)
 
Modern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsModern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI Systems
 
Basics of Sensors & Transducers
Basics of Sensors & TransducersBasics of Sensors & Transducers
Basics of Sensors & Transducers
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
Indian Institutte of Robotics , Grippers
Indian Institutte of Robotics , GrippersIndian Institutte of Robotics , Grippers
Indian Institutte of Robotics , Grippers
 
PLC Programming Languages
PLC Programming LanguagesPLC Programming Languages
PLC Programming Languages
 
Encoders
EncodersEncoders
Encoders
 
Root locus techniques
Root locus techniquesRoot locus techniques
Root locus techniques
 
introduction to mechatronics
introduction to mechatronicsintroduction to mechatronics
introduction to mechatronics
 
Unit 2 servo motor
Unit 2 servo motorUnit 2 servo motor
Unit 2 servo motor
 
Transducer ppt
Transducer pptTransducer ppt
Transducer ppt
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
Plc presentation
Plc presentationPlc presentation
Plc presentation
 
Introduction to sensors
Introduction to sensorsIntroduction to sensors
Introduction to sensors
 
Module 5 :Voltage regulator IC 78XX 79XX LM317
Module 5 :Voltage regulator IC 78XX 79XX LM317Module 5 :Voltage regulator IC 78XX 79XX LM317
Module 5 :Voltage regulator IC 78XX 79XX LM317
 

Similar to L3 Programmable logic controller

Similar to L3 Programmable logic controller (20)

Traffic Control Signalling
Traffic Control SignallingTraffic Control Signalling
Traffic Control Signalling
 
Introduction to PLC
Introduction to PLCIntroduction to PLC
Introduction to PLC
 
Lect01
Lect01Lect01
Lect01
 
UNIT-IV.ppt
UNIT-IV.pptUNIT-IV.ppt
UNIT-IV.ppt
 
plc_scada.pptx
plc_scada.pptxplc_scada.pptx
plc_scada.pptx
 
lect 01 (1).pdf
lect 01 (1).pdflect 01 (1).pdf
lect 01 (1).pdf
 
Plc introduction
Plc  introductionPlc  introduction
Plc introduction
 
PLC presentation
PLC presentationPLC presentation
PLC presentation
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
 
PLC
PLCPLC
PLC
 
Sandeeprana
SandeepranaSandeeprana
Sandeeprana
 
Programmable Logic Controllers
Programmable Logic ControllersProgrammable Logic Controllers
Programmable Logic Controllers
 
chapter 2 IE.pptx
chapter 2 IE.pptxchapter 2 IE.pptx
chapter 2 IE.pptx
 
Plc basics
Plc   basicsPlc   basics
Plc basics
 
PLC-converted.pdf
PLC-converted.pdfPLC-converted.pdf
PLC-converted.pdf
 
UNIT IV PROGRAMMABLE LOGIC CONTROLLER
UNIT IV PROGRAMMABLE LOGIC CONTROLLER UNIT IV PROGRAMMABLE LOGIC CONTROLLER
UNIT IV PROGRAMMABLE LOGIC CONTROLLER
 
1913523 vanshika
1913523 vanshika1913523 vanshika
1913523 vanshika
 
Programmable Logic Controllers (1).pptx
Programmable Logic Controllers (1).pptxProgrammable Logic Controllers (1).pptx
Programmable Logic Controllers (1).pptx
 
Industrial Automation EMERSON EDUARDO RODRIGUES
Industrial Automation EMERSON EDUARDO RODRIGUESIndustrial Automation EMERSON EDUARDO RODRIGUES
Industrial Automation EMERSON EDUARDO RODRIGUES
 
PLC basic concepts
PLC  basic conceptsPLC  basic concepts
PLC basic concepts
 

More from taruian

Module 2_Localization And Tracking.pptx
Module 2_Localization And Tracking.pptxModule 2_Localization And Tracking.pptx
Module 2_Localization And Tracking.pptxtaruian
 
Introduction_Medical Robotics.pptx
Introduction_Medical Robotics.pptxIntroduction_Medical Robotics.pptx
Introduction_Medical Robotics.pptxtaruian
 
BSP.pptx
BSP.pptxBSP.pptx
BSP.pptxtaruian
 
OVERVIEW OF RTOS
OVERVIEW OF RTOSOVERVIEW OF RTOS
OVERVIEW OF RTOStaruian
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptxtaruian
 
Robotics Applications.pptx
Robotics Applications.pptxRobotics Applications.pptx
Robotics Applications.pptxtaruian
 
Robot Drives And End Effectors.pptx
Robot Drives And End Effectors.pptxRobot Drives And End Effectors.pptx
Robot Drives And End Effectors.pptxtaruian
 
Robot Anatomy And Motion Analysis.pptx
Robot Anatomy And Motion Analysis.pptxRobot Anatomy And Motion Analysis.pptx
Robot Anatomy And Motion Analysis.pptxtaruian
 
Governors.pptx
 Governors.pptx Governors.pptx
Governors.pptxtaruian
 
Avoiding Risk & Harmful Habits.pptx
Avoiding Risk & Harmful Habits.pptxAvoiding Risk & Harmful Habits.pptx
Avoiding Risk & Harmful Habits.pptxtaruian
 
Creating Healthy & Caring Relationships.pptx
Creating Healthy & Caring Relationships.pptxCreating Healthy & Caring Relationships.pptx
Creating Healthy & Caring Relationships.pptxtaruian
 
Building Healthy Life Style for Better Future.pptx
Building Healthy Life Style for Better Future.pptxBuilding Healthy Life Style for Better Future.pptx
Building Healthy Life Style for Better Future.pptxtaruian
 
Good Health & It’s balance for positive mindset.pptx
Good Health & It’s balance for positive mindset.pptxGood Health & It’s balance for positive mindset.pptx
Good Health & It’s balance for positive mindset.pptxtaruian
 
Joints.pptx
Joints.pptxJoints.pptx
Joints.pptxtaruian
 
Thread Forms.pptx
Thread Forms.pptxThread Forms.pptx
Thread Forms.pptxtaruian
 
Keys.pptx
Keys.pptxKeys.pptx
Keys.pptxtaruian
 
Associated IoT Technologies.pptx
Associated IoT Technologies.pptxAssociated IoT Technologies.pptx
Associated IoT Technologies.pptxtaruian
 
IoT Processing Topologies.pptx
IoT Processing Topologies.pptxIoT Processing Topologies.pptx
IoT Processing Topologies.pptxtaruian
 
Sensing & Actuation.pptx
Sensing & Actuation.pptxSensing & Actuation.pptx
Sensing & Actuation.pptxtaruian
 
Introduction to IoT (Basics of Networking & Emergence of IoT).pptx
Introduction to IoT (Basics of Networking & Emergence of IoT).pptxIntroduction to IoT (Basics of Networking & Emergence of IoT).pptx
Introduction to IoT (Basics of Networking & Emergence of IoT).pptxtaruian
 

More from taruian (20)

Module 2_Localization And Tracking.pptx
Module 2_Localization And Tracking.pptxModule 2_Localization And Tracking.pptx
Module 2_Localization And Tracking.pptx
 
Introduction_Medical Robotics.pptx
Introduction_Medical Robotics.pptxIntroduction_Medical Robotics.pptx
Introduction_Medical Robotics.pptx
 
BSP.pptx
BSP.pptxBSP.pptx
BSP.pptx
 
OVERVIEW OF RTOS
OVERVIEW OF RTOSOVERVIEW OF RTOS
OVERVIEW OF RTOS
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptx
 
Robotics Applications.pptx
Robotics Applications.pptxRobotics Applications.pptx
Robotics Applications.pptx
 
Robot Drives And End Effectors.pptx
Robot Drives And End Effectors.pptxRobot Drives And End Effectors.pptx
Robot Drives And End Effectors.pptx
 
Robot Anatomy And Motion Analysis.pptx
Robot Anatomy And Motion Analysis.pptxRobot Anatomy And Motion Analysis.pptx
Robot Anatomy And Motion Analysis.pptx
 
Governors.pptx
 Governors.pptx Governors.pptx
Governors.pptx
 
Avoiding Risk & Harmful Habits.pptx
Avoiding Risk & Harmful Habits.pptxAvoiding Risk & Harmful Habits.pptx
Avoiding Risk & Harmful Habits.pptx
 
Creating Healthy & Caring Relationships.pptx
Creating Healthy & Caring Relationships.pptxCreating Healthy & Caring Relationships.pptx
Creating Healthy & Caring Relationships.pptx
 
Building Healthy Life Style for Better Future.pptx
Building Healthy Life Style for Better Future.pptxBuilding Healthy Life Style for Better Future.pptx
Building Healthy Life Style for Better Future.pptx
 
Good Health & It’s balance for positive mindset.pptx
Good Health & It’s balance for positive mindset.pptxGood Health & It’s balance for positive mindset.pptx
Good Health & It’s balance for positive mindset.pptx
 
Joints.pptx
Joints.pptxJoints.pptx
Joints.pptx
 
Thread Forms.pptx
Thread Forms.pptxThread Forms.pptx
Thread Forms.pptx
 
Keys.pptx
Keys.pptxKeys.pptx
Keys.pptx
 
Associated IoT Technologies.pptx
Associated IoT Technologies.pptxAssociated IoT Technologies.pptx
Associated IoT Technologies.pptx
 
IoT Processing Topologies.pptx
IoT Processing Topologies.pptxIoT Processing Topologies.pptx
IoT Processing Topologies.pptx
 
Sensing & Actuation.pptx
Sensing & Actuation.pptxSensing & Actuation.pptx
Sensing & Actuation.pptx
 
Introduction to IoT (Basics of Networking & Emergence of IoT).pptx
Introduction to IoT (Basics of Networking & Emergence of IoT).pptxIntroduction to IoT (Basics of Networking & Emergence of IoT).pptx
Introduction to IoT (Basics of Networking & Emergence of IoT).pptx
 

Recently uploaded

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
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
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
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
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Recently uploaded (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
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 ...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
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
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

L3 Programmable logic controller

  • 1. Department of Mechanical Engineering JSS Academy of Technical Education, Bangalore-560060 MECHATRONICS (Course Code:17ME753)
  • 3. TEXT BOOKS • Mechatronics Electronic control system in Mechanical and Electrical Engineering, W Bolton, Pearson Education, 1st Ed., 2005. REFERENCE BOOKS: • Mechatronics by HMT Ltd. - Tata McGrawHill, 1st Edition, 2000 Further Reference: National Programme on Technology Enhanced Learning (NPTEL) https://nptel.ac.in/courses/112103174/1 by Dr. S. N. Joshi (IITG)
  • 4. • Explain the concepts of PLC, the process of integration in mechatronics system. Learning Objectives
  • 5. Module 3 Programmable logic controller: Introduction to PLC's, basic structure, Principle of operation, Programming (concept of ladder diagram), concept of latching & selection of a PLC.
  • 6. Programmable Logic Controller • PLC: Basically a controller. • Controller: Controls the parameters of the system that affects the system performance. (e.g. car) • Logical controller: controls the parameters with certain logic. (e.g. Lift) • Programmable: Can be reprogrammed for different tasks by end user Introduction
  • 7. Programmable Logic Controller • Microprocessor-based controller, uses programmable memory to store instructions to implement functions like, logic, sequence, timing, etc. to control parameters of the system for effectiveness. • Can be reprogrammed for different tasks by end user. Introduction
  • 8. Programmable Logic Controller Reasons why PLCs are being widely used • Rugged and designed to withstand vibrations, temperature, humidity and noise • User friendly, fast and easy to operate • Eliminate the need for hard wired relay logic • Automation in industries (Assembly, Bottling plant, Welding, Painting, MHE etc.) • Its input and output modules can be extended depending on the requirements
  • 9. Programmable Logic Controller Advantages • Less wiring, Wiring between devices and relay contacts are done in the PLC program. • Easier and faster to make changes. • Troubleshooting aids make programming easier and reduce downtime. • Reliable components make these likely to operate for years before failure.
  • 10. Programmable Logic Controller Advantages • Eliminates much of the hard wiring that was associated with conventional relay control circuits. • The program takes the place of the external wiring that would be required for control of a process.
  • 11. Programmable Logic Controller Advantages • Increased Reliability: Once a program has been written and tested it can be downloaded to other PLCs. • Since all the logic is contained in the PLC’s memory, there is no chance of making a logic wiring error.
  • 12. Programmable Logic Controller Advantages • More Flexibility: Original equipment manufacturers (OEMs) can provide system updates for a process by simply sending out a new program. • It is easier to create and change a program in a PLC than to wire and rewire a circuit. • End-users can modify the program in the field.
  • 13. Programmable Logic Controller Advantages • Lower Costs: Originally PLCs were designed to replace relay control logic. • Generally, if an application requires more than about 6 control relays, it will usually be less expensive to install a PLC.
  • 14. Programmable Logic Controller Advantages • Communications Capability: A PLC can communicate with other controllers or computer equipment • They can be networked to perform functions as: supervisory control, data gathering, monitoring devices and process parameters, and downloading and uploading of programs.
  • 15. Programmable Logic Controller Advantages • Faster Response Time: PLCs operate in real-time which means that an event taking place in the field will result in an operation or output taking place. • Machines that process thousands of items per second and objects that spend only a fraction of a second in front of a sensor require the PLC’s quick response capability.
  • 16. Programmable Logic Controller Advantages • Easier To Troubleshoot: PLCs have resident diagnostic and override functions that allows users to easily trace and correct software and hardware problems. • The control program can be watched in real-time as it executes to find and fix problems.
  • 19. Programmable Logic Controller Basic Structure Sensors & Transducers Actuators Logic Solenoid valve Motors LED display Sounds / Alarm
  • 20. Programmable Logic Controller Basic Structure 1. Power supply 2. Central processing unit (CPU) 3. Storage / Memory 4. Input/output interface circuit 5. The function module 6. The communication module 7. Programming unit
  • 21. Basic Structure • PLC power supply converts a line voltage, commonly 120 or 240 volts AC, or Alternating Current, into a useable DC, or Direct Current, voltage, commonly 24 volts, to power on the PLC and its components. • Modular style PLC racks, the power supply is also part of the backplane or rack. • While the main power supply is the primary source of power for the PLC, there is usually a battery backup as well, to provide energy to the memory of the PLC in case of a power supply failure Power supply
  • 22. Programmable Logic Controller CPU • Control centre of the PLC • Performs the routine check • It controls and processes all the operations within the PLC Processor Module
  • 23. Programmable Logic Controller Memory: The memory elements available in PLC are; • ROM: Permanent storage for the OS and fixed data. • RAM: For user's program. • Programs in RAM can be changed by the user. • To prevent the loss of these programs, when the supply is switched off, a battery is provided in the PLC to maintain the RAM contents for a period of time.
  • 24. Programmable Logic Controller lnput / Output (l/O) circuitry • I/O unit provides the interface between the system and outside world. • Programs are entered into using the input unit. • The programs, can also be entered by means of PC, with an appropriate software package.
  • 25. Programmable Logic Controller lnput circuitry • I/O unit provides the interface between the system and outside world. • Programs are entered into using the input unit. • The programs, can also be entered by means of PC, with an appropriate software package.
  • 26. Programmable Logic Controller Output circuitry • I/O unit provides the interface between the system and outside world. • PLCs employ an optical isolator, which uses light to electrically isolate the internal components from the input and output terminals.
  • 27. Ladder Logic / Ladder Program / Ladder diagram (LD)
  • 28. • It is used to program a PLCs. • It is a graphical programming language which expresses logical operations with symbolic notation using ladder diagrams. • It is used by engineers and electricians to execute logical, sequential, counting, timing and arithmetic tasks in order to carry industrial automation applications. • Ladder logic programming is still used today because the core fundamental logic principles for machine and process control are still the same. Ladder Logic / Ladder Program Concept of Ladder Logic
  • 29. • In the earlier days, machine and process automation was accomplished using a hard wired control system known as relay logic. • Ladder logic was originally designed to replace the use of hard wired relay logic circuits for machine control. • The ladder logic programming code actual looks like an electrical schematic drawing. Ladder Logic / Ladder Program Concept of Ladder Logic
  • 30. • In PLC programming, ladder logic is a programming language, used for developing logical expressions in order to automate tasks / process. Ladder Logic / Ladder Program Concept of Ladder Logic
  • 31. • Ladder logic is used extensively for programming PLCs in industrial automation applications. • E.g. : Material Handling Conveyor System / Pallet Packing and Strapping. • Ball Mill Lubrication System / Logistics Package Conveying and Sorting. • Cement Batching / Beverage Bottling and Labelling. • Hopper and Tank Level Control / Air / Liquid Flow and Pressure Control. Ladder Logic / Ladder Program Concepts Ladder Logic
  • 32. • A ladder diagram is a type of schematic diagram used in industrial automation that represents logic control circuits. • Ladder diagrams are composed of two vertical power rails and horizontal logic rungs to form what looks like a ladder. The control logic in a ladder diagram is contained within the rungs. Ladder Logic / Ladder Program What is a Ladder Diagram? • The name “ladder diagram” is derived from the program’s resemblance to a ladder with two vertical rails and a series of horizontal rungs between them. • The rails are called “power rails” in the ladder diagram.
  • 33. • The reason is because the early control system designers were accustomed to relay logic control circuits and ladder diagrams closely mimic these. • The person / staff already knows how to read relay control circuits, so using ladder diagrams for programming a PLC. • Also, they were easily able to troubleshooting control system problems. Ladder Logic / Ladder Program Why is a ladder diagram used for PLC programming?
  • 34. Ladder diagram / Logic • Ladder diagram (LD): official name given in the international PLC programming standard IEC-61131. (International Electrotechnical Commission) • Symbols represent opening and closing relays, counters, timers, shift registers, etc. • Symbols are arranged in the desired program routine. • Rules in ladder logic are termed “rungs.” • Each rung has a single output.
  • 35. The Logic Behind The Ladder Seven basic steps of a ladder diagram. 1. Rails: Two rails (power rails) in a ladder diagram, represented by vertical lines. • The power flows from the left hand side to the right hand side. 2. Rungs: Horizontal lines, connects the rails to the logic expressions.
  • 36. The Logic Behind The Ladder (a), (b) Alternative ways of drawing an electric circuit, (c) comparable rung in a ladder program. The sequence followed by a PLC when carrying out a program as follows. 1. Scan the inputs associated with one rung of the ladder program. 2. Solve the logic operation involving those inputs. 3. Set/reset the outputs for that rung. 4. Move on to the next rung and repeat operations 1, 2, 3. 5. Move on to the next rung and repeat operations 1, 2, 3. 6. And so on until the end of the program with each rung of the ladder program scanned in turn. 7. The PLC then goes back to the beginning of the program and starts again. if A and B are both closed then a solenoid (output) is energised.
  • 37. The Logic Behind The Ladder 3. Inputs: Inputs are external control actions (Sensors and Transducers). E.g. Push button being pressed, limit switch being triggered. • Inputs are hardwired to the PLC terminals. • Represented in the ladder diagram by a normally open (NO) or normally closed (NC) contact symbol.
  • 38. The Logic Behind The Ladder 4. Outputs: Outputs are external devices (Actuators). E.g. Turn on and off an electric motor or a solenoid valve. • The outputs are hardwired to the PLC terminals. • Represented in the ladder diagram by a relay coil symbol.
  • 39. The Logic Behind The Ladder 5. Logic Expressions: The logic expressions are used in combination with the inputs and outputs to formulate the desired control operations. 6. Address Notation: Address notation describes the input, output, logic expression, memory addressing structure of the PLC. • Tag names: descriptions allocated to the addresses.
  • 40. The Logic Behind The Ladder 7. Comments: • Important part of a ladder diagram. • Comments are displayed at the start of each rung. • Used to describe the logical expressions and control operations of that rung. • Understanding ladder diagrams are easier by using comments.
  • 41.
  • 42. How to Read Ladder Logic Microprocessors operates on the binary concept. ‘Binary’: principle, is that the event/s can be thought of in one of two states. The states can be defined as: • 1 or 0 • True or False • On or Off • High or Low • Yes or No
  • 43. How to Read Ladder Logic • Ladder logic uses symbolic expressions and a graphical editor for reading and writing code making it easier. • If real world event is translated into ladder logic, it symbolically expressed in the form of a normally open (NO) contact. E.g. events like a button being pushed or a limit switch being activated.
  • 44. How to Read Ladder Logic Example • Consider event ‘A’, has one of two states, TRUE or FALSE (1 or 0). • Event is associated with the normally open (NO) contact can be TRUE or FALSE. • If the event is TRUE, highlighted in green. ladder logic truth table
  • 45. How to Read Ladder Logic • A normally open (NO) contact alone cannot decide what action to take to automate the event • It merely tells, what is the state of the event. • Logic is the ability to decide what action needs to be taken depending on the state of one or more events. • Logic concept – IF, THEN logic functions.
  • 46. Ladder Logic Functions • Consider an event = A. Allocated to normally open (NO) contact. • In ladder logic, the events are defined as PLC inputs. • Let the result of the logic function = ‘Y’. • The result of a rung logic function is defined as a PLC output. • The two fundamental elements on a rung in a ladder diagram is first line of code.
  • 47. Ladder Logic Functions Two possible logic iterations: • IF A = FALSE THEN Y = FALSE • IF A = TRUE THEN Y = TRUE Ladder Logic Basics – In Built Functions
  • 48. Ladder Logic Functions Two possible logic iterations: • IF A = FALSE THEN Y = FALSE • IF A = TRUE THEN Y = TRUE Ladder Logic Basics – In Built Functions Ladder logic diagram expressed symbolically in the form of a normally open (NO) contact for the input and the output relay coil.
  • 49. In ladder logic fundamental logic functions are; 1. AND 2. OR 3. NOR 4. NAND 5. XOR Ladder Logic Functions
  • 50. Logic functions (a) AND, (b) OR, (c) NOR, (d) NAND, (e) XOR
  • 51. Ladder Logic AND Functions
  • 52. Ladder Logic OR Functions
  • 53. Ladder Logic The sequence followed by a PLC when carrying out a program 1. Scan the inputs associated with one rung of the ladder program. 2. Solve the logic operation involving those inputs. 3. Set/reset the outputs for that rung. 4. Move on to the next rung and repeat operations 1, 2, 3. 5. Move on to the next rung and repeat operations 1, 2, 3. 6. So on until the end of the program with each rung of the ladder program. The PLC then goes back to the beginning of the program and starts again.
  • 55. Concept of Latching • There are situations where it is necessary to hold a coil energized, even when the input which energized it ceases. • The term latch circuit is used for the circuit which carries out such an operation. • It is a self-maintaining circuit, after being energized, it maintains that state until another input is received.
  • 56. Concept of Latching • When Input 1 is energized and closes, there is an output. However, when there is an output, a set of contacts associated with the output is energized and closes. The contacts is in OR the Input 1 contacts. • Even if Input 1 contacts open, the circuit will still maintain the output energized. • The only way to release the output is by operating the normally closed contact Input 2
  • 57. Concept of Latching An example of a latch circuit: consider the requirement for a PLC to control a motor • We require is a system that will still stop if a failure occurs in the stop switch. • The program now has the stop switch as open contacts. However, because the hard-wired stop switch has normally closed contacts, then the program receives the signal to close the program contacts. • Pressing the stop switch then opens the program contacts and stops the system Stop system: (b) safe
  • 58. Selection of a PLC The following criteria need to be considered: 1. Types of inputs/outputs required, like; - Isolation - Out-board power supply for inputs/outputs - Signal conditioning 2. lnput/Output capacity required 3. Size of memory required: linked with no. of I/O and complexity of program used 4. Speed and power required for CPU: linked to the no. of types of instructions, handled by a PLC.
  • 59. End