PLC Lecture1
PLC Lecture1
(PLC) DEFINITION
assembly lines, and processes due to their flexibility and ease of programming.
Standardization: The introduction of programming languages such as Ladder Logic made PLC programming
accessible to engineers.
1980s: Advancements and Features
Microprocessors: The advent of microprocessor technology allowed for smaller, more powerful PLCs.
Networking: PLCs began to incorporate networking capabilities, enabling multiple PLCs and devices to
communicate.
1990s: Integration and Expansion
Integration with PCs: PLCs started to integrate with personal computers, allowing for more advanced programming
Fieldbus Technology: New protocols improved communication between devices, enhancing automation systems
A HISTORICAL BACKGROUND
2000s: Smart Automation
Ethernet and IoT: The rise of Ethernet and the Internet of Things (IoT) led to more
interconnected and smart automation solutions.
Advanced Features: PLCs began to include features such as data logging, web
access, and advanced diagnostics.
Measure Control
Programmable
Controller
Field Field
Inputs Outputs
The PLC system
The basic functional components of PLC
The inputs might thus be from The outputs might be to Input and output devices can be
Switches • Motor starter coils classified as giving signals that are
• solenoid valves a) discrete,
Photoelectric cells • Or similar things b) Digital
c) Analog
Temperature sensors
Flow sensors
The basic functional components of PLC
Devices giving discrete or digital signals are ones where the signals
are either off or on. Thus a switch is a device giving a discrete signal,
either no voltage or a voltage. Digital devices can be considered
essentially as discrete devices that give a sequence of on/off signals.
Analog devices give signals of which the size is proportional to the
size of the variable being monitored. For example, a temperature
sensor may give a voltage proportional to the temperature.
The basic functional components of PLC
• The communications interface is
used to receive and transmit data on
communication networks from or to
other remote PLCs. It is concerned
with such actions as device
verification, data acquisition,
synchronization between user Basic communications model
applications, and connection
management.
SCANNING CYCLE
During its operation, the CPU completes three
processes:
1.it reads, or accepts, the input data from the
field devices via the
input interfaces,
2.It executes, or performs, the control program
stored in the
memory system, and
3.it writes, or updates, the output devices via the
output
interfaces.
This process of sequentially reading the inputs,
executing the
program in memory, and updating the
outputs is known as
scanning Cycle.
Ladder Logic / Ladder Program / Ladder diagram (LD)
LADDER DIAGRAMS AND THE PLC
• The ladder diagram has and continues to be the traditional way of
representing electrical sequences of operations.
• These diagrams represent the interconnection of field devices in such
a way that the activation, or turning ON, of one device will turn ON
another device according to a predetermined sequence of events.
Ladder Logic / Ladder Program
Concept of Ladder Logic
• 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
control.
applications.
• Hopper and Tank Level Control / Air / Liquid Flow and Pressure Control.
Ladder Logic / Ladder Program
What is a Ladder Diagram?
• A ladder diagram is a type of schematic diagram used in industrial automation that represents
• 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.
• The reason is because the early control system designers were accustomed to relay logic control
• The person / staff already knows how to read relay control circuits, so using ladder diagrams for
programming a PLC.
• Ladder diagram (LD): official name given in the international PLC programming
• Symbols represent opening and closing relays, counters, timers, shift registers,
etc.
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.
(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.
The Logic Behind The Ladder
operations.
6. Address Notation: Address notation describes the input, output, logic expression,
7. Comments:
• Used to describe the logical expressions and control operations of that rung.
‘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
• If real world event is translated into ladder logic, it symbolically expressed in the
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.
• A normally open (NO) contact alone cannot decide what action to take to
• Logic is the ability to decide what action needs to be taken depending on the
state of one or more events.
1. AND
2. OR
3. NOR
4. NAND
5. XOR
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.
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
Assignment