Programmable Logic Controller (Final)
Programmable Logic Controller (Final)
HISTORY OF PLC
PLC was introduced in late 1960’s
First commercial & successful Programmable Logic Controllers was designed and
developed by Modicon as a relay replacer for General Motors.
Earlier, it was a machine with thousands of electronic parts.
Later, in late 1970’s, the microprocessor became reality & greatly enhanced the role of
PLC permitting it to evolve form simply relay to the sophisticated system as it is today.
PLC Size:
Small:
It covers units with up to 128 I/O’s and memories up to 2 Kbytes.
These PLC’s are capable of providing simple to advance levels or machine controls.
Medium:
Have up to 2048 I/O’s and memories up to 32 Kbytes.
Large:
The most sophisticated units of the PLC family.
They have up to 8192 I/O’s and memories up to 750 Kbytes.
Can control individual production processes or entire plant.
MAJOR COMPONENTS
1. Power Supply
Provides the voltage needed to run the primary PLC components.
2. I/O Modules
Provides signal conversion and isolation between the internal logic – level signal inside the PLC
and the field’s high level signal.
3. Processor
Provides intelligence to command and govern the activities of the entire PLC systems.
4. Programming Device
Used to enter the desired program that will determine the sequence of operation and control of
process equipment or driven machine.
4. Output scan
While solving logic the output values are updated only in memory when ladder scan is done, the
outputs will be updated using temporary values in memory.
I/O Module
- The I/O interface section of a PLC connects it to external field devices.
- The main purpose of the I/O interface is to condition the various signals.
Processor- provides intelligence to command and govern the activities of the entire PLC
systems.
Programming Device - used to enter the desired program that will determine the sequence of
operation and control of process equipment or driven machine.
2. General Purpose Outputs – There are usually low-voltage and low-current and are used
to drive indicating lights and other non-inductive loads. Noise suppression may or may
not be included of this type of modules.
3. Discrete Inputs – Circuits of this type are used to sense the status of limit switches, push
buttons, and other discrete sensors. Noise suppression is great importance in preventing
false indication of inputs turning on or off because of noise.
5. Special Purpose I/O – Circuits of this type are used to interface PLC to very specific
types of circuits such as servomotor, stepping motors PID (Proportional plus Integral plus
Derivative) loops, high-speed pulse counting, resolver and decoder inputs, multiplexed
displays and keyboards.
INPUT DEVICES
Push Button
Limit Switch
Thumbwheel Switch
Level Switch
Flow Switch
OUTPUT DEVICES
Motor
Solenoid
LED Display
Heater Coil
Lamp
Discrete Input
A discrete input also referred as digital input is an input that is either ON or OFF are
connected to the PLC digital input. In the ON condition it is referred to as logic 1 or a logic high
and in the OFF condition maybe referred to as logic o or logic low.
Analog Input
An analog input is an input signal that has a continuous signal, Typical inputs may vary
from 0 to 20mA, 4 to 20mA or 0 to l0V.
Digital Output
A discrete output is either in an ON or OFF condition. Solenoids, contactors coils, lamps
are example of devices connected to the Discrete or digital outputs.
Analog Output
An analog output is an output signal that has a continuous signal. Typical outputs may
vary from 0 to 20mA, 4 to 20mA or O to 10V.
PROCESSOR
The processor module contains the PLC's microprocessor, its supporting circuitry, and its
memory system.
The main function of the microprocessor is to analyze data coming from field sensors through
input modules, make decisions based on the user's defined control program and return signal
back through output modules to the field devices.
Field sensors: switches, flow, level, pressure, temp. transmitters, etc.
Field output devices: motors, valves, solenoids, lamps, or audible devices.
The memory system in the processor module has two parts: a system memory and an
application memory.
MEMORY
Volatile
- A volatile memory is one that loses its stored information when power is removed.
- Even momentary losses of power will erase any information stored or programmed on a
volatile memory chip.
NON-VOLATILE
Has the ability to retain stored information when power is removed, accidentally or intentionally.
These memories do not require battery back-up.
PLC OPERATION
Basic Function of a Typical PLC
Read all field input devices via the input interfaces, execute the user program stored in
application memory, then, based on whatever control scheme has been programmed by the user,
turn the field output devices on or off, or perform whatever control is necessary for the process
application.
This process of sequentially reading the inputs, executing the program in memory, and updating
the outputs is known as scanning.
The time it takes to implement a scan cycle is called SCAN TIME, the scan time
composed of the program scan time, which is the time required for solving the control
program, and the I/O update time, or time required to read inputs and update outputs. The
program scan time generally depends on the amount of memory taken by the control
program and type of instructions used in the program. The time to make a single scan can
vary from I ms to 100 ms.
PLC COMMUNICATION
Serial Communications
PLC communications facilities normally provide serial transmission of information.
Common Standards
RS 232
- Local Area Network provides a physical link between all devices plus providing overall
data exchange management or protocol, ensuring that each device can "talk" to other
machines and understand data received from them.
- LANs provide the common, high-speed data communications bus which
interconnects any or all devices within the local area.
- LANs are commonly used in business applications to allow several users to share
costly software packages and peripheral equipment such as printers and hard disk
storage.
RS 422 / RS 485
Manufacturer Network
Mitsubishi Melsec-NET
Square D SYNET
SPECIFICATION
Several factors are used for evaluating the quality and performance of programmable
controllers when selecting a unit for a particular application. These are listed below.
This specifies the number of I/O devices that can be connected to the controller. There should be
sufficient I/O ports to meet present requirements with enough spares to provide for moderate
future expansion.
PLC PROGRAMMING
PROGRAMMING
Power flows through these contacts when they are closed. The normally open (NO) is
true when the input or output status bit controlling the contact is 1. The normally closed
(NC) is true when the input or output status bit controlling the contact is O.
COILS
Coils represent relays that are energized when power flows to them. When a coil is
energized it causes a corresponding output to turn on by changing the state of the status
bit controlling the output to 1 . That same output status bit maybe used to control
normally open or normally closed contact anywhere in the program.
BOXES
Boxes represent various instructions or functions that are Executed when power flows
to the box. Some of these Functions are timers, counters and math operations.
LADDER LOGIC
Ladder Logic is a programming language used to develop software for PLC used in
industrial control applications.
It is well suited to express Combinational logic.
The main ladder logic symbols represent the elements.
AND Gate
A B Logic (Y)
OFF OFF OFF
OFF ON OFF
ON OFF OFF
ON ON ON
OR Gate
A B Logic (Y)
OFF OFF ON
OFF ON OFF
ON OFF OFF
ON ON OFF
NOR Gate
A B Logic (Y)
OFF OFF ON
OFF ON OFF
ON OFF OFF
ON ON OFF
NAND Gate
A B Logic (Y)
OFF OFF OFF
OFF ON ON
ON OFF ON
ON ON ON
ADVANTAGES OF PLCs
Reliability.
Flexibility in programming and reprogramming.
Cost effective for controlling complex systems.
Small physical size.
High speed of operation.
Ease of maintenance/troubleshooting.
Reduced space.
Energy saving.
DISADVANTAGES OF PLCs
PLC devices are proprietary it means that part or software of one manufacturer
can’t be used in combination with parts of another manufacturer.
Limited design and cost option.
Fixed Circuit Operations.
PLCs manufacturers offer only closed architectures.
APPLICTIONS:
Wherever automation is desired the PLCs are best suited to meet the task.
Few examples of industries where PLCs are used: