Unit 02 - Programmable Logic Controllers
Unit 02 - Programmable Logic Controllers
What is a PLC?
PLC stands for “Programmable Logic Controller”. A PLC is a computer specially designed to
operate reliably under harsh industrial environments – such as extreme temperatures, wet,
dry, and/or dusty conditions. PLCs are used to automate industrial processes such as a
manufacturing plant’s assembly line, an ore processing plant, or a wastewater treatment plant.
PLCs share many features of the personal computer you have at home. They both have a
power supply, a CPU (Central Processing Unit), inputs and outputs (I/O), memory, and
operating software (although it’s a different operating software).
The biggest differences are that a PLC can perform discrete and continuous functions that a
PC cannot do, and a PLC is much better suited to rough industrial environments. A PLC can
be thought of as a ‘ruggedized’ digital computer that manages the electromechanical
processes of an industrial environment.
PLCs play a crucial role in the field of automation, using forming part of a larger SCADA
system. A PLC can be programmed according to the operational requirement of the process.
In the manufacturing industry, there will be a need for reprogramming due to the change in
the nature of production. To overcome this difficulty, PLC-based control systems were
introduced.
PLC Basics
PLCs were invented by Dick Morley in 1964. Since then, PLC has revolutionized the
industrial and manufacturing sectors. There is a wide range of PLC functions like timing,
counting, calculating, comparing, and processing various analog signals.
The main advantage of PLC over a “hard-wired” control system is that you can go back and
change a PLC after you’ve programmed it, at little cost (just the cost of the programmer’s
time). In a hard-wired control system, you’re essentially having to rip out wires and start from
scratch (which is more expensive and takes longer). Let’s look at an example to better
understand this advantage.
Imagine you have a light connected to a switch. In general, the light operates under two
conditions – ON and OFF. Now you are given a task that when you turn ON the switch, the
light should glow only after 30 seconds. With this hard-wired setup – we’re stuck. The only
way to achieve this is to completely rewire our circuit to add a timing relay. That’s a lot of
hassle for a minor change.
Light Switch
This is where a programmable logic controller comes into the picture, which doesn’t require
any additional wiring and hardware to make sure of a change. Rather it requires a simple
change in code, programming the PLC to only turn on the light 30 seconds after the switch is
turned ON. So, by using a PLC, it is easy to incorporate multiple inputs and outputs.
This is just a simple example – a PLC has the ability to control much larger and more
complex processes. A PLC can be customized depending on the application and needs of the
user.
Rack or chassis
Power Supply Module
Central Processing Unit (CPU)
Input & Output Module
Communication Interface Module
Rack or Chassis
In all PLC systems, the PLC rack or chassis forms the most important module and acts as a
backbone to the system. PLCs are available in different shapes and sizes. When more
complex control systems are involved, it requires larger PLC racks.
Small-sized PLC is equipped with a fixed I/O pin configuration. So, they have gone for
modular type rack PLC, which accepts different types of I/O modules with sliding and fit in
concept. All I/O modules will be residing inside this rack/chassis.
Being a microprocessor-based CPU, it replaces timers, relays, and counters. Two types of
processors as a single bit or word processor can be incorporated with a PLC. One bit
processor is used to perform logic functions. Whereas word processors are used for
processing text, numerical data, controlling, and recording data.
CPU reads the input data from sensors, processes it, and finally sends the command to
controlling devices. DC power source, as mentioned in the previous discussion is required
voltage signals. CPU also contains other electrical parts to connect cables used by other units.
Input devices can be either start and stop pushbuttons, switches, etc and output devices can be
an electric heater, valves, relays, etc. I/O module helps to interface input and output devices
with a microprocessor. The input module of PLC is explained in the below figure.
1. Input module interface receives the signal from process devices at 220 V AC
2. Converts the input signal to 5 V DC that can be used by PLC
3. Isolator block is used to isolate/prevent PLC from undergoing fluctuation
4. After which the signal is sent to the output end i.e the PLC
There are two main sections in the input module namely the power section and the logical
section. Both sections are electrically isolated from each other. Initially push button is closed.
So, 220 V AC supply is given to the bridge circuit through the resistors R1 and R2.
A bridge rectifier (such as a diode bridge rectifier) is used to convert the AC signal into DC
and Zener diode is used to provide a low voltage supply to LED. When the light from LED
falls on the phototransistor, it works in the conduction region. Finally, a 5V DC supply is
given to the processor.
The output module of PLC works similarly to the input module but in the reverse process. It
interfaces the output load and processor. So here the first section would be logic session and
the power section come next. The working of the output module is shown in the below figure
Types of PLCs
The two main types of PLC are fixed / compact PLC and modular PLC.
Compact PLC
Within a single case, there would be many modules. It has a fixed number of I/O modules
and external I/O cards. So, it does not have the capability to expand the modules. Every input
and output would be decided by the manufacturer.
Modular PLC
This type of PLC permits multiple expansion through “modules”, hence referred to as
Modular PLC. I/O components can be increased. It is easier to use because each component
is independent of each other.
According to the physical size, a PLC is divided into Mini, Micro, and Nano PLC.
Allen Bradley
ABB
Siemens
Mitsubishi PLC
Hitachi PLC
Delta PLC
General Electric (GE) PLC
Honeywell PLC
PLC Applications
PLCs have a variety of applications and uses, including:
A PLC program consists of a set of instructions either in textual or graphical form, which
represents the logic that governs the process the PLC is controlling. There are two main
classifications of PLC programming languages, which are further divided into many sub-
classified types.
1. Textual Language
Instruction list
Structured text
2. Graphical Form
Ladder Diagrams (LD) (i.e., Ladder Logic)
Function Block Diagram (FBD)
Sequential Function Chart (SFC)
Although all of these PLC programming languages can be used to program a PLC, graphical
languages (like ladder logic) are typically preferred to textual languages (like structured text
programming).
Ladder Logic
Ladder logic is the simplest form of PLC programming. It is also known as “relay logic”. The
relay contacts used in relay-controlled systems are represented using ladder logic.
The below figure shows a simple example of a ladder diagram.
The two horizontal lines are called rungs and the two vertical lines are called rails. Every
rung form the electrical connectivity between Positive rail (P) and Negative rail (N). This
allows the current to flow between input and output devices.
Functional Block Diagrams
Functional Block Diagram (FBD) is a simple and graphical method to program multiple
functions in PLC. PLCOpen has described using FBD in the standard IEC 61131-3. A
function block is a program instruction unit that, when executed, yields one or more output
values.
Function Block
The advantage of using FBD is that any number of inputs and outputs can be used on the
functional block. When using multiple input and output, you can connect the output of one
function block to the input of another. Whereby building a Function Block Diagram.
OR logic is used for two switches and an AND logic is used with two switches and the pump.
Valve will be operated only if the pump is ON and two switches are operated.
The first AND gate give an output when either Tea or coffee is selected and a coin is inserted
into the machine. The output from this AND gate is given to the second AND gate. The
second AND gate operate only when hot water combines with tea. Milk and sugar are
optional additions that can occur after a coin has been inserted.
A possible reason for this is that programmers prefer the more visual appeal of ladder logic
over structured text programming.
Until approximately the mid-1990s, PLCs were programmed using proprietary programming
panels or special-purpose programming terminals, which often had dedicated function keys
representing the various logical elements of PLC programs.
Some proprietary programming terminals displayed the elements of PLC programs as graphic
symbols, but plain ASCII code representations of contacts, coils, and wires were common.
PLC Application for speed control of AC motor with variable speed drive:
AC Motor Drive Interface
A common PLC application is the speed control of AC motors with variable speed (VS)
drives. The diagram in Figure 1 shows an operator station used to manually control a VS
drive.
PLC Application for Speed Control of AC Motors With VSD (on photo: Three 30HP
pumps using corresponding variable frequency drives with bypass contactors. The 208V
3PH 4 wire 400A panel features a PLC based control system with backup floats and stand-
alone three pump controller and intrinsically safe barriers for level sensors; Credit:
dbcustomwiring.com)
The programmable controller implementation of this station will provide automatic motor
speed control through an analog interface by varying the analog output voltage (0 to 10
VDC) to the drive.
The PLC program will contain all of these inputs except the potentiometer, which will be
replaced by an analog output.
The required input field devices (i.e., start push button, stop push button, jog/run, and
forward/ reverse) will be added to the application and connected to input modules, rather
than using the operator station’s components.
The PLC program will contain the logic to start, stop, and interlock the forward/reverse
commands.
Figure 1 – Operator station for a variable speed drive
Table 1 shows the I/O address assignment table for this example, while Figure 2 illustrates
the connection diagram from the PLC to the VS drive’s terminal block (TB-1). The
connection uses a contact output interface to switch the forward/reverse signal, since the
common must be switched.
To activate the drive, terminal TB-1-6 must receive 115 VAC to turn ON the internal relay
CR1. The drive terminal block TB-1-8 supplies power to the PLC’s L1 connection to turn
the drive ON. The output of the module (CR1) is connected to terminal TB-1-6. The drive’s
115 VAC signal is used to control the motor speed so that the signal is in the same circuit
as the drive, avoiding the possibility of having different commons (L2) in the drive
(the start/stop common is not the same as the controller’s common).
In this configuration, the motor’s overload contacts are wired to terminals TB-1-9 and TB-
1-10, which are the drive’s power (L1) connection and the output interface’s L1 connection.
If an overload occurs, the drive will turn OFF because the drive’s CR1 contact will not
receive power from the output module.
To have low-voltage protection, the auxiliary contact from the drive, CR1 in terminal TB-1-
7, must be used as an input in the PLC, so that it seals the start/stop circuit.
Table 1 – I/O address assignment
Figure 2 – Connection diagram from the PLC to the VS drive’s terminal block.
Figure 3 shows the PLC ladder program that will replace the manual operator station. The
forward and reverse inputs are interlocked, so only one of them can be ON at any given
time (i.e., they are mutually exclusive).
If the jog setting is selected, the motor will run at the speed set by the analog output when
the start push button is depressed. The analog output connection simply allows the output to
be enabled when the drive starts. Register 4000 holds the value in counts for the analog
output to the drive. Internal 1000, which is used in the block transfer, indicates the
completion of the instruction.
Sometimes, a VS drive requires the ability to run under automatic or manual control
(AUTO/MAN). Several additional hardwired connections must be made to implement this
dual control.
If the AUTO/MAN switch is set to automatic, the PLC will control the drive; if the switch
is set to manual, the manual station will control the drive.
Figure 4 – VS drive with AUTO/MAN capability
The CPU also controls and exchanges data with the communication interface and devices.
An addressing system is used for data organization that is shared between the various
hardware components.
A programming terminal is used to formulate the PLC program (eg ladder logic), load the
program into the controller and monitor/control the PLC and its program.
The power supply is responsible for supplying and managing the power requirements of the
various PLC hardware components.
The 3 distinct types of PLC architecture available for use in industrial automation are known
as fixed, modular and distributed. The terminology surrounding PLC types can vary between
PLC manufacturers, especially when talking about fixed PLCs. There is also crossover
between PLC types with some fixed type PLCs having modular type features and some
modular type PLCs having distributed type features.
When considering PLC architecture types we can generally say that fixed PLCs are used for
smaller sized, less complex application. Modular PLCs are generally used for medium sized,
more complex applications. Whereas distributed PLCs are used for large sized, extensive
application spread across multiple location.
PLC naming convention – Fixed, integrated, nano, micro, compact, small, mini, basic,
unitary, standard and brick.
CPU processor – Low powered.
Program and data memory size – Small.
Power supply – Embedded.
Input Interface – Embedded.
Output Interface – Embedded.
Communication interface – Embedded.
Mounting system – Single unit.
Physical size – Small.
Flexibility – Input, output and communication interfaces are fixed.
Expandable – No
Customizable – No
Applications – Basic applications with small number of inputs and outputs.
Cost – Low $$$$$.
Advantages of Fixed PLCs
Fixed PLCs have some great advantages over other types of PLCs. They have been
specifically design to cater for smaller, low end automation projects. The advantages of a
fixed PLC are:
CPU processing power is low and memory is small so complex tasks can be difficult to
realize.
Inflexible because the number of input, output and communication interfaces are fixed.
Only suitable for basic applications with small number of inputs and outputs.
The Modern Day Fixed PLCs
The majority of modern day fixed PLCs are far from what the traditional definition of a fixed
PLC is. Technology advancements and demand from industry has driven them away from
being a simple, low powered unit with fixed amount of input, output and communication
interfaces.
The modern day fixed PLC is feature packed with a large range of options such as powerful
CPU’s, expandable modules and network capabilities that are bordering and even overlapping
into modular and distributed PLC architecture. This has resulted in the fixed PLC expanding
its reach into a larger range of industrial automation applications.
For example the Omron Sysmac CP1L and Koyo DL06 PLCs have traditional fixed PLC
architecture but at the same time are expandable with built in slots to allow for extra plugin
modules. Another example of a modern day fixed PLC that incorporates modular PLC design
is the Delta DVP ES2 with a rack-less design and clip-in expansion I/O modules. The Allen
Bradley MicroLogix 1100 PLC range also has the ability to further extend using I/O
expansion modules to the side of the PLC using ribbon cable…..
Modular PLCs are used for automating industrial applications where a higher powered
processor and large numbers of input and output devices are required. These types of
applications that use modular PLCs are usually associated with a higher level of complexity
with regards to operation, process control and monitoring. Some examples of industries that
readily use modular PLCs are manufacturing, food and beverage, mining and logistics.
Some examples of modular PLC types by different manufacturers are shown below:
The advantages of using a modular PLC instead of a fixed PLC are that modular PLCs have
lager memory, higher performance processors, larger number of input and outputs, increased
communication options, are fully customizable and are easily expanded. This enables the
modular PLC to handle larger scale applications and of higher complexity compared to a
fixed PLC.
Modular PLCs also have the ability to have remotely mounted input and output modules
(distributed I/O) that are interconnected using a communication link. This allows for increase
number of inputs and outputs, reduced cable requirements and installation flexibility.
The modular PLC also has maintenance advantages over fixed PLCs. Each hardware
component is separate housed in a module which can be replaced if it is faulty. Whereas a
fixed PLC has all its component embedded into a single unit. So when there is a fault the
whole unit must be replaced in its entirety and the faulty unit ends up in the trash.
Large in size so they take up more space in an enclosure than a fixed PLC.
The mounting system is more complex than a fixed PLC.
Higher in cost than a fixed PLC so may not be cost effective for smaller applications.
Distributed PLC Type Architecture
A distributed PLC is a high end PLC system with modular architecture and the capability to
interconnect hardware components across different locations via high speed communication
links. Each location in the distributed PLC system contains multiple hardware modules that
are housed in a mounting system and are usually called a node, rack or drop.
Each drop, node or rack in the Distributed PLC system must have a communication module
and can either contain a PLC processor module with input and output (I/O) modules or just
I/O modules. When there is a communication module with no PLC processor module and just
I/O modules then the node is called distributed I/O or remote I/O.
The biggest differences between distributed PLCs and other types of PLCs is that they
contain high performance processors, large memories and are able to handle large volumes of
I/O, use higher level programming languages and can handle large amounts of complex
process control tasks.
In the past a Distributed Control Systems (DCS) was used for large process plants. But the
technology driven PLCs of today are performance packed and can handle the heavy demands
of a distributed control system.
Plant wide control network with multiple processors and remote I/O drops.
High performance processor.
Large program and data memory.
Able to handle large volumes of I/O.
Can handle large amounts of complex process control tasks.
Ease of maintenance.
Save time and money on installation costs.
Disadvantages of Distributed PLCs
Because of the high end features that a distributed PLC has they come with some
disadvantages that must be considered when selecting the type of PLC that is required for
your automation system….
A PLC has to start a Motor when the Start button is pressed. It has three interlocks which are
Motor Vibration High, Overload & Motor Temperature High.
if any of the interlock activated then PLC has to stop the motor immediately.
PLC has to stop the motor if the stop button is pressed.
PLC trip logic or interlock has to be enabled only when motor is in Remote mode.
In above figure: Red LED indicator lights on the input and output cards of the PLC indicate if
those respective I/O channels are energized.
Note:
1. In above figure, Local Control Panel signals are not shown. Local control
panel is connected to motor feeder directly.
2. 24v DC power directly connected ( in general fuses or barriers will be used,
power will be distributed through bus bar)
PLC Inputs
Start push button
Stop push button
Vibration High
Temperature High
Overload Trip
Run feedback
Local/Remote status
PLC Outputs
Start Command (Remote Start)
Stop Command (Remote Stop)
Start Permissive (Optional)
The motor is a three phase, 415V AC powered device. So, by default high voltage equipment
will be powered from substations or motor control centres (MCC) which are maintained by
electrical.
So, we consider this motor is connected to a simple motor feeder in the substation.
Generally, the motor feeder have inputs from field (local control panel) & PLC also. Which
are shown in below figure.
Note : the motor feeder may have start, stop, some other trips indications like overload etc…
in the motor feeder panel which are not shown in the fig. These are mounted on the motor
feeder panel (in addition to LCP).
If motor feeder receives start & stop command inputs from PLC then we call them as Remote
Start & Remote Stop signals.
Similarly, if motor feeder receives start & stop command inputs from local control panel
(LCP) which is installed in field (near to motor) then we call them as Local Start & Local
Stop signals.
In common practice, this LCP has emergency stop & Local/Remote selection switch also.
The motor feeder also sends a Local/Remote status to PLC. If Local/Remote selection switch
is in Local mode then motor feeder will only consider signals from LCP and ignore the
commands from PLC.
Similarly if Local/Remote Selection switch in Remote Mode then motor feeder will consider
signals from Remote i.e. PLC and ignore the signals from LCP.
For example : if Local/Remote selection Switch in Remote Mode. If field operator pressed
the start push button from the field LCP then motor will not be started as the selection is in
remote mode.
Depends on the Local/Remote selection switch status the motor feeder will decides which
signals to be consider i.e. either PLC or LCP signals.
Note : Local/Remote Selection will not be applied for Emergency Stop or Stop Commands
either from PLC or LCP. Whatever mode it is, the Stop commands will be accepted by motor
feeder and stops the motor immediately. This is a safety concern.
Programmable Logic Controllers (PLCs) have basic architecture compared to normal general-
purpose computers. A normal computer can be converted to PLCs by providing a way that
the computer can able to receive information or signal from the field devices such as push
buttons, switches and valve positions. The computer requires some software to process the
information obtained from the input to generate an output which decides whether to close or
open the valve position on the process side.
Some of the important features and characteristics that distinguish between the general-
purpose computers and Programmable Logic Controllers (PLCs) are given below:
1) PLCs are designed to operate under industrial environments (PLCs have to
operate under a wide range of temperature conditions, humidity and other
environmental conditions). They are least affected by the electrical noise and
are inherent to electrical noise.
2) Programming in PLCs is through Relay Ladder Logic or other easily learned
languages. PLCs comes with program language built in its memory. PLCs do
not contain input and output devices such as keyboards, mouse, monitor, CD
drives and other hard disks. It is simply a self-contained box with
communication ports and set of terminals for input and output devices.
3) Unlike computers which perform numerous tasks simultaneously, PLCs
execute a single program in an orderly and sequential manner from first
instruction to the last instruction.
4) PLCs have been designed for installation and maintenance by plant
electricians. Programming in PLCs is simple (Relay Ladder Programming), it
does not include any advanced code. Troubleshooting is simpler and many
PLCs are designed to include fault details and written fault details on display
screen.
What is a PLC?
A programmable logic controller is a small computer that can accept data and deliver
operational instructions through its inputs and outputs. A PLC’s primary duty is to control the
functions of a system using the underlying logic that has been programmed into it. PLCs are
used by businesses all over the world to automate their most critical procedures.
Types of PLC
Fixed/Integrated/Compact PLC
Modular PLC
The modular PLC is a form of PLC that allows for multiple expansions of the PLC system by
the use of modules, hence the name “modular.”
The power supply, communications module, and input/output module are all independent of
the microcontroller, so you must manually connect them to form your PLC control system.
Rack-mounted or rack-mount PLCs are a type of modular PLC. The communications module
of a rack mount PLC is housed in the rack itself, thus all connections are consolidated.
Expanded Memory
Higher Number of I/Os
Expansion available
Easy to troubleshoot and less downtime
Memory
Fixed PLCs can only store a certain amount of data. This is due to the fact that all of the
necessary components are housed in a single entity. Furthermore, there isn’t much
opportunity for extending information beyond the very fundamental functions required.
Modular PLCs have significantly more memory and can store a greater volume of data.
Number of I/Os
The fixed PLC has a restricted number of I/O modules, restricting its performance. The
modular PLC can do more complex procedures, making it more advantageous.
Expansion available
When the need to expand your operation emerges, the fixed PLC will be unable to keep up.
Modular PLCs were created for this reason, to expand and tailor processes to allow for
continuous expansion.
Downtime is expensive, and no one wants a system that drains profits. Problems are not
detected by fixed PLCs. As a result, when they crash, troubleshooting takes a long time.
However, modular PLCs can readily troubleshoot difficulties while keeping some processes
operating. While fixed PLCs may be less expensive at first, the modular PLC provides more
long-term economic assurance.
Cost is high
Complex structure
A small or fixed PLC is less expensive than a modular PLC and is utilised for standalone
duties.
Modular PLCs or Rack type refers to a form of PLC that connects its power supply, CPU
unit, and I/O system via a backbone called Rack.
A small PLC system that is delivered fully assembled and cannot be modified or upgraded. A
modular PLC system is made up of pieces that may be swapped out, upgraded separately,
deleted, or replaced with new ones.
Compact PLCs contain fewer input and output modules than modular PLCs, but more
memory. They are commonly employed in industries.
Modular PLCs have significantly more capacity and can store a greater volume of
information, whereas compact PLCs have restricted input-output modules, restricting their
performance.