pid controller

72
Controller Modes 1.ON-OFF controller/two position controller 2.Three-position controller 3.Proportional Action Control 4.Integral/Reset Action Control 5.Derivative/Rate Action Control 6.P+I Control 7.P+D Control 8.P+I+D Control

Upload: saishah72

Post on 19-Jun-2015

1.748 views

Category:

Education


4 download

TRANSCRIPT

Page 1: PID Controller

Controller Modes

1. ON-OFF controller/two position controller2. Three-position controller3. Proportional Action Control4. Integral/Reset Action Control5. Derivative/Rate Action Control6. P+I Control7. P+D Control8. P+I+D Control

Page 2: PID Controller

• Discontinuous control mode• Also called two-position control• The simplest form of control• It is very commonly used in industry• The manipulated variable is quickly changed to

either a maximum or a minimum value• The minimum value of the manipulated variable is

usually zero (off)• Transmit only two output signals: ON (100%), OFF

(0%)• Only responds when it’s above or below the setpoint

ON-OFF Control

Page 3: PID Controller

ON-OFF Controller• Example : Process : Water tank of 10 litres Target: Reach + maintain a temperature of 90oC.

Water : 10 Litres

Heater

Sensor

Page 4: PID Controller
Page 5: PID Controller
Page 6: PID Controller
Page 7: PID Controller
Page 8: PID Controller
Page 9: PID Controller
Page 10: PID Controller

Two-positions controller with hysteresis

Page 11: PID Controller

ON-OFF Controller made from Op- amps

Vin reaches VH Comparator ON state(V0)Vin falls below a value VL Comparator OFF state (0)

Vsp = Setpoint voltage

The HIGH (ON) or V1=Vsp switch voltage isVH = Vsp

The LOW (OFF) switch voltage isVL = Vsp – R1/R2 V0

Page 12: PID Controller

Vin0

V0

Vout

(ON)

(OFF)

VL VH

Page 13: PID Controller

Example:Level measurement in a sump tank is provided by a transducer scaled as 0.2 V/m. A pump is to be turned on by application of +5V when the sump level exceeds 2.0m. The pump is to be turned back off when the sump level drops to 1.5m. Find R2 if R1 is given 5kΩ

Page 14: PID Controller

Three-Position Controller made from Op- amps

Page 15: PID Controller

• In this circuit assumed:The output of the comparators is 0V for the OFF stateVo volts for the ON state

• The summing amplifier includes a bias voltage input VB which allows the three-position mode response to be biased up or down in voltage to suit particular needs.

• The inverter is to convert the sign of the inverting action of the summing amplifier

Page 16: PID Controller

• Equation presented the generic three-mode controller response:

Vin < Vsp1 Vout = VB

Vsp1 < Vin < Vsp2 Vout = VB + R3/R1 Vo

Vin > Vsp2Vout = VB + R3/R1 Vo + R3/R2 Vo

Page 17: PID Controller

Response of the three-position controller with the bias equal to zero

Page 18: PID Controller

Example:The level in a sump tank is to be controlled with a three-position controller. The following specifications are given:1. The level measurement sensor has a transfer function of 0.45 V/m2. The valve is linearly driven from fully open to fully closed by a voltage from 0 to 8V3. The following specifications are given:

level < 2m valve 20% openlevel > 2m < 3m valve 65% openlevel > 3m valve 100% open

Page 19: PID Controller

Comparators are available that have outputs of 0 V for OFF and 5V for ON. Design a three position op amp controller. R3 is given by 10kΩ

Page 20: PID Controller

Proportional Controller (P Mode)• Continuous control mode• Typical behavior/characteristics:

The signal output of a controller is proportional to the input or error

Stay at the same ratio

• Proportional control is a pure gain adjustment acting on the error signal to provide the driving

input to the process.

Page 21: PID Controller

• Implementation of this mode requires a circuit which has a response given by

Where: U =controller output (0 100%) K = Proportional gain (controller transfer function) PB = proportional band in percentage Ep = error in percent of variable range Pp = controller output with no error (bias)

Page 22: PID Controller
Page 23: PID Controller

Example:A proportional controller has the scale 0-10 volts corresponds to a 0-100% output. If R2 = 10 KΩ, and full scale error is 10 volt, find the value of V0 and R1 to support a 20% proportional band about a 50% zero-error controller output.

