TechniquesofAutomation&Applications|57ElectricalDrivesMATLABSimulationofthePMSMVectorControlSystemBasedonMATLABLIJi-tang,LIUFeng-chunAbstract:Basedonthemathematicalmodelofthepermanent-magnetsynchronous-motor(PMSM),asimulationmodelofPMSMisestablishedwithmatlab6.5/simulink.Themoduleofspeedcontroller,thecoordi-natetransformmodule,andtheSPWMmodulearegiven.ThePMSMmoduleandthevoltageinvertermoduleareprovidedbymatlab6.5/simlink.Thevalidityhasbeentestifiedbythesimulationresults.KeyWord:PMSM;vectorcontrol;simulation;modeling;closed-loop()xxLq()xxMq58|TechniquesofAutomation&ApplicationsUU13U1112VV212223V32313300sin()00sin(2/3)00sin(4/3)SSrrS⎡⎤⎡⎡⎤⎤⎡⎤⎡⎤⎡⎤⎢⎥⎢⎢⎥⎥⎢⎥⎢⎥⎢⎥=+--⎢⎥⎢⎢⎥⎥⎢⎥⎢⎥⎢⎥⎢⎥⎢⎢⎥⎥⎢⎥⎢⎥⎢⎥-⎦⎣⎦⎣⎣⎦⎣⎣⎦⎦⎣⎦rw1122331LLLL===121321212331321UVW0MMMMMMMMIII=======++=UUVV00sin()00sin(2/3)00sin(4/3)SSrrSWWURPLIURPLIRPLUIqwyqpqp+⋅⎡⎤⎡⎡⎤⎤⎡⎤⎢⎥⎢⎢⎥⎥⎢⎥=+⋅--⎢⎥⎢⎢⎥⎥⎢⎥⎢⎥⎢⎢⎥⎥⎢⎥+⋅-⎦⎣⎦⎣⎦⎣⎣⎦000dddrqqqILLIyyy⎡⎤⎡⎤⎤⎡⎡⎤=+⎢⎥⎢⎥⎥⎢⎢⎥⎣⎦⎣⎦⎣⎦⎣⎦00dddSrqqqSrVIRPVIRPywyw⎡⎤⎡⎤⎡⎤-⎡⎤⎡⎤=+⎢⎥⎢⎥⎢⎥⎢⎥⎢⎥⎣⎦⎦⎣⎣⎦⎣⎦⎣⎦3()2edqqdpTIIyy=-3322erqeqppTIkIy==ddSddqqdIVRILpLidtw=+-()qqSqqddedIVRILpLIkdtw=+-+32eeqpTkI=LedTTBJdtww=++ElectricalDrivesMATLABPMSMPMSMPMSMMATLABTechniquesofAutomation&Applications|59ElectricalDrivesiPWMiPWM96|TechniquesofAutomation&ApplicationsTechnicalCommunications