PLC Slides

46
1 PLC: Programmable Logical Controller CONTENTS 1. What is PLC 2. Electrical Ladder Logic Diagrams 3. Software Ladder Logic Diagrams 4. PLC Implementation 5. An example

Transcript of PLC Slides

Page 1: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 1/46

Page 2: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 2/46

2

1. PLC - Introduction

What does PLC stand for?

PLC - programmable logic controllerPLC implements logic control functions by meansof a program

PLC are basically microprocessor devices that are

used in industry to control plant operations

Page 3: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 3/46

3

1. PLC - Introduction

Features

Page 4: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 4/46

Page 5: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 5/46

5

1. PLC - Introduction

PLCs

Page 6: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 6/46

6

1. PLC - Introduction

An application example 1: Gate Control

PLC can sense a vehicle at the entrance or exit, andopen and close the gate automaticallyThe current vehicle count is easily determined byprogramming a simple counter

Page 7: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 7/46

7

1. PLC - Introduction

An application example 2: Conveyor System

PLC can be used to start/stop latching logic for motorcontrolCounters can be used for monitoring product amounts

Page 8: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 8/46

8

1. PLC - Introduction

Page 9: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 9/46

9

1. PLC - Introduction

Page 10: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 10/46

10

1. PLC - Introduction

Page 11: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 11/46

11

1. PLC - Introduction

Page 12: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 12/46

12

1. PLC - Introduction

Page 13: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 13/46

13

1. PLC - IntroductionComparing traditional and programmable control systems - 1

Page 14: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 14/46

14

1. PLC - Introduction

Comparing traditional and programmable control systems - 2

In traditional control, the switches S1, S2 and S3 must close for

K1 to be turned on - the wir ing

makes the rule @ “hard wired” In PLC systems, the program is written to perform the logic “when S1 is closed AND S2 is closed AND S3 is closed, THEN turn onK1” - the program makes the rule

It is much simpler to change program then wiring!

Page 15: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 15/46

15

1. PLC - Introduction

How does a PLC differ from a computer?

A computer is optimized for calculation and display tasks

A computer is programmed by specialists

A PLC is designed for (logic) control and regulation tasks

A PLC is programmed by non-specialists

A PLC is well adapted to industrial environment

Page 16: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 16/46

16

1. PLC - Introduction

Why are PLCs so common?

They are cost-effectiveThey are flexible, reliable and compact

They have significant advantages over traditionalcontrol systems based on relay or pneumatics

Page 17: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 17/46

17

1. PLC - Introduction

Where are PLCs used?

In every industry where automation is involved,from individual machines to whole processes

Page 18: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 18/46

18

1. PLC - Introduction

What tasks do PLCs perform?

The logic control tasks such as interlocking,sequencing, timing and counting (previouslyundertaken with relays or pneumatics)

In addition, PLCs can perform a variety ofcalculation, communication and monitoring tasks

Page 19: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 19/46

19

Inputs

Outputs & Power Supply

C o m m u n i c a t i o n

P o r t s

( R S - 4 8 5

)

1. PLC - Introduction

Page 20: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 20/46

lecture note 9 PLC 20

1. PLC - IntroductionStructure of a PLC

Page 21: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 21/46

21

1. PLC - Introduction

The PLC processor

Page 22: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 22/46

22

1. PLC - Introduction

PLC Input/Output Devices

Page 23: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 23/46

23

1. PLC - Introduction

PLC Input Devices

Push buttonsSwitches (limit switches, level switches, etc.)

Sensors

Page 24: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 24/46

24

1. PLC - Introduction

PLC Output Devices

Relay contactsSolenoid valves

Signal devices (such as lamps, alarms, etc.)

Motors

Page 25: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 25/46

25

1. PLC - Introduction

Programming terminal

Page 26: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 26/46

26

1. PLC - Introduction

Programming is done through programming

terminal

Programming terminal translates engineeringlanguage (logic control) to machine language

(binary code)

Page 27: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 27/46

27

1. PLC - Introduction

Programming through standard computer

Most PLC manufacturers offer software packages

that allow a standard computer to be used as aprogramming terminal

Page 28: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 28/46

28

1. PLC - Introduction

Programming through standard computer

Page 29: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 29/46

29

1. PLC - Introduction

Relating the program to inputs and outputs

The CPU reads the data from the inputs

The program in the CPU uses the inputs to

evaluate the control logic. As the program runs,

the CPU updates the data

The CPU writes the data to the output

Page 30: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 30/46

30

1. PLC - Introduction

Relating the program to inputs and outputs

Page 31: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 31/46

31

1. PLC - Introduction

Data Flow in the PLC

Page 32: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 32/46

32

1. PLC - Introduction

One of the advantages of PLC is that it can be programmed by

non-specialists

Program can be written either in the form of a

statement list: a set of mnemonic instructions representing a

function of the CPU

or a

ladder diagram: a graphical language resembling theelectrical relay diagrams

Page 33: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 33/46

Page 34: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 34/46

34

1. PLC - Introduction

Ladder diagram

Page 35: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 35/46

35

1. PLC - Introduction

Relay Ladder schematic diagram

Page 36: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 36/46

36

1. PLC - Introduction

Programming symbols and terminology

Special instruction

Page 37: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 37/46

37

1. PLC - Introduction

Ladder equivalent of electrical circuits

Page 38: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 38/46

38

1. PLC - Introduction

Ladder equivalent of electrical circuits (AND)

Page 39: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 39/46

39

1. PLC - Introduction

Ladder equivalent of electrical circuits (OR)

Page 40: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 40/46

40

1. PLC - Introduction

Ladder equivalent of electrical circuits

Page 41: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 41/46

PLCInstruction code mnemonics

LD – Load operand into result register : Start a rung with open contacts

LDI – Load negative operand into result register : Start rung with closed contacts

AND – Boolean AND : A series element with open contacts

ANI – Boolean AND with negative operand : A series element with closed contacts

OR – Boolean OR : A parallel element with open contacts

ORI – Boolean OR with negative operand : A parallel element with closed contacts

OUT – Store result register into operand : An output from rung

41

Page 42: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 42/46

PLC Ladder rung instructions

42

AND

OR

Page 43: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 43/46

43

PLC instruction list

NOR

NAND

Page 44: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 44/46

44

PLC program instructions

0 LD X400

1 LD Y430

2 ORB3 ANI X401

4 OUT Y430

Page 45: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 45/46

45

0 LD X400

1 OR Y430

2 OUT Y430

3 OUT T450

4 K 50 Delay on timer

PLC program instructions

Page 46: PLC Slides

8/10/2019 PLC Slides

http://slidepdf.com/reader/full/plc-slides 46/46

Device a circuit that can be used to start a motor and then aftera delay of 100 s start a pump. When the motor is switched offthere should be a delay of 10 s before the pump is switchedoff.

PLC program instructions