Pid controllers


Published on

pid control basics

Published in: Education, Technology, Business
1 Comment
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Pid controllers

  2. 2. ▪ A sensor measures and transmits the current valueof the process variable, PV, back to the controller (thecontroller wire in)▪ Controller error at current time t is computed as setpoint minus measured process variable, or e(t) = SP – PV▪ The controller uses this e(t) in a control algorithmto compute a new controller output signal, CO▪ The CO signal is sent to the final control element(e.g. valve, pump, heater, fan) causing it to change (thecontroller wire out)▪ The change in the final control element (FCE) causesa change in a manipulated variable▪ The change in the manipulated variable (e.g. flowrate of liquid or gas) causes a change in the PV
  3. 3. PROPORTIONAL ONLY MODEThe P-Only Algorithm - The P-Only controller computes a CO action every loopsample time T as: CO = CObias + Kc∙e(t) Where:• CObias = controller bias or null value• Kc = controller gain, a tuning parameter• e(t) = controller error = SP – PV• SP = set point• PV = measured process variable
  4. 4. DEFINITIONS –CObias is the value of the CO that, in manual mode, causes thePV to steady at the DLO while the major disturbances are quietand at their normal or expected values.Control loop sample time specifies how often the controllersamples the measured process variable (PV) and computes andtransmits a new controller output (CO) signal.OFFSET – The difference between process value (PV) and setpoint (SP) when the controller output has already settled.Proportional Band – PB = (COmax – COmin)/KcWhen CO and PV have units of percent and both range from 0%to 100%, the much published conversion between controllergain and proportional band results: PB = 100/Kc
  5. 5. ADVANTAGES–1. Only one variable, gain Kc has to be controlled tocontrol the response of the system2. Relatively simple to design3. Works well for systems where set point doesn’tchangeDISADVANTAGES –1. Offset is produced if set point is changed from design value.2. If proportional gain is increased to reduce the offset, the system becomes unstable.
  6. 6. THE PI MODE• The PI Algorithm• While different vendors cast what is essentially the same algorithm in different forms, here we explore what is variously described as the dependent, ideal, continuous, position form:Where:• CO = controller output signal (the wire out)• CObias = controller bias or null value; set by bump-less transfer as explained below• e(t) = current controller error, defined as SP – PV• SP = set point• PV = measured process variable (the wire in)• Kc = controller gain, a tuning parameter• Ti = reset time, a tuning parameter
  7. 7. • ADVANTAGES –1. It eliminates offset produced due to proportional control2. Accelerates the response towards steady state DISADVANTAGES –1. It may lead to sustained oscillations about the set point2. The two tuning parameters interact with each other and their influence must be balanced by the designer which is more complex than p only.3. The integral term tends to increase the oscillatory or rolling behavior of the process response.
  8. 8. PID CONTROLThe Dependent, Ideal PID FormA popular way vendors express the dependent, ideal PID controller is:Where: CO = controller output signal (the wire out) CObias = controller bias; set by bump-less transfer e(t) = current controller error, defined as SP – PV SP = set point PV = measured process variable (the wire in) Kc = controller gain, a tuning parameter Ti = reset time, a tuning parameter Td = derivative time, a tuning parameter
  9. 9. • The proportional term considers how far PV is from SP at any instant in time. Its contribution to the CO is based on the size of e(t) only at time t.• The integral term addresses how long and how far PV has been away from SP. The integral term is continually summing e(t).• A derivative describes how steep a curve is. More properly, a derivative describes the slope or the rate of change of a signal trace at a particular point in time.
  11. 11. DERIVATIVE KICK• When the controller begins operation, the slope of the controller response is almost 90 degrees and thus the derivative term produces a huge output (theoretically infinity).This is known as a Derivative kick and is mostly undesirable.• To overcome this, instead of taking derivative of error voltage, we take the derivative of the process value(PV).
  12. 12. • When set point is constant, its derivative is zero. So we can write the differential term as –So we can write the PID control equation as –