Motor Control Application Rev.1.02 Oct 31

Motor Control Application Rev.1.02 Oct 31

APPLICATION NOTE R01AN3789EJ0102 Motor Control Application Rev.1.02 Oct 31. 2018 Vector Control for Permanent Magnet Synchronous Motor with Encoder (Algorithm) Summary This application note explains the position and speed control algorithm, using vector control method, for permanent magnet synchronous motors (PMSM) with encoder. The software implementation of the algorithm is for Renesas Electronics Corporation’s microcontroller. Contents 1. Overview .......................................................................................................................................... 2 2. PMSM Fundamental Equation ........................................................................................................ 2 3. Control System Design ................................................................................................................... 5 4. Control Module of Position and Speed Control ......................................................................... 11 R01AN3789EJ0102 Rev.1.02 Page 1 of 21 Oct 31. 2018 Motor Control Application Vector Control for Permanent Magnet Synchronous Motor with Encoder (Algorithm) 1. Overview This application note explains the position and speed control algorithm, using vector control method, for permanent magnet synchronous motors (PMSM) with encoder. The software implementation of the algorithm is for Renesas Electronics Corporation’s microcontroller. 2. PMSM Fundamental Equation 2.1 PMSM model in Three-Phase (U, V, W) Coordinate Voltage equation of the permanent magnet synchronous motor (Figure 2-1) having the sinusoidal magnetic flux distribution, can be expressed as follows. U axis iU Ra LU MWU θ MUV N S LV iW Ra LW Ra MVW V axis W axis iV Figure 2-1 Conceptual Diagram of Three-phase Permanent Magnet Synchronous Motor 푣푢 푢 휙푢 [푣푣 ] = 푅푎 [푣 ] + 푝 [휙푣 ] 푣푤 푤 휙푤 휙푢 퐿푢 푀푢푣 푀푤푢 푢 푐표푠휃 [휙푣 ] = [푀푢푣 퐿푣 푀푣푤 ] [푣 ] + 휓 [cos⁡(휃 − 2휋/3)] 휙푤 푀푤푢 푀푣푤 퐿푤 푤 cos⁡(휃 + 2휋/3) 푣푢, 푣푣, 푣푤:Stator phase voltage 퐿푢, 퐿푣, 퐿푤:Stator phase self-inductance 푢, 푣, 푤:Stator phase current 푀푢푣, 푀푣푤, 푀푤푢:Mutual inductance 휙푢, 휙푣, 휙푤:Stator phase interlinkage flux 휓:Maximum flux linkage due to permanent magnet 푅푎:Stator phase resistance 휃:Rotor electrical angle from Phase U 푝:Differential operator R01AN3789EJ0102 Rev.1.02 Page 2 of 21 Oct 31. 2018 Motor Control Application Vector Control for Permanent Magnet Synchronous Motor with Encoder (Algorithm) 2.2 PMSM Model in Direct-Quadrature (d, q) Coordinate Vector control is a method to control the motor in the two-phase (d, q) coordinate system, instead of three-phase (u, v, w) coordinate system. The d-axis is set in the direction of the magnetic flux (N pole) of the permanent magnet and the q-axis is set in the direction which progresses by 90 degrees (electrical) in the forward direction of the angle θ from the d-axis. d axis Ra id Ld Lq Ra N q axis S iq Figure 2-2 Conceptual Diagram of the Two-phase Direct Current Motor The coordinate transformation is performed by the following transformation matrix. 2 푐표푠휃 cos⁡(휃 − 2휋/3) cos⁡(휃 + 2휋/3) 퐶 = √ [ ] 3 −푠푛휃 −sin⁡(휃 − 2휋/3) −sin⁡(휃 + 2휋/3) 푣푢 푣푑 [ ] = 퐶 [푣푣 ] 푣푞 푣푤 The voltage equation in the two-phase (d, q) coordinate system is obtained as following. 푣푑 푅푎 + 푝퐿푑 −휔퐿푞 0 [ ] = [ ] [ 푑] + [ ] 푣푞 휔퐿푑 푅푎 + 푝퐿푞 푞 휔휓푎 푣푑, 푣푞:d-axis and q-axis voltage 퐿푑, 퐿푞:d-axis and q-axis inductance , :d-axis and q-axis current 3(퐿 − 퐿 ) 3(퐿 + 퐿 ) 푑 푞 퐿 = 푙 + 푎 푎푠 , 퐿 = 푙 + 푎 푎푠 푑 푎 2 푞 푎 2 푅푎:Stator phase resistance 휓a:Flux linkage due to permanent magnet ω:Angular Speed 3 휓 = √ 휓 a 2 R01AN3789EJ0102 Rev.1.02 Page 3 of 21 Oct 31. 2018 Motor Control Application Vector Control for Permanent Magnet Synchronous Motor with Encoder (Algorithm) Based on this, it can be considered that alternate current flowing in the stationary three-phase stator is equivalent to direct current flowing in the two-phase stator rotating synchronously with the permanent magnet operating as a rotor. The torque generated can be written in the form of exterior product of the electric current vector and armature inter- linkage magnetic flux, as given bellow. The first term on the right side of this formula is called magnet torque and the second term on the right side of this formula is the reluctance torque. 푇 = 푃푛{휓푎푞 + (퐿푑 − 퐿푞)푑푞} T:Motor torque 푃푛:Number of pole pairs The PMSM which has no difference between the d-axis and q-axis inductances is defined as non-salient PMSM. In this case, as the reluctance torque is 0, the total torque is proportional to the q-axis current. Due to this, the q-axis current is called torque current. In two phase (d, q) coordinate system the d-axis flux is sum of permanent magnet flux and flux generated by d-axis current. Since the equivalent rotating stator flux (in three-phase (u, v, w) coordinate system) is controlled by d-axis current, the d-axis current is called as excitation current. R01AN3789EJ0102 Rev.1.02 Page 4 of 21 Oct 31. 2018 Motor Control Application Vector Control for Permanent Magnet Synchronous Motor with Encoder (Algorithm) 3. Control System Design 3.1 Vector Control System and The Controller The block diagram of position control system, using vector control method is shown in Figure3-1. Speed FF + v * v ω** i *=0 d dq u d Current v + - v PWM M θ* Position Speed iq* PI + v * v q UVW w P ω* PI + vq** vd** θ Sensor θ ω i i q d decoupling control ω θ i i i d d dq u i i iw q q UVW Speed detection Figure 3-1 Vector Control System Block (Position Control) As shown in Figure 3-1, this system consists of the position control system, the speed control system and the current control system. Speed and current control system use general PI controller. Position control system use P controller and speed feed-forward controller. These controller gains of each system must be designed properly to realize required control characteristics. ∗∗ ∗∗ In decoupling control block,⁡푣푑 , 푣푞 (as the following equations) are calculated and then added to voltage command value. This realizes the high response of speed control system and enables to control the d-axis and q-axis independently. ∗∗ 푣푑 = −휔퐿푞푞 ∗∗ 푣푞 = 휔(퐿푑푑 + 휓푎) R01AN3789EJ0102 Rev.1.02 Page 5 of 21 Oct 31. 2018 Motor Control Application Vector Control for Permanent Magnet Synchronous Motor with Encoder (Algorithm) 3.2 Current Control System 3.2.1 Design of Current Control System The current control system is modeled by using the electrical characteristics of the motor. The stator coil can be represented by a resistance R and an inductance L. So the stator model of the motor is expressed by the transfer function 1 of the typical RL series circuit⁡ . 푅+퐿푠 The current control system model can be represented by a feedback control system using PI control. (Figure 3-2) Δi v i Output Input Ki 1 + Current Current Kp + - s R + Ls Y(s) X(s) Controller Stator Model 푅: Resistance of stator coils[Ω] 퐿: Inductance of stator coils[H] 퐾푝: Proportional gain of the current PI control 퐾: Integral gain of the current PI control Figure 3-2 Current Control System Model Based on this model, PI gains of the current control system are designed as the following method. First, the closed-loop transfer function of this system is obtained as follows. 퐾 푠 푎 1 + 푌(푠) 퐾 ( 푎) 퐺(푠) = = 푏 1 퐾 퐾 푋(푠) 푠2 + (1 + 푎)푠 + 푎 퐾푏 푎 퐾푏 퐾푝푎 퐿 퐾 = 퐾 푎,⁡⁡⁡⁡⁡퐾 = ,⁡⁡⁡⁡⁡⁡⁡퐾 = 푝 푎 푅 푏 푅 The general equation of second-order lag system with zero point can be expressed as follows. 2 휔푛 푠 2 2 (1 + ) 푠 + 2휁ω푛푠 + 휔푛 휔푧 R01AN3789EJ0102 Rev.1.02 Page 6 of 21 Oct 31. 2018 Motor Control Application Vector Control for Permanent Magnet Synchronous Motor with Encoder (Algorithm) By comparing coefficients of two equations above, the following equations are obtained. 푠 퐾 푠 휔2 1 + 푎 (1 + ) 푛 ( 휔 ) 퐾 푎 푧 ⇔ 푏 2 2 1 퐾 퐾 푠 + 2휁ω푛푠 + 휔푛 푠2 + (1 + 푎)푠 + 푎 퐾푏 푎 퐾푏 2 퐾푎 1 퐾푎 휔푛 = , 2휁ω푛 = (1 + ) , 휔푧 = 푎 퐾푏 퐾푏 푎 From above equations, natural frequency⁡ω푛, damping ratio⁡휁, zero-point frequency ω푧 are written as follows. 2 퐾푎 1 퐾푎 휔푛퐿 ω푛 = √ , 휁 = (1 + ), 휔푧 = 푎 = 퐾푏 퐾푎 푎 2휁ω푛퐿 − 푅 2퐾푏√ 퐾푏 Current PI control gains (퐾푝_푐푢푟푟푒푛푡, 퐾_푐푢푟푟푒푛푡) are written as the following equations. 2 퐾푝_푐푢푟푟푒푛푡 = 2ζ퐶퐺ω퐶퐺퐿 − 푅, 퐾_푐푢푟푟푒푛푡 = 퐾푝_푐푢푟푟푒푛푡푎 = 휔퐶퐺퐿 ω퐶퐺: Desired natural frequency of current control system ζ퐶퐺: Desired damping ratio of current control system Therefore, PI control gains of the current control system can be designed by ω퐶퐺 and⁡ζ퐶퐺. R01AN3789EJ0102 Rev.1.02 Page 7 of 21 Oct 31. 2018 Motor Control Application Vector Control for Permanent Magnet Synchronous Motor with Encoder (Algorithm) 3.3 Speed Control System 3.3.1 Design of Speed control system The speed control system is modeled by using the mechanical characteristics of the motor. The mechanical system torque equation is written as follows. 푇 = 퐽휔̇ 푚푒푐ℎ 퐽 : Inertia of rotor, 휔푚푒푐ℎ:Speed(Mechanical) In consideration of only magnet torque, the electrical system torque equation is written as follows. 푇 = 푃푛휓푎푞 By using the mechanical and electrical torque equation, the speed (mechanical) is written as follows. 푃푛휓 휔 = 푎 푚푒푐ℎ 푠퐽 푞 The speed in the sample software is treated as the electrical speed. Thereby, the number of pole pairs 푃푛 is multiplied to both sides of this equation. 푃 2휓 휔 = 푛 푎 푒푙푒푐 푠퐽 푞 휔푒푙푒푐: Speed(Electrical) The speed control system model can be represented by a feedback control system using PI control. (Figure 3-3) Δω iq ω 2 Output Input Ki Pnψa + Speed Speed Kp + - s Js Y(s) X(s) Controller Plant model Figure 3-3 Speed Control System Model R01AN3789EJ0102 Rev.1.02 Page 8 of 21 Oct 31.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    24 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us