200 likes | 719 Views
Simulink/ Modelsim Co-Simulation of FPGA -based PI Speed Control for PMSM Drive. Student: Pham Van Dung ID: MA02B205. Electrical engineering department Southern Taiwan university of technology. CONTENT. Abstract Introduction
E N D
Simulink/Modelsim Co-Simulation of FPGA-based PI Speed Control for PMSM Drive Student: Pham Van Dung ID: MA02B205 Electrical engineering department Southern Taiwan university of technology
CONTENT • Abstract • Introduction • System Description of PMSM Drive and PI Speed Controller Design • Simulink/Modelsim Co-Simulation of PMSMDrive • Conclusion • References
Abstract • The basic principle of (SVPWM) and the design of a PI-control based speed control IC for PMSM from Simulink/Modelsimcosimulationis presented • Firstly, a SVPWM algorithm, vector control method and PI controller are derived and applied in the speed control IC of PMSMdrive • Secondly, Verilog that is Hardware Description Language is adopted to describe the behavior of the aforementioned control algorithms. • Finally, Simulations and the results will be discussed.
Introduction • PMSM • FPGA • Electronic Design Automation (EDA) Simulator Link • Aco-simulation by EDA Simulator Link is applied to PI-control based speed control IC for PMSM drive. • The Simulink/Modelsim co-simulation architecture is shown in Fig.1 • The PMSM, inverter and speed command are performed in Simulink and the proposed speed control IC described by Verilog code is executed in ModelSim
System Description of PMSM Drive and PI Speed Controller Design • -The Mathematical Model of PMSM • -Design of Current controller and Coordinate Transformation (CCCT) • -Design of PI controller
The Mathematical Model of PMSM • where vd, vq are the d and q axis voltages; id, iq, are the d and q axis currents, rsis the phase winding resistance; Ld, Lqare the d and q axis inductance; is the rotating speed of magnet flux; is the permanent magnet flux linkage.
Design of Current controller and Coordinate Transformation (CCCT)
which uses one adder, one multiplier, an 1-b left shifter, a sin/cos look-up-table and manipulates 24 steps machine to carry out the overall computation of CCCT
Design of PI controller • where Kp is proportional coefficient, Ki is integral coefficient, Yn(n) is the output control volume in the n-sampling time, e(n) is the input deviation in the n-sampling time, e(n-l) is the input deviation in the (n-l )-sampling time.
The designed PI controller circuit adopted by using the FSM method is proposed and shown in this figure which uses one adder, one multiplier, and manipulates 10 steps
Simulation results • Simulation results of SVPWMwaveform(STEP1)
Fig. 12 Simulation results of step speed respond, two-axis current respond and three phase current response
Conclusion • This study has been successfully presented a speed control IC for PMSM drive and demonstrated its performance from Simulink/ModelSim co-simulation .Via this design methodology, the Verilog code of the speed control IC can be fast developed, and the risk in experimental development can be greatly reduced.
References • 1.Kung, Y.S., Tsai, M.H.: FPGA-based speed control IC for PMSM drive with adaptive fuzzy control. In: IEEE Trans. on Power Electronics, vol. 22, no. 6, pp. 2476--2486 (2007) • 2.Modeltech, ModelSim Reference Manual (2004) • 3.BogdanAlecsa, Marcian N. Cirstea: Simulink Modeling and Design of an Efficient Hardware-Constrained FPGA-Based PMSM Speed Controller. In: IEEE Trans. Ind. Informatics, vol. 8, no.3, August 2012 • 4.M. F. Castoldi, G. R. C. Dias, M. L. Aguiar and V. O. Roda. Chopper-Controlled PMDC motor drive using VERILOG code. Proceedings of the 5th Southern Conference on Programmable Logic, (2009), pp. 209~212 • 5.WeeraKaewjinda and MongkolKonghirun. Vector Control Drive of Permanent Magnet Synchronous Motor Using Resolver Sensor.In: ECTI Transactions on Electrical Eng., Electronics, and communications Vol.5 ,NO.1 February 2007 • 6.Li, Y., Huo, J., Li, X., Wen, J., Wang, Y., Shan, B.: An open-loop sin microstepping driver based on FPGA and the Co-simulation of Modelsim and Simulink In: Proceedings of the International Conference on Computer, Mechatronics, Control and Electronic Engineering (CMCE), pp. 223--227 (2010) • 7.TheMathworks, Matlab/Simulink Users Guide, Application Program Interface Guide (2004) • 8.Implementinga PID Controller in a MicrosemiFPGA User guider • 9.Y.S. Kung, C.S. Chen, K.I. Wong, M.H. Tsai. Development of a FPGA-based control IC for PMSM drive with adaptive fuzzy control. Proceedings of the Industrial Electronics Society, IECON2005, 31st Annual Conference of IEEE (2005).pp 1544 – 1549 • 10.Li, Y., Huo, J., Li, X., Wen, J., Wang, Y., Shan, B.: An open-loop sin microstepping driver based on FPGA and the Co-simulation of Modelsim and Simulink In: Proceedings of the International Conference on Computer, Mechatronics, Control and Electronic Engineering (CMCE), pp. 223--227 (2010)