components & programming of plc

41
C C OMPONENTS & OMPONENTS & PROGRAMMING OF PROGRAMMING OF PL C PLC By Nurdiana binti Nordin

Upload: nurdiana-nordin

Post on 09-Apr-2018

246 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 1/41

CCOMPONENTS &OMPONENTS &

PROGRAMMING OFPROGRAMMING OF

PLCPLC By Nurdiana binti Nordin

Page 2: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 2/41

LEARNING OUTCOMESLEARNING OUTCOMESfor lecture today

Page 3: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 3/41

Learning outcomesLearning outcomes

Page 4: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 4/41

LECTURE CONTENTSLECTURE CONTENTS

Page 5: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 5/41

 Today’s Lecture Today’s Lecture

Continuation from last weekv Hardware Components of PLC

v PLC Hardware Configurations

v Power Supply

v CPU/Processor

vMemoryvI/O Modules

vProgramming DevicevAdditional/Optional componentsvProgramming of PLC

Page 6: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 6/41

PLC HARDWAREPLC HARDWARE

COMPONENTS:COMPONENTS: MEMORY MEMORY 

Page 7: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 7/41

MemoryMemory

Page 8: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 8/41

MemoryMemory

Page 9: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 9/41

Factors affecting memory sizeFactors affecting memory size

Page 10: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 10/41

PLC HARDWAREPLC HARDWARE

COMPONENTS:COMPONENTS:

INPUT & OUTPUT MODULESINPUT & OUTPUT MODULES

Page 11: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 11/41

Input & Output ModulesInput & Output Modules

Page 12: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 12/41

Input & Output ModulesInput & Output Modules

Input devices (push

button, limit switches,

various of sensors, etc)

are wired /connected

to the terminal on the

input modules

Page 13: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 13/41

Input & Output ModulesInput & Output Modules

Output devices

(motor, light, valve,

motor starter, etc)

are wired/connected

to terminal on the

output modules

Page 14: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 14/41

Input & Output ModulesInput & Output Modules

- I/O modules can be located near the I/O devices

by using Remote I/O  hence minimizing wiring

connection.

Page 15: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 15/41

Input & Output ModulesInput & Output Modules

Page 16: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 16/41

Input & Output ModulesInput & Output Modules

Page 17: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 17/41

Input & Output ModulesInput & Output Modules

Page 18: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 18/41

Input & Output ModulesInput & Output Modules

 Common voltage rating for DISCREET /I Omodules

Input InterfacesInput Interfaces Output InterfaceOutput Interface

12V/24V AC/DC12V/24V AC/DC 12-48V AC12-48V AC

48V AC/DC48V AC/DC 120V AC120V AC

120V AC120V AC 230V AC230V AC

230V AC/DC230V AC/DC 120V AC120V AC

5V DC5V DC 230V DC/5V DC/230V DC/5V DC/24V DC24V DC

Page 19: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 19/41

Input & Output ModulesInput & Output Modules

Page 20: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 20/41

Input & Output ModulesInput & Output Modules

Page 21: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 21/41

PLC HARDWAREPLC HARDWARE

COMPONENTS:COMPONENTS: 

PROGRAMMING DEVICEPROGRAMMING DEVICE

Page 22: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 22/41

Programming DevicesProgramming Devices

Also called asProgram Terminal

(PT)

Page 23: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 23/41

Programming DevicesProgramming Devices

Page 24: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 24/41

Programming DeviceProgramming Device

Page 25: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 25/41

PROGRAMMING OF PLCPROGRAMMING OF PLC

Page 26: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 26/41

IntroductionIntroduction

qProgramming means: user entersthe control instruction/controlprogram to PLC throughprogramming devices

qqPLC programming is based on basic

logic function stored in processor

(programmable & easily changed)q

qPLC programming languages

Page 27: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 27/41

PLC Program ScanPLC Program Scan

-  The process that processor readsinput data, execute the control

program, and send output data

for complete cycle operation is

called program scan

- PLC program scan consist of 

three stages:

i. input scan

Page 28: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 28/41

PLC Program ScanPLC Program Scan

Page 29: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 29/41

PLC Program ScanPLC Program Scan

∆   PLC required certain amount of time to execute onecomplete cycle

operation of program scan

∆ Typical scan time : 1 – 25mSec

/perating cycle scan time:epends on

Page 30: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 30/41

Logic Control and SequenceLogic Control and Sequence

Page 31: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 31/41

I/O devices for Logic Control &I/O devices for Logic Control &

SequenceSequence

Sensor  One/ZeroInterpretation

Actuator  One/ZeroInterpretation

Limit switch Contact/no contact Motor  On/off 

Photo detector  On/off  Control relay Contact/no contact

PB switch On/off  Light On/off 

Timer  On/off  Valve Closed/open

Control relay Contact/no contact Clutch Engaged/notengaged

Circuit breaker  Contact/no contact Solenoid Energized/not

energized

Page 32: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 32/41

Programming of PLCProgramming of PLC

Page 33: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 33/41

Basic Gates and BooleanBasic Gates and Boolean

equationsequations Truth table and Boolean equations

vAND gate

vOR gatevNOT gate

vNAND gate

vNOR gate

Page 34: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 34/41

Basic Gates and BooleanBasic Gates and Boolean

equationsequations

AND

XOR

Page 35: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 35/41

Programming of PLCProgramming of PLC

Page 36: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 36/41

PLC Programming LanguagePLC Programming Language

5 types of programming languagesaccording to

IEC 61131-3 (International Standard for

PLC)

i. Ladder diagram (LD) – graphical, discretecontrol

ii. Function block diagram (FBD) – graphical,continuous control iii. Sequential function chart (SFC) – graphical,

sequencing

iv. Instruction list (IL) – textual, discrete control –

Page 37: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 37/41

Ladder DiagramLadder Diagram

- Ladder diagram is the most common PLClanguage programming

- Logic input elements and output

components are displayed alonghorizontal line (called rungs) andconnected on two vertical rail

- Logic input elements located to the left  

and output element to the far  right  of each rung

- Power is provided by the two vertical rails

Page 38: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 38/41

Ladder DiagramLadder Diagram

- In ladder diagram,logic instructions areexecutes from top tobottom, left to the right

- Logic inputs areconnected in series,parallel or some

combinations to obtaindesired logic

- Use ladder symbols

Page 39: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 39/41

Ladder Diagram : SymbolsLadder Diagram : Symbols

( ) ( / / .)Normally open NO contacts switch relay etc

( / / / / .)Output loads motor solenoid valve light etc

( ) ( / / .)Normally open NO contacts switch relay etc

TMR 3s Timer

CTR Counter

Page 40: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 40/41

MM Y 2 CENTS Y 2 CENTS

Page 41: Components & Programming of PLC

8/7/2019 Components & Programming of PLC

http://slidepdf.com/reader/full/components-programming-of-plc 41/41

 eing happy doesn eing happy doesn ’ mean mean hat everything is perfec hat everything is perfec ut rather it means ut rather it means

’ou ve decided to ou ve decided to ook beyondook beyond

 he imperfectionshe imperfections