Professional Documents
Culture Documents
GUIDELINE #9
PIDDeadbandImplementation
Abstract APIDdeadbandfunctioncanbeusefulinprocesscontrolstoimprovetuningcharacteristicsandeliminate unnecessaryoutputadjustmentswhentheprocessisnearsetpoint.Unfortunately,digitalimplementationofaPID deadbandcanleadtoerraticanddestabilizingresults.Itisthereforenecessarytounderstandthebehaviorofthis featureandthetypeofproblemsthatcanresultfromitsuse.Thepurposeofthisdocumentistoexplainthe deadbandfeatureembeddedinaPIDcontrollerandtodiscussimportantconsiderationsinitsimplementation.
Pr
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
op rie
ta
ry
Pr o
pe
rty
of
TE G
En
er gy
ro up ,
In c.
Page1of13
DeadbandGeneralDescription
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
Iftheerrorisinthedeadband, ErrortoPIDcontroller=rawerrorxdeadbanderrorgain
PV
P Raw Error Deadband gain Adjusted Error
0<DBgain<1
Else, ErrortoPIDcontroller=rawerror
PV
Raw Error
En
SP
TE G
Pr
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
op rie
ta
ry
Pr o
pe
rty
of
er gy
P I D
ro up ,
Page2of13
SP
In c.
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
Example Figure1showsanexampleofadeadbandapplicationwiththefollowingparameters Deadbandlimits=-10%and10% DeadbandErrorGain=0
100 90 80 70 60 50 40 30 20 10 0
Percent(%)
er gy En TE G Pr o pe
Outofdeadband, normaloutput response Enters deadband, outputholds
G
Process Variable Deadband Limit SetPoint Output
rty
of
ro up ,
Page3of13
Pr
op rie
ta
ry
Figure1
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
In c.
NormalDeadbandAction
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
DeadbandTransitions Whentheprocessvariableentersorexitsthedeadband,severalchangesinthePIDcontrollermustoccur.Before enteringthedeadband,theoutputofthePIDcontrolleriscomposedofproportional,integral,andderivative components(Figure2a).Thetransitionintothedeadbandregionwillcausetheerrorperceivedbythecontrollerto beconsiderablyreducedsincetheactualerrorisnowbeingmultipliedbythedeadbandgain,whichinthis exampleiszero.Suchareductionintheeffectiveerrorvaluewillcauseanabrupt,immediatereductioninthe proportionalresponseofthePIDcontroller(Figure2b).Inordertocompensateforthisabruptchange,andto smoothtransitions,thePIDcontrollerdoesnotoutputtheresponseofFigure2b,butinsteadperformsaholdand trackoperation.Duringthistransitioncycle,theoutputofthePIDcontrollerisheldatitspreviousvalue.The integraltermisthenrecalculatedtoreflectthetotaloutputofthePIDcontroller(Figure2c).Afterthistransition cycle,thePIDcontrollercontinuestoactnormallyaccordingtotheeffectiveerror,whichisnowmodifiedbythe deadbandgain.Sincethisoperationisperformedbyadigitalprocessor,thePIDcontrollerrequirestwoscancycles tocorrectlyperformtheholdandtrackstepsdisplayedbelow.1Largeprocessjumpsandrapidtransitionsintoand outofthedeadbandcancauseproblemswiththisprocedure.Theseproblemswillbediscussedinthesectionsto follow.
rty
of
TE G
En
er gy
ro up ,
(a)Notindeadband
pe
Pr o
(c)Integralresetsto compensate
Pr
Formoreinformationonscancyclesandconsiderationswhenusingdigitalcircuits,seeApplicationGuideline#8.
Page4of13
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
op rie
ta
ry
Figure2
In c.
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
transitionoutofthedeadbanddoesnotwarrantasignificantproportionalresponse;however,withalargejumpin thePV,thelackofaproportionalresponsetothatinitialjumpleadstoanundesiredlagintheresponseofthePID controlleroutput.Figure3ashowstheeffectswithadeadbandimplemented,whileFigure3bdoesnothavea deadband.Withthedeadband,theprocessvariable(red)initiallyresideswithinthedeadbandandtheoutput (green)remainsconstant.Whentheprocessvariablejumpsto70%,theoutputstaysatitspreviousvaluewhilethe integraltermisreset.Fromthereon,theoutputgraduallydecreases,mostlyduetotheintegralresponseofthe PIDcontroller.ThelackofproportionalresponsetothePVjumpsignificantlydelaysthereactionoftheoutput comparedtotheresultwithoutadeadband.
80 70 60 50 40 30 20 10 0 80 70 60 50 40 30 20 10
Percent(%)
Percent(%)
of
pe
(a)Reverse-actingPIDcontrollerwithdeadband
rty
Time
TE G
En
er gy
Time
(b)Reverse-actingPIDcontrollerwithoutdeadband
Pr
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
op rie
ta
ry
Pr o
Figure3
ro up ,
Page5of13
In c.
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
DeadbandwithNoise
60 50 SetPoint Percent(%) 40
30
20
10
Time
er gy
ro up , ta ry Pr o pe rty
scan rate 2 noise frequency
Iftheprocessvariableisclosetothedeadbandlimit,ajumpinthePVduetoanoisysignalcancausemultiple transitionsintoandoutofthedeadbandinashorttimeperiod.Figure4showsanexampleofthissituation.The processvariablestartsnear40%andentersthedeadbandregionasitapproachessetpoint.Noisethencausesthe processvariabletoexitandreenterthedeadbandmultipletimesuntilitfinallyremainsinthedeadbandforgood. Duringtheserapidsuccessivetransitionsintoandoutofthedeadband,theoutputperformsthreelarge, destabilizingupwardjumps. Thisnoise-inducedproblemcomesfromtherelationshipbetweenscanrateofthePIDcontrollerandnoise frequency.Withlittlenoise,thescanrateisusuallyfastenoughtocompletetheholdandtrackcalculationbefore thePVcrossesthedeadbandlimitagain.However,withhigh-frequencynoise,itbecomespossibleforthePVto enterthedeadbandduringonescancycle,andjumpoutthenext.Theprocessvariableisthereforenotableto establishitselfinthedeadbandzone,whichinterfereswiththeholdandtrackoperation.TheinabilityofthePID controllertocompletethisoperationbythesecondcrossingofthedeadbandlimitleadstoanundesiredoutput jump.Toavoidthisjump,thefollowingconditionmustbemet
Pr
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
op rie
of
TE G
TheNoiseProblem
En
Figure4:Reverse-actingPIDcontroller
In c.
Process Variable Output Deadband Limit
Page6of13
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
SmoothDeadbandTransition
70 60 50 Percent(%) 40 30 20 10 SetPoint Process Variable Output
Time
er gy
ro up ,
Figure5
Deadband Limit
Pr
op rie
ta
ry
Pr o
pe
rty
of
TE G
En
(a)
(b)
(c)
Figure6
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
In c.
Page7of13
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
Observableresults TheeffectsofthepreviouslydescribedovercompensationareillustratedinFigure7.Thefourpossiblescenarios andtheircorrespondingoutputreactionsaredepicted.Theprocessvariableisinred,theoutputingreen,andthe deadbandisthedashedblackline.Asshown,theoutputissteadyduringthefirstPVjumpintooroutofthe deadband.TheproblemoftheoutputjumpoccurswhenthePVreturnstoitsoriginalregionatthenextscancycle. ThisoutputjumpdependsonthedirectionofthePVchange.Thegraphsintheleftcolumnshowupwardspikesin thePV,causingtheoutputtoincrease.ThegraphsintherightcolumnshowdownwardspikesinthePV,causing theoutputtodecrease.
Pr
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
op rie
ta
ry
Pr o
pe
rty
of
TE G
En
er gy
ro up ,
Page8of13
In c.
APPLICATION GUIDELINE #9
PIDDeadbandImplementation VariousProcessVariableJumpsandOutputResponses
Time
ry
op rie
ta
Time
Pr o
pe
rty
of
TE G
En
Figure7
Pr
TAI#9:PIDDeadbandImplementation
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
er gy
G
Time Time
ro up ,
In c.
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
MultiplePVjumps
60 50 SetPoint Percent(%) 40 Process Variable Output
30
10
Time
er gy
20
ro up , ta ry Pr o pe rty of TE G En
Figure8
Deadband Limit
Inthisexample,theprocessvariableapproachessetpoint,butnoisecausesittoenterandexitthedeadband regionseveraltimesbeforesettling.EachtimethePVexitsthedeadband,theoutputjumps.Thisoutputjumpis proportionaltothedifferencebetweentheerrorvaluewithinthedeadbandandtheerrorvalueoutsideofthe deadband.ItisalsorelatedtotheproportionalgainofthePIDcontroller.Sincethedeadbandgainiszerointhis example,theerrorinthedeadbandisalsozero.Uponthefirstjumpbackoutofthedeadband,thePVobtainsthe valueof43%,anerrorof7%thatcausesanoutputjumpof7%duetotheproportionalgainof1.Ifthe proportionalgainwere2instead,theoutputjumpwouldbe72=14%. Withthisknowledge,itispossibletomakeseveralgeneralizationsaboutthebehavioroftheseoutputjumps.As previouslystated,themagnitudeoftheoutputjumpisdirectlyrelatedtotheproportionalgain.Thesizeofthe deadbandlimitalsoaffectsthesizeofoutputjumps.Alargedeadbandlimitwouldresultinalargedifference betweentheerrorinsideandtheerroroutsidethedeadband,whichwouldcauselargeoutputjumps.Inaddition, thedeadbandgainalsohasaneffect.Ifthegainiscloserto1,theoutputjumpislessprominentsincethechange inerrorupontransitionsissmaller.
Pr
TAI#9:PIDDeadbandImplementation
op rie
Proposedsolution
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
In c.
Page10of13
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
SP
PV
ro up , er gy
A N D
H//L
A N D
N O T
In c.
Transport Delay
2Scan Cycles
Deadband Limit
Transport Delay
G
N
1Scan Cycle
H//L
O R
En
TE G
Deadband Limit
PV
PID
of
SP
pe
rty
ta
ry
Pr o
M/A Station
Pr
op rie
F(x)
FinalDrive Element
Figure9:Transportdelaylogiccircuit
TAI#9:PIDDeadbandImplementation
Page11of13
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
Conclusion Duetopossiblenoise-inducedoutputjumpscausedbytransitionsintoandoutofthedeadbandregion,caution shouldbetakenwhenusingthedeadbandfunction.ThedeadbandinaPIDcontrollerworkswellwhentheprocess variablesignalisclean,butcancauseundesiredoutputjumpswhenthesignalisnoisyanderratic.Usinga smoothingalgorithmoralagfunctioncanreducenoise,butwillintroduceundesireddelaysintheprocesswithout ensuringprotectionfromerraticjumps.Thelogicstrategyproposedinthisdocumentisapossiblesolutionto preventdestabilizingoutputjumpsfromthedeadbandimplementation.Withthisstrategy,thedeadbandcanbea verypowerfultooltoreduceoreliminatevalveadjustmentswhentheprocessvariableisclosetosetpoint.
Pr
TAI#9:PIDDeadbandImplementation
op rie
ta
ry
Pr o
pe
rty
of
TE G
En
er gy
ro up ,
Page12of13
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
In c.
APPLICATION GUIDELINE #9
PIDDeadbandImplementation
Appendix Figure10depictstheentirelogiccircuitforadeadbandsimulation.
I
A
SP
PV
PID
A On Delay One Shot N M/A Station N O T
A Y
er gy rty
Deadband Limit
Transport Delay
LAG
Pr o
pe
of
TE G
En
H//L
A N D
N O T
ry
ta
Transport Delay
G
Noise Generator
A N D N O R
op rie
1 Scan Cycle
H//L
Pr
Deadband Limit
Figure10
TAI#9:PIDDeadbandImplementation
ro up ,
Transport Delay
2Scan Cycles
R.2.3 Printing: 08/06/2012 Control strategies depicted in this document are public domain. However, all explanations and text are considered proprietary to TEG Energy Group, Inc. and may not be distributed without the written consent of TEG Energy Group, Inc.
In c.
Page13of13