预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

出处:http://www.dcsc.tudelft.nl/~sc4050/transp/refresher.pdfMatlabandSimulinkforModelingandControl1IntroductionWiththehelpoftwoexamples,aDCmotorandamagneticlevitationsystem,theuseofMATLABandSimulinkformodeling,analysisandcontroldesignisdemonstrated.ItisassumedthatthereaderalreadyhasbasicknowledgeofMATLABandSimulink.ThemainfocusisontheuseoftheControlSystemToolboxfunctions.WerecommendthereadertotrythecommandsoutdirectlyinMATLABwhilereadingthistext.Theexampleshavebeenimplementedbytheauthorsandcanbedownloadedfromhttp://lcewww.et.tudelft.nl/.et4092.TheimplementationisdoneinMATLABversion5.3andhasalsobeentestedinversion5.2.2ModelingaDCMotorInthisexamplewewilllearnhowtodevelopalinearmodelforaDCmotor,howtoanalyzethemodelunderMATLAB(polesandzeros,frequencyresponse,time-domainresponse,etc.),howtodesignacontroller,andhowtosimulatetheopen-loopandclosed-loopsystemsunderSIMULINK.2.1PhysicalSystemConsideraDCmotor,whoseelectriccircuitofthearmatureandthefreebodydiagramoftherotorareshowninFigure1.Figure1:SchematicrepresentationoftheconsideredDCmotor.Therotorandtheshaftareassumedtoberigid.Considerthefollowingvaluesforthephysicalparameters:momentofinertiaoftherotorJ=0.01kg_m2damping(friction)ofthemechanicalsystemb=0.1Nms(back-)electromotiveforceconstantK=0.01Nm/AelectricresistanceR=1electricinductanceL=0.5HTheinputisthearmaturevoltageVinVolts(drivenbyavoltagesource).Measuredvariablesaretheangularvelocityoftheshaftωinradianspersecond,andtheshaftangleθinradians.2.2SystemEquationsThemotortorque,T,isrelatedtothearmaturecurrent,i,byaconstantfactorK:Thebackelectromotiveforce(emf),Vb,isrelatedtotheangularvelocityby:FromFigure1wecanwritethefollowingequationsbasedontheNewton’slawcombinedwiththeKirchhoff’slaw:2.3TransferFunctionUsingtheLaplacetransform,equations(3)and(4)canbewrittenas:wheresdenotestheLaplaceoperator.From(6)wecanexpressI(s):andsubstituteitin(5)toobtain:ThisequationfortheDCmotorisshownintheblockdiagraminFigure2.Figure2:AblockdiagramoftheDCmotor.Fromequation(8),thetransferfunctionfrom