IntrotoPLCs

51
Introduction to Programmable Logic Controllers (PLC's) Industrial Control Systems Fall 2006 L e ctu r e – Introduc t ion t o PLC's MME 4 8 6 – Fa ll 2006 1 of 47

Transcript of IntrotoPLCs

Page 1: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 1/51

Introduction toProgrammable Logic Controllers

(PLC's)

Industrial Control Systems

Fall 2006

Lecture – Introduction to PLC's MME 486 – Fall 20061 of 47

Page 2: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 2/51

The Need for PLCs

Hardwired panels were very time consumingto wire, debug and change.

GM identified the following requirements for 

computer controllers to replace hardwiredpanels.

 – Solid-state not mechanical

 – Easy to modify input and output devices

 – Easily programmed and maintained by plant

electricians

 – Be able to function in an industrial environment

Lecture – Introduction to PLC's MME 486 – Fall 20062 of 47

Page 3: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 3/51

The First Programmable Logic

Controllers (PLCs)

Introduced in the late 1960’s

Developed to offer the same functionality as

the existing relay logic systems

Programmable, reusable and reliable

 – Could withstand a harsh industrial environment

 – They had no hard drive, they had battery backup

 – Could start in seconds

 – Used Ladder Logic for programming

Lecture – Introduction to PLC's MME 486 – Fall 20063 of 47

Page 4: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 4/51

Programmable Logic Controller A programmable logic controller (PLC)

is a specialized computer used to

control machines and process.It uses a programmable memory to

store instructions and specific functions

that include On/Off control, timing,

counting, sequencing, arithmetic, anddata handling

Lecture – Introduction to PLC's MME 486 – Fall 20064 of 47

Page 5: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 5/51

Advantages of PLC Control

SystemsFlexible

Faster response time

Less and simpler wiring

Solid-state - no moving parts

Modular design - easy to repair and expand

Handles much more complicated systems

Sophisticated instruction sets available

Allows for diagnostics “easy to troubleshoot”

Less expensive

Lecture – Introduction to PLC's MME 486 – Fall 20065 of 47

Page 6: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 6/51

 

Eliminates much of the hard wiring that was associatedwith conventional relay control circuits.

Advantages of a PLC Control System

 The program takesthe place of much of the external wiringthat would be requiredfor control of a process .

Lecture – Introduction to PLC's MME 486 – Fall 20066 of 47

Page 7: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 7/51

Advantages of a PLC Control System

Increased Reliability:

Once a program has been written and tested it can bedownloaded to

other PLCs.

Since all the logic is

contained in the PLC’smemory, there is no

chance of making a

logic wiring error.

Conversely......

Lecture – Introduction to PLC's MME 486 – Fall2006 7 of 47

Page 8: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 8/51

Advantages of a PLC Control System

Lecture – Introduction to PLC's MME 486 – Fall2006 8 of 47

Page 9: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 9/51

It is easier to create

and change a programin a PLC than to wire

and rewire a circuit.

End-users can modifythe program in thefield.

 

Advantages of a PLC Control System

More Flexibility:Original equipment manufacturers (OEMs) can provide system updatesfor a process by simply sending out a new program.

Lecture – Introduction to PLC's MME 486 – Fall 20069 of 47

Page 10: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 10/51

Generally, if an application

requires more than about6 control relays, it will

usually be less expensiveto install a PLC.

 

Advantages of a PLC Control System

Lower Costs:

Originally PLCs were designed to replace relay control logic. The costsavings using PLCs have been so significant that relay control isbecoming obsolete, except for power applications.

Lecture – Introduction to PLC's MME 486 – Fall 200610 of 47

Page 11: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 11/51

 

Advantages of a PLC Control System

Communications Capability:A PLC can communicate with other controllers or computer equipment.

They can be networked toperform such functions as:supervisory control, data

gathering, monitoringdevices and processparameters, and downloading

and uploading of programs.

Lecture – Introduction to PLC's MME 486 – Fall 200611 of 47

Page 12: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 12/51

Advantages of a PLC Control System

Faster Response Time:

PLCs operate in real-time which means that an event taking place in thefield will result in an operation or output taking place.

Machines that process

thousands of items per second and objects thatspend only a fraction of 

a second in front of asensor require the PLC’squick response capability.

Lecture – Introduction to PLC's MME 486 – Fall 200612 of 47

Page 13: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 13/51

Advantages of a PLC Control System

Easier To Troubleshoot:

PLCs have resident diagnostic and override functions allowingusers toeasily trace and correct software and hardware problems.

Lecture – Introduction to PLC's MME 486 – Fall2006 13 of 47

Page 14: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 14/51

Advantages of a PLC Control System

The control program

can be watched in

real-time as it

executes to findand fix problems

Lecture – Introduction to PLC's MME 486 – Fall2006 14 of 47

Page 15: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 15/51

 

PLC Architecture

Lecture – Introduction to PLC's MME 486 – Fall 2006 15 of 47

Page 16: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 16/51

 

PLC System

Lecture – Introduction to PLC's MME 486 – Fall 2006 16 of 47

Page 17: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 17/51

PLC Architecture

An open architecture design allows the system to beconnected easily to devices and programs made by

other manufacturers.

A closed architecture or  proprietary system, is one

whose design makes it more difficult to connect devices

and programs made by other manufacturers.

NOTE: When working with PLC systems that areproprietary in nature you must be sure that any generic

hardware or software you use is compatible with your particular PLC.

Lecture – Introduction to PLC's MME 486 – Fall 2006 17 of 47

Page 18: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 18/51

 

I/O Configurations

Fixed I/O

Is typical of small PLCs

Comes in one package, with

no separate removable units.

The processor and I/O arepackaged together.

Lower in cost – butlacks flexibility.

Lecture – Introduction to PLC's MME 486 – Fall 200618 of 47

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 19: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 19/51

Lecture Introduction to PLCs MME 486 Fall 2006 of 47

 

 This feature greatly increasesyour options and the unit'sflexibility. You can choosefrom all the modules availableand mix them in any way youdesire.

Is divided by compartmentsinto which separate modules

can be plugged.

Modular I/O

I/O Configurations

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 20: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 20/51

Lecture Introduction to PLCs MME 486 Fall 2006 of 47

 

When a module slides into the rack,it makes an electrical connection with a series of 

contacts - called the backplane.  The backplaneis located at the rear of the rack.

Modular I/O

I/O Configurations

Page 21: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 21/51

E E Supplies DC power to othermodules that plug into the rack.

- In large PLC systems, thispower supply does not

normally supply power to thefield devices.

 

Power Supply

In small and micro PLC systems, the power supplyis also used to power field devices.

Lecture – Introduction to PLC's MME 486 – Fall 200621 of 47

Page 22: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 22/51

 

ProcessorModule

Processor (CPU)

Is the “brain” of the PLC.Consists of a microprocessor for implementing the logic, andcontrolling the communicationsamong the modules.

Designed so the desired circuit can beentered in relay ladder logic form.

The processor accepts input data from

various sensing devices, executes thestored user program, and sends

appropriate output commands to

control devices.Lecture – Introduction to PLC's MME 486 – Fall 200622 of 47

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 23: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 23/51

Consists of:

E E Input modules

E E Output modules.

 

I/O Section

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 24: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 24/51

 

E E Forms the interfaceby which input field

devices are connectedto the controller.

I/O Section

Input Module

The terms “field” and“real world”are used todistinguish actual external

devices that exist and mustbe physically wired into the system.

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 25: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 25/51

 

E E PLCs employ anoptical isolator which

uses light to electrical-

ly isolate the internalcomponents from theinput and outputterminals.

E E Forms the interfaceby which output fielddevices are connected

to the controller.

Output Module

I/O Section

Page 26: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 26/51

 

PC with appropriatesoftware

Programming Device

A personal computer (PC) is the most commonly usedprogramming device

The software allows users to create, edit, document,store and troubleshoot programs

The personal computer communicates with the PLCprocessor via a serial or parallel data communications linkLecture – Introduction to PLC's MME 486 – Fall 2006 26 of 47

Page 27: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 27/51

 

Hand-held unitwith display

Programming Device

Hand-held programming devices are sometimes used toprogram small PLCs

They are compact, inexpensive, and easy to use, butare not able to display as much logic on screen as acomputer monitor 

Lecture – Introduction to PLC's MME 486 – Fall 2006 27 of 47

Hand-held unit

Page 28: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 28/51

Hand-held unitwith display

Programming Device

• Hand-held units are often used on the factory floor for troubleshooting, modifying programs, andtransferring programs to multiple machines.

Lecture – Introduction to PLC's MME 486 – Fall 200628 of 47

Page 29: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 29/51

 

PLC Mixer Process Control Problem

Mixer motor to automatically

stir the liquid in the vatwhen the temperature and

pressure reach preset values

Alternate manual

pushbutton controlof the motor to be

provided

The temperature andpressure sensor switches

close their respective contacts when conditions reachtheir preset values

Lecture – Introduction to PLC's MME 486 – Fall 200629 of 47

Page 30: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 30/51

 

Motor starter coil is energized when both the pressureand temperature switches are closed or when the manualpushbutton is pressed

Process Control Relay Ladder Diagram

Lecture – Introduction to PLC's MME 486 – Fall 200630 of 47

Page 31: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 31/51

 

PLC Input Module Connections

The same input fielddevices are used

These devices arewired to the input

module according to

the manufacturer’s

labeling scheme

Lecture – Introduction to PLC's MME 486 – Fall 200631 of 47

Page 32: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 32/51

 

PLC Output Module Connections

Same output field

device is used andwired to the output Triac

module

Triac switches motor 

ON and OFF in accordancewith the control signal fromthe processor 

Lecture – Introduction to PLC's MME 486 –Fall 2006 32 of 47

Page 33: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 33/51

 

PLC Ladder Logic Program

• The format used is similar to that of the hard-wired

relay circuit

'

Page 34: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 34/51

 

PLC Ladder LogicProgram

The symbols represent

instructions

Lecture – Introduction to PLC's MME 486 – Fall 200634 of 47

Page 35: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 35/51

 

PLC Ladder LogicProgram

The numbers represent addresses

Lecture – Introduction to PLC's MME 486 – Fall 2006 35 of 47

Page 36: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 36/51

PLC Ladder LogicProgram

Lecture – Introduction to PLC's MME 486 – Fall 2006 36 of 47

Page 37: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 37/51

 

PLC Ladder Logic Program

• I/O address format will differ, depending on the PLCmanufacturer. You give each input and output devicean address. This lets the PLC know where they arephysically connected

Lecture – Introduction to PLC's MME 486 – Fall 2006 37 of 47

Page 38: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 38/51

Entering And Running The PLC Program

To enter the program into the PLC, place

the processor in the PROGRAM mode and

enter the instructions one-by-one using

the programming device

To operate the program, the controller is placed in the RUN mode, or operating

cycle

Lecture – Introduction to PLC's MME 486 – Fall 200638 of 47

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 39: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 39/51

During each operating cycle, the controller examines thestatus of input devices, executes the user program, andchanges outputs accordingly

The completion of one cycle

of this sequence is called

a scan. The scan time, thetime required for one full

cycle, provides a measure

of the speed of responseof the PLC

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 40: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 40/51

 

 The can be considered to represent a coil that,when energized, will close a set of contacts.

Each

PLC Operating Cycle

can be though of as a set of normally

open contacts

PLC Operating Cycle

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 41: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 41/51

 

Coil O/1 is energized when contacts I/1 and I/2 are closedor when contact I/3 is closed. Either of these conditionsprovides a continuous path from left to right across therung that includes the coil.

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 42: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 42/51

 

Modifying A PLC Program

Relay ladder diagram for modified process.

The change requires that the manual pushbutton

control should be permitted to operate at any pressure but

not unless the specified temperature setting has been

reached.

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47 

Page 43: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 43/51

Modifying A PLC Program

Relay ladder diagram for modified process.

If a relay system were used, it would require somerewiring of the system, as shown, to achieve thedesired change.

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 44: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 44/51

 

If a PLC is used, no rewiring is necessary! The inputs and outputs are still the same.

All that is required is to change the PLC program

Modifying A PLC Program

PLC ladder logic diagram formodified process.

Page 45: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 45/51

 PLCs Versus Personal Computers

PLC

- Operates in the industrialenvironment

- Is programmed in relayladder logic

- Has no keyboard, CD drive,monitor, or disk drive

- Has communications ports,and terminals for input and

output devices

PC- Capable of executing several

programs simultaneously, in

any order - Some manufacturers have

software and interface cards

available so that a PC can do

the work of a PLC

Lecture – Introduction to PLC's MME 486 – Fall 2006 45 of 47

Page 46: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 46/51

 

PC Based Control Systems

Advantages

- Lower initial cost

- Less proprietary hardwareand software required

- Straightforward data exchange

with other systems- Speedy information processing

- Easy customization

Lecture – Introduction to PLC's MME 486 – Fall 2006 46 of 47

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 47: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 47/51

 

Micro PLC- Handles up to 32 I/O points

Criteria- Number of inputs and outputs (I/O count)

- Cost- Physical size

Nano PLC- Smallest sized PLC- Handles up to 16 I/O points

Lecture - Introduction to PLC's MME 486 - Fall 2006 of 47

Page 48: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 48/51

 

PLC Size Classification

Allen-Bradley PLC-5 Family

- Handles several thousand I/Opoints

Allen-Bradley SLC-500 Family- Handles up to 960 I/O points

PLC Size Classification

Page 49: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 49/51

PLC Instruction Set

The instruction set for a particular PLC type lists thedifferent types of instructions supported.

An instruction is a command that will cause a PLC

to perform a certain predetermined operation.

Lecture – Introduction to PLC's MME 486 – Fall 2006 49 of 47

Page 50: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 50/51

Typical PLC Instructions

XIC (Examine ON). . . . . . . Examine a bit for an ON condition

XIO (Examine OFF) . . . . . . Examine a bit for an OFF conditionOTE (Output Energize). . . . Turn ON a bit (non retentive)

OTL (Output Latch) . . . . . . Latch a bit (retentive)OTU (Output Unlatch) . . . . Unlatch a bit (retentive)

TOF (Timer Off-Delay) . . . . . Turn an output ON or OFF after itsrung has been OFF a preset time

intervalTON (Timer On-Delay) . . . . Turn an output ON or OFF after its

rung has been ON for a preset time

intervalCTD (Count Down) . . . . . . . Use a software counter to count down

from a specified valueCTU (Count Up) . . . . . . . . . Use a software counter to count up

to a specified value

Lecture – Introduction to PLC's MME 486 – Fall 2006 50 of 47

Page 51: IntrotoPLCs

8/3/2019 IntrotoPLCs

http://slidepdf.com/reader/full/introtoplcs 51/51

Lecture – Introduction to PLC's MME 486 – Fall 2006 51 of 47