automationcontrol3

36
PID Controllers and introduction to PLC systems By Dr. Palitha Dassanayake

Upload: liyanagek

Post on 14-Jun-2015

398 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Automationcontrol3

PID Controllersand introduction to

PLC systems

By

Dr. Palitha Dassanayake

Page 2: Automationcontrol3

Control Systems

Speed

Time

Motionprofile

Micro-processor control system

Page 3: Automationcontrol3

Fly ball governor

Steam valve

James watt

(speed increases,Steam value closes)

Control Systems in early days

Page 4: Automationcontrol3

Input- Voltage

Output-Rotated angle

Control System

Voltage

Voltage

Amplifier

Telephone line

Page 5: Automationcontrol3

AmplificationsAmplificationsAmplifications

Telephone line amplification problem

noise noise noise noisenoise

With the amplification, noise gets increased and increased…

Page 6: Automationcontrol3

Input voltage(a) Amplifier

gain

Outputvoltage

Amplifiergain

Attenuatorcircuit

Input voltage

Outputvoltage(b)

_

+

Page 7: Automationcontrol3

-

Feedbackgain

+

Referenceinput (b) Controller

Controlledvariable

Process

Actuatingsignal

Referenceinput

(a)Controller

Controlledvariable

Process

Actuatingsignal

Open Loop control system

Closed Loop control system

Page 8: Automationcontrol3

PID controller

P= proportional

I=Integral

D=Derivative

90%-95% closed loop automatic

controllers are PID

Page 9: Automationcontrol3

Automatic Controller

-

Sensor

+

Referenceinput r(t)

Controller PlantActuator

Output y(t)

Page 10: Automationcontrol3

Step input and on and off controller

r(t)

Time

A

If y(t)<r(t) ON

If y(t)>r(t) OFF

Time

y(t)

Page 11: Automationcontrol3

P controllers

_

Sensorfeedback

+

Set value r(t) Output y(t)

P process

Steady State Error ?

Transient Response

Time

u(t)

SSE

)()(()( trtykptu

Page 12: Automationcontrol3

P controller outputsInput r(t)= step input value 2

s

11

function Transfer

Kp=1Kp=5

Steady state error decreases with kp for this particular application

Plant

Page 13: Automationcontrol3

Reducing S.S.E

_+

Set value OutputP

+

+plant

U(t)

We may place an external input,

but different set points have different SSE ?

Page 14: Automationcontrol3

PI Controller

))()(()( tytrte

P

_+

Set value OutputI

+

+process

U(t)e(t)

dttekitekptu )(*)(*)(Integral part

Page 15: Automationcontrol3

PI controller outputStep input value =2 Kp=5

KI=1

KI=5

S.S.E exists

S.S.E is zero

KI=20 There is an overshoot

Page 16: Automationcontrol3

PID controllers

P

_+

Set value OutputI

D

+

++

plant

dttde

kddttekitekptu)(

*)(*)(*)(

))()(()( tytrte

Page 17: Automationcontrol3

PID controller outputStep input value =2 Kp=5 and KI=20

KD=1

KD=10

S.S.E still exists

Transient response is also less

Page 18: Automationcontrol3

PID controller output contd. Kp=5, KI=20 and KD=10

input r(t)- pulse input

output y(t)

Page 19: Automationcontrol3

Tuning of PID controllersPID values are different from one system to another

It is required to tune a P, PD, PI or PID controller

Basic industrial approaches Design a stable tuned PID controller after modeling Develop a simulator after modeling and tune

observing the simulator result On site tuning Combination of all three approaches

Page 20: Automationcontrol3

PLC is similar to using a computer but has certain features that are specific to their use as controllers. These are:1. They are rugged and designed to withstand vibrations,

temperature, humidity and noise.2. The interfacing for inputs and outputs is inside the controller.3. They are easily programmed and have an easily understood

programming language. Programming is primary concerned with logic and switching operations.

Programmable Logic Controllers

Page 21: Automationcontrol3

Data busAddress bus

Control bus

CPUclock

MemoryInput/Outputunit

Programpanel

Inputchannels

Outputchannels

Architecture of a Programmable Logic Controller

Page 22: Automationcontrol3

Normally opened contact

Normally closed contact

AND operation

LADDER DIAGRAMS

OR operation

Output

Special Instruction

Page 23: Automationcontrol3

I0.0 Q0.0

I0.1 Q0.1

I0.0 I0.1 Q0.0

Ladder diagram using S7 200

Q0.0I0.0

I0.1

Page 24: Automationcontrol3

Setting and Resetting an output

I0.0 Q0.0

I0.1 Q0.0

S

R

Setting and Resetting a Memory

I0.0 M0.0

S

I0.1 M0.0

R

Page 25: Automationcontrol3

Memory Input Register IType Symbol ExampleBit I0.1Byte IB4 Output Register OType Symbol ExampleBit Q1.1Byte QB5 

Page 26: Automationcontrol3

Variable Memory VStore intermediate results performed by the control logic in a programType Symbol ExampleBit V10.1Byte VW100 Bit Memory MStore intermediate status of an operation or other control informationType Symbol ExampleBit M26.7Byte MD20

Page 27: Automationcontrol3

Two types of timers available

1. On Delay Timer2. Off Delay Timer

Page 28: Automationcontrol3

On Delay Timer (T33- steps of 10ms)

I0.0 T33

2000+

IN

PT

TON

QET

T33 Q0.0

TimeonSwitch

ON

Bulb

OFF

20s

offSwitch

Page 29: Automationcontrol3

Off Delay Timer (T33- steps of 10ms)

I0.0 T33

1500+

IN

PT

TOF

QET

T33 Q0.0

TimeonSwitch

ON

Bulb

OFF15s

offSwitch

Page 30: Automationcontrol3

Counters

I0.0 C48

5

UP

R

C48 Q0.0

PV

I0.1

Page 31: Automationcontrol3

Logo Programming

&

I1

I2

Q1

AND Operation

I1

I2

Q1

OR Operation

1

Page 32: Automationcontrol3

S7 200 Programming Techniques

1. Ladder Programming2. Statement Lists (SLT)3. Function Block Diagrams

Page 33: Automationcontrol3

Statement List (SLT)This programming method introduces a list of statements. Let’s look at the basic programming using SLT. 

Statement List (SLT)This programming method introduces a list of statements. Let’s look at the basic programming using SLT. AND OperationLD I I0.0 // Read I0.0A I I0.1 //and with I0.1= Q0.0 //write the value to Q0.0 

Statement List (SLT)This programming method introduces a list of statements. Let’s look at the basic programming using SLT. AND OperationLD I I0.0 // Read I0.0A I I0.1 //and with I0.1= Q0.0 //write the value to Q0.0 OR OperationLD I I0.0 // Read I0.0O I I0.1 //or with I0.1= Q0.0 //write the value to Q0.0

Page 34: Automationcontrol3

On delay Timer Network 1LD I0.0TON T33,+2000 Network 2LD T33= Q0.0

 Network 1LD I0.0LD I0.1CTU C48,+5 Network 2LD C48= Q0.0

Timers Counters

Page 35: Automationcontrol3

I0.0

I0.1

ANDQ0.0

Functional Block Diagrams

I0.0

I0.1

ORQ0.0

Page 36: Automationcontrol3

END