Page 24: PID Controller

Advantages: Simple Easiest of the continuous controllers tune Provides good stability, rapid response and

relatively stable.

Disadvantages: Only control results in offset – Never reaches SP Action is instantaneous – As soon as error is

produced, control action is taken.Used to stabilize unstable output

Page 25: PID Controller

Integral Action Control• Also called Reset Action Control• Continuous control mode• Typical behavior/characteristic:

- The controller output is proportional to the integral of the error with respect to time

- The value of the controller output is changed at a rate proportional to the error “e”

• Used to removed offset• As long as error exist, integral action will work

to eliminate the error

Page 26: PID Controller

Integral control is implemented through the introduction of an integrator. Implementation of this mode requires a circuit which has a response given by

Page 27: PID Controller
Page 28: PID Controller

Example:• Suppose that V(0)=0 for an integral controller. • It is required that the controller output should

saturate 15 seconds after a constant 5% error is applied.

• The input range is 0-5 volts and the output range is 0-10 volts. Calculate the integration gain and the suitable values of R and C. Assume C=50μF

Page 29: PID Controller

Derivative Control• Also called Rate Control Action• Continuous control mode• Typical behavior/characteristic:

- The controller output is proportional to the rate of the error (time derivative)

• Faster/quick response compared to P• Can cause the damage to the FCE because of too

fast rate of change of the error• Can amplify the noise in the system• Cannot compensating the system error: e = w-x=0

Page 30: PID Controller

• The derivative mode is never used alone because it cannot provide a controller output when the error is zero.

• Implementation of this mode requires a circuit which has a response given by

Page 31: PID Controller

The value of R1 is selected so that the circuit will be stable for high frequencies by setting where f is the frequency in Hz.

Page 32: PID Controller

SummaryRemark: Each mode has its advantages and drawbacks

individually• P mode Advantage: Fast response action • Drawback: Produces steady state error (offset) • I mode Advantage: Steady state error is null • Drawback: Increases the response time • D Mode Advantage: increases the damping of the system • Drawback: Amplifies the noise which can cause problems

including instability

• Therefore, the pure controller mode (P or I or D) is seldom used in process control because of the advantage of composite modes in providing good control.

Page 33: PID Controller

Composite ControllerProportional- Integral Control (PI Mode)

This controller can: eliminate an offset due to integral action the system response is slow due to lag introduced = -90o

better dynamic response than integral alone I action repeats P action in Ti seconds the slope depends on Ti

Kp

Ki

Gp

Parallel controller - Mathematical

Page 34: PID Controller

100/PB

1/Ti

Gp

Series controller - Practical

Ti – Time for integral action after the proportional action

I

t

I

t

I

t

P+I

Page 35: PID Controller
Page 36: PID Controller

Example: PI controller has a proportional band of 30% and an integration time =10 seconds. The 4-20mA input volts converts to a 0.4-2 volt error signal and the controller output range is 0-10 volts.Calculate values of Kp, KI, R1, and R2. C is given by 10μF

Page 37: PID Controller

Proportional-Derivative Control (PD Mode)

This controller can: experience the offset but less than proportional only the system response is faster due to lead introduced = -90o

better dynamic response than integral alone I action repeats P action in Ti seconds the slope depends on Ti

Page 38: PID Controller

Proportional-Derivative Control (PD Mode)

Page 39: PID Controller
Page 40: PID Controller

Three term Controller (PID Mode)

Page 41: PID Controller
Page 42: PID Controller
Page 43: PID Controller
Page 44: PID Controller
Page 45: PID Controller
Page 46: PID Controller
Page 47: PID Controller
Page 48: PID Controller
Page 49: PID Controller
Page 50: PID Controller
Page 51: PID Controller
Page 52: PID Controller
Page 53: PID Controller
Page 54: PID Controller
Page 55: PID Controller
Page 56: PID Controller
Page 57: PID Controller
Page 58: PID Controller
Page 59: PID Controller
Page 60: PID Controller
Page 61: PID Controller
Page 62: PID Controller
Page 63: PID Controller
Page 64: PID Controller
Page 65: PID Controller
Page 66: PID Controller
Page 67: PID Controller
Page 68: PID Controller
Page 69: PID Controller
Page 70: PID Controller
Page 71: PID Controller
Page 72: PID Controller