What Is A PLC-introduction
What Is A PLC-introduction
What Is A PLC-introduction
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. We’ll first discuss PLC basics before looking at various
applications of PLCs.
If you want to learn how to program PLCs, you should check out some of
the different online PLC training courses. These courses can help jump-
start your career in control engineering.
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.
Lig
ht operated by a PLC
PLC Block
Diagram
Programmable Logic Controllers continuously monitors the input values
from various input sensing devices (e.g. accelerometer, weight scale,
hardwired signals, etc.) and produces corresponding output depending on
the nature of production and industry. A typical block diagram of PLC
consists of five parts namely:
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.
Breakdown of
PLC Rack
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.
PLC
Input Module
Circuit
Diagram of PLC Input Module
The input module of PLC does four main functions.
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.
A Modular Type PLC
PLC are divided into three types based on output namely Relay output,
Transistor output, and Triac Output PLC. The relay output type is best
suited for both AC and DC output devices. Transistor output type PLC
uses switching operations and used inside microprocessors.
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:
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.
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.
Lad
der to functional block [Source]
L
adder to functional block diagram [Source]
PLC Program to
Test Lamp Glowing
As another example, consider a valve that is to be operated to lift a load
when a pump is running and either the lift switch is operated or a switch
operated indicating that the load has not already been lifted and is at the
bottom of its lift channel.
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.
PLC
Program to Operate Valve
Consider a drinks machine that allows the selection of tea or coffee, milk or
no milk, sugar or no sugar, and will supply the required hot drink on the
insertion of a coin. From the below-shown figure, it is seen that either tea or
coffee is selected using the first OR logic gate.
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.
FBD for
Drinking Machine
Ladder
Logic for Drinking Machine Application
History of PLCs
Many early PLCs were not capable of graphical representation of the logic,
and so it was instead represented as a series of logical expressions in a
Boolean format (akin to Boolean algebra).
As programming terminals evolved, it became more common for ladder
logic to be used, because it was a familiar format used for electro-
mechanical control panels. More modern formats, such as state logic and
Function Block diagrams exist, but they are still not as popular as ladder
logic.
A possible reason for this is that programmers prefer the more visual
appeal of ladder logic over structured text programming.