Control loops 1

advertisement
Controlloopsandcontroltheory
I. Feedbackloopandtransferfunction
II. PIcontrollers
III. Stabilitycriteria
IV. PIcontroller+fastloop
V. 1HzClocklaserexample
El8
Controlloopexample:driving
PeriodlengthL
Forthedriver,the(periodic)oscillationsintheroadhavean
apparentfrequencyof݂ ൌ ‫ݒ‬Ȁ‫ܮ‬.
1. Atwhichfrequency݂௞ (variablespeed‫)ݒ‬doyouexpectthe
car/drivertolosecontrolofthecar?(perfectgrip)
2. Whichfactorscontributetothislossofcontrol?
Capturerange
El9
Feedbackloop
Disturbance
ܷሺ‫ݏ‬ሻ
System‫ܣ‬௦ ሺ‫ݏ‬ሻ
Controlsignal
‫ܥ‬ሺ‫ݏ‬ሻ
Complexfrequency
࢙ ‫ ࣌ ؠ‬൅ ࢏࣓
Systemoutput
ܺሺ‫ݏ‬ሻ
Errorsignal
ܺ‫ܺ=ݎ‬ሺ‫ݏ‬ሻ
Controllerߚሺ‫ݏ‬ሻ
Referencevalue(‫)ݎ‬
Example:Proportionalcontrollerࢼ ࢙ =࡭࢖
Assumption:nodelay,constantgain‫ܣ‬௣
System(Strecke)isslow,hasdelay߬
֜ phaseresponsedelayed,by120° at݂௞ .For
thisdelay,effectivenegativefeedback
becomesimpossible.
‫ܣ‬௣ ‫ܣ ڄ‬௦
Hence,totalgainߚ ݂௞ ‫ܣ ڄ‬௣ ሺ݂௞ ሻ shouldbe
smallerthanone,toavoid
resonance/introducedamping.
‫ܣ‬௣ ‫ܣ ڄ‬௦
Drawbacks:
Limitedthegainatlowfrequencies.
Exponentiallyslowapproachtoreference=0.
Constantoffset‫ ݔ‬ሺλሻ െ ‫ Ͳ ് ݎ‬if‫Ͳ ് ݎ‬.
El11
Tietze+Schenk,Chap19
Openloopgain
Disturbance
ܷሺ‫ݏ‬ሻ
௦
andtransferfunction
System‫ܣ‬௦ ሺ‫ݏ‬ሻ
Controlsignal
‫ܥ‬ሺ‫ݏ‬ሻ
Complexfrequency
࢙ ‫ ࣌ ؠ‬൅ ࢏࣓
Systemoutput
ܺሺ‫ݏ‬ሻ
Errorsignal
ܺ‫ܺ=ݎ‬ሺ‫ݏ‬ሻ
Controllerߚሺ‫ݏ‬ሻ
Referencevalue‫ݎ‬
Responseofsystemtoinput?Withoutfeedback:
௧ᇲ
‫ ݐ ݔ‬ൌ ‫׬‬଴ ‫ ݐ ݑ‬ᇱ ‫ܽ ڄ‬௦ ‫ ݐ‬െ ‫ ݐ‬ᇱ ݀‫ ݐ‬ᇱ ‫ܽ כ ݑ ؠ‬௦
ܺ ‫ ݏ‬ൌ ܷ ‫ܣ ڄ ݏ‬௦ ‫ݏ‬
‫ؠכ‬Convolution
Convolution՜ Multiplikation.Solveinfrequencydomain,finalIFT
Closedloop(‫)Ͳ ؠ ݎ‬:
ܺ ‫ ݏ‬ൌ ܷ ‫ܣ ڄ ݏ‬௦ ‫ ݏ‬െܺ ‫ܣ ڄ ݏ ߚ ڄ ݏ‬௦ ‫ݏ‬
ܺ ‫ ݏ‬ൌ
‫ ݏ ܨ‬ൌ
ୢ୧ୱ୲୳୰ୠୟ୬ୡୣ
୬ୣ୥ୟ୲୧୴ୣ୤ୣୣୢୠୟୡ୩
஺ೞ
‫ܷ ڄ‬ሺ‫ݏ‬ሻ
ଵାఉ‫ڄ‬஺ೞ
஺ೞ
iscalledtransferfunctionorimpulseresponse,becausewithߜimpulse
ଵାఉ‫ڄ‬஺ೞ
‫ ݐ ݑ‬ൌ ߜ ‫ ݐ‬െ Ͳ ֜ ܷ ‫ ݏ‬ൌ ͳǢ
ܺ ‫ ݏ‬ൌ ‫ ݐ ݔ ֜ ͳ ڄ ݏ ܨ‬ൌ ݂ሺ‫ݐ‬ሻ
El12
ܷሺ‫ݏ‬ሻ
Systemincl.Feedback:‫ݏ ܨ‬
ܺሺ‫ݏ‬ሻ
Transferfunction
ܷሺ‫ݏ‬ሻ
andstability
System‫ܣ‬௦ ሺ‫ݏ‬ሻ
Controllerߚሺ‫ݏ‬ሻ
Systemresponse
௦
ܺሺ‫ݏ‬ሻ
௦
ܷሺ‫ݏ‬ሻ
Systemincl.Feedback:‫ݏ ܨ‬
ܺሺ‫ݏ‬ሻ
Suppressionofdisturbancesbyfeedback
Thelargerߚሺ‫ݏ‬ሻ,thebettersuppressionofdisturbancesatthatfrequency‫ݏ‬
Stability:ࢼ ࢙ ‫ ࢙࡭ ڄ‬ሺ࢙ሻ shouldneverbecomeൌ െ૚
becausethenpositivefeedback,instable
Goals?
• Stability,i.e.ߚ ‫ܣ ڄ ݏ‬௦ ‫ ് ݏ‬െͳ‫ݏ׊‬
• Largegainࢼ atlowfreqencies
• Why:Mostdisturbancesaretypicallyacousticandhenceatfrequencies<2kHz
Twoviewpoints:
1. Study ߚ ‫ܣ ڄ ݏ‬௦ ‫ ݏ‬inBodediagrams,avoid߮ ߚ ‫ܣ ڄ‬௦ ൌ െͳͺͲι AND|ߚ ‫ܣ ڄ‬ȁ ൐ ͳ
• Moreintuitive.Thislecture.
2. Studypolesandzerosof‫ ݏ ܨ‬incomplex‫ ݏ‬ൌ ߪ ൅ ݅߱ plane.Mathematicallymore
powerful(residuetheorem).
• Severalstabilitycriteriae.g.polesmustbeinߪ<0halfplane.RouthHurwitzcriteria
See2ndlecture.
El13
Laplacetransform
Laplacetransform=Fouriertransformgeneralisedtocomplex‫ݏ‬:
ஶ
‫ ݏ ܨ‬ൌන ݁
ି௦‫ڄ‬௧
଴
ͳ ఊା௜ஶ ௦‫ڄ‬௧
න
݁ ‫ݏ݀ ݏ ܨ‬
݂ ‫ ݐ ݂ ֞ ݐ݀ ݐ‬ൌ
ʹߨ݅ ఊି௜ஶ
Complexfrequency
࢙ ‫ ࣌ ؠ‬൅ ࢏࣓
Integration&Differentiation֞ Division&Multiplicationby‫ݏ‬
௧
݆ ‫ ݐ‬ൌ න ݂ ‫ ݐ‬ᇱ ݀‫ ݐ‬ᇱ ֞ ‫ ݏ ܬ‬ൌ
଴
݀ ‫ ݐ‬ൌ
‫ݏ ܨ‬
‫߱ ܨ‬
‫ ߱ ܬ‬ൌ
‫ݏ‬
݅߱
݂݀ ‫ݐ‬
֞ ‫ ݏ ܦ‬ൌ ‫ ߱ ܦ ݏ ܨ ڄ ݏ‬ൌ ݅߱‫ܨ‬ሺ߱ሻ
݀‫ݐ‬
ஶ
ஶ
௧
ି௦‫ڄ‬௧
Proof: ‫ ݏ‬ൌ ‫׬‬଴ ݁ถ
‫ܬ ڄ ݐ‬ᇱ ‫ ݐ݀ ݐ‬ൌ
‫׬‬଴ ݂ ‫ ݐ‬ᇱ ݀‫ ݐ‬ᇱ ݀‫ ݐ‬ൌ ‫݅ ڄ ݑ‬ȁஶ
ถ
଴ െ ‫׬‬଴ ‫ݑ‬
௨ᇲ
Ž‘‰ ‫ܫ‬
ୀ଴
௝ ௧
Ž‘‰ ‫ܫ‬
Integration
೐షೞ೟
ೞ
Differentiation
ͳȀ݂
െͻͲι
El14
െͳͺͲι
݂
Ž‘‰ ݂
߮ሺ‫ܫ‬ሻ
ͳȀ݅
ி ௦
௦
߮ሺ‫ܫ‬ሻ
െͻͲι
െͳͺͲι
Ž‘‰ ݂
݅
Integrate
byparts
Cornerfrequency݂ூ ൌ
PIController
ଵ
ଶగோమ ஼మ
Unitygainpoint
‫ܣ‬௉ூ ߱ ൌ ‫ܣ‬௣ ͳ ൅
Proportionalgain
athighfrequencies
ʹߨ݂ூ
݅߱
Integralgain
atfrequencies݂ ൏ ݂௜
Advantages:
•
Muchhighergainatlowfrequencies݂:
஺
௙
• Limitedbycornerfrequency݂ூ : ು಺ ൌ ಺
஺ು
௙
• Zerooffset‫ݔ‬ሺλሻ െ ‫ ݎ‬ൌ Ͳ fromref.value‫Ͳ ് ݎ‬.
֜ PIcontrollermuchbetterthanPcontroller!
But:Extra90° delay.Noproblem,only120° is.
Current‫ܫ‬ଵ ൌ ܷ௫ Ȁܴଵ charges‫ܥ‬ଶ ,changingܷ஼ .
Untildeviationfromdesiredreference=xr=ܷ௫ iszero,i.e.perfectlock.
R3
R2
ܴଵ
‫ܫ‬ଵ
ܷ௫
u
u
–
+
i3
‫ܥ‬ଶ
Math: Gainൌ
‫ܫ‬ଵ
Control
signalܷ௖
௓మ
௓భ
ൌ
ோమ ା ௜ఠ஼మ షభ
ோభ
ൌ
ͳ൅
ோమ ஼మ షభ
௜ఠ
ൌ ‫ܣ‬௣ ͳ ൅
ଶగ௙಺
௜ఠ
ܼଶ islargeforlowf,where‫ܥ‬ଶ iseffectiveblock.Atlargef,‫ܥ‬ଶ becomes
conducting,andܴଶ dominates
ܴଷ limitsgainatverylowfrequencies,i.e.allowsdischargingof‫ܥ‬ଶ
El15
TietzeSchenk,Chap.19
PIcontrollertips
GeneralGuideline: Maximumgainatlow,acousticf‘s!
• MoreimportantthanBandwith݂஻ௐ asfigureofmerit.
Def.:݂஻ௐ ǣ ߮ ߚሺ݂஻ௐ ሻ ‫ܣ ڄ‬௦ ሺ݂஻ௐ ሻ ൌ120ι
• Butthehigherthebandwidth,thehigher݂ூ ֜ higher
thegainatlowfrequencies.
•
Checkthedelaysofeachrelevantpart:System,detector,
partsofthecontrollerlikepreamp,actuator(e.g.piezo,
AOM).Optimizelimitingone.
•
Increasebandwithbyaddingsecond,fastercontrol
element,e.g.AOM.՜2ndlecture.
UseonlyIcontrollerwithoutP
•
•
Yes,yourbandwithwillgodownduetoextra90°.Butyou
aretakingadvantageofthe1/fbehaviouralways.
Andyouwillnothavetochoose݂ூ correctly
Phaseandamplitudelinkedbycausality/FourierTrafo
•
•
El16
ோమ
ோଵ
Candirectlydeduce‫ ֞ ܫ( ߮ ֞ ܣ‬െͻͲι; ‫ ֞ ܦ‬൅ͻͲι)
providedphaseshiftscausedbylowpassbehaviourand
notcabledelays
AdvancedPIcontrollertips
Dodoubleintegration:PI2
•
•
•
•
Moregainatlowfrequency
െͳͺͲι delayatlowI2frequenciesisnotaproblem,aslongas
݂ூమ ‫݂ د‬௄ ȀͶ (prooflater)
Limitdoubleintegrationatlowf,otherwiseinitallockinghard.
Integrator is a lowpass ֜ can implement 2nd I passively.
However, 1 integrator must be active, to be able to charge
capacitor to setpoint. Implement PI2 with normal PIlockbox
(corner ݂ூమ ) + extra external lowpass with ݂௅௉ ̱ͳͲͲ Hz.
Sharppiezoresonances
•
•
•
causestrongphasedelays>120° andhencelimitbandwidth
Sometimeshelpstosuppressgainat݂௣௜௘௭௢௥௘௦ by(higherorder)
lowpasswith݂௅௉ ൏ ݂௉௜௘௭௢௥௘௦Ǥ Thentotalgaincanbeincreased.
>moregainatlowfrequency
Normally:Donotusedifferentialgain(PID)
•
•
Gainincreases‚infinitely‘ forincreasingf.Butthe߮ ൌ െͳʹͲι still
ariseduetosystemdelay,despite+90°.HereA>1>instable
DpartgoodwhencancellingsomeIpartinthesystem,e.g.for
currentfeedbackonlaserdiodes(whichare~capacitors).
• Goodforveryslowloopsliketemperaturecontrollers
El17
Exerciseincircuitdiagramreading– PIinputampstage
Errorsignal+and in
amplified
errorsignal
Circuittoprovideoffset
correctionforINA
(notimportant)
El18
Integrator+outputstage
LogicDither(LD):Alogic(5V,0V)signaltellingthecircuit
Wetherheshould„dither“ortrytolock.
Dither:Asawtoothsignaltosweep
outputacrossentire+10Vregion
whennotlocked.Toseelockingsignal
LD
Relock(logic): Whenlockislost,
integrator&outputsaturates.>
Relockisputtozero(elsewhere),
dischargingintegratorC
El20
SomePIcontrollermodelstoconsider
• PIcontrollerScheich=Hänschgroupelectronician:Anton.Scheich@physik.unimuenchen.de
•
Good,PIpart,extrafasterPpart.Yougetcircuitdiagramandcanmakechanges.
Notveryfast(<1MHz).Cheap~800€.
• TopticaLockbox.SimilartoScheich.Prize?Circuitdiagram?
• NewportLB1005:10MHzfastanalogPIlockbox.Verygood.Price~1700€?
• Vescent: 10MHzfastlockboxwithPI2D,goodcontrols,3500$
• TopticaFALC.Extremelyfastlockbox(45MHz).OneslowPID(fore.g.Laserpiezo)andone
fast(Laserdiodecurrent).Idealforhighbandwidthlocks:Phaselockswithfastfeedbackto
laserdiode.
• TEMNoiseeater:Continouslock(nodither).Goodforlaserpowerstabilisation
• TopticaDigilock:FPGAorDSPbaseddigitallockbox.2slowPID(1MHzfore.g.laserpiezo)
andonefast(21MHz,forLaserdiodecorrent).
• Allvaluesadjustableviacomputer:݂ூ ǡ ݂஽ ,severalfilters,gains,relock,Controlvaluelike
e.g.cavitytransmissiononwhichtoswitchfromdithertolock.Diverseextrafunctions
• InternalPoundDreverhallfunction
• ~4000€.NoPotis!
• TEMLaselockdigital: SimilartoDigilock.~3400€
• NationalInstrumentsCRIO:FPGAbasedlogicwithvariousAnalog/DigitalInandout
perhiphery.Cane.g.realiseupto~16PIlockswithbandwidth~10kHz,16bitD/AA/Doutput.
• Lotsofchannels:digitalFunctionalitysuchassample+hold,logic,freelyprogrammable
• Realivelyslowwhenmanychannels:Notcheapeither:16ch~10‘000€.Digitalnoise.
•
Goodforexampleforpiezostraingaugelocks,uncriticallocks,temperaturecontrol,
El23
interlocks…
analog
Download