Example: biology

Sensored (Encoder-Based) Field Oriented Control of Three ...

AN2757 Sensored (Encoder-Based) Field Oriented Control ofThree-Phase Permanent Magnet Synchronous Motor(PMSM)IntroductionThe Permanent Magnet Synchronous Motor (PMSM) is widely used in various industries due to its highpower density, smaller size, and higher efficiency. For applications which require fast dynamic responsefor speed and torque changes, sophisticated Control techniques, such as Field Oriented Control (FOC)are required. Speed sensor-based FOC is useful for avoiding Control inaccuracies, which may arise insensorless Control due to variation in physical parameters of the motor, which happens because oftemperature variation and aging. However, such applications must have the provision to mount the speedsensor like an incremental encoder. This document describes the implementation of an encoder-basedsensored FOC algorithm for Three -phase PMSM using Microchip Technology s 32-bit MCUs.

power density, smaller size, and higher efficiency. For applications which require fast dynamic response for speed and torque changes, sophisticated control techniques, such as Field Oriented Control (FOC) are required. Speed sensor-based FOC is useful for avoiding control inaccuracies, which may arise in

Tags:

  Applications, Power

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Sensored (Encoder-Based) Field Oriented Control of Three ...

1 AN2757 Sensored (Encoder-Based) Field Oriented Control ofThree-Phase Permanent Magnet Synchronous Motor(PMSM)IntroductionThe Permanent Magnet Synchronous Motor (PMSM) is widely used in various industries due to its highpower density, smaller size, and higher efficiency. For applications which require fast dynamic responsefor speed and torque changes, sophisticated Control techniques, such as Field Oriented Control (FOC)are required. Speed sensor-based FOC is useful for avoiding Control inaccuracies, which may arise insensorless Control due to variation in physical parameters of the motor, which happens because oftemperature variation and aging. However, such applications must have the provision to mount the speedsensor like an incremental encoder. This document describes the implementation of an encoder-basedsensored FOC algorithm for Three -phase PMSM using Microchip Technology s 32-bit MCUs.

2 2018 Microchip Technology Inc. DS00002757A-page 1 Table of Oriented Control of Diagram of Sensored FOC of Chart of Sensored FOC Controller the PID Loops in Park Clarke Vector Pulse Width Modulation (SVPWM).. Decoder of SAME70 Encoder Interface of PIC32MK Start-Up and Pulse and Microchip Web 24 Customer Change Notification 24 Microchip Devices Code Protection 25 AN2757 2018 Microchip Technology Inc. DS00002757A-page 2 Quality Management System Certified by Sales and AN2757 2018 Microchip Technology Inc. DS00002757A-page 31. Field Oriented Control of PMSMF ield Oriented Control (FOC) represents a method by which one of the fluxes (rotor, stator, or air-gap) isconsidered as a reference frame for all other quantities with the purpose of decoupling the torque and fluxproducing components of the stator current.

3 This decoupling assures the ease of Control for complexthree-phase motors in the same manner as DC motors with separate excitation. This means the armaturecurrent is responsible for the torque generation, and the excitation current is responsible for the fluxgeneration. In this document, the rotor flux is considered as a reference air-gap flux for PMSM is smooth and the Back Electromotive Force (BEMF) is sinusoidal. Theproposed Control scheme is developed for surface-mounted permanent magnet synchronous motors. Thesurface mounted motor is shown in the following figure, which has the advantage of low-torque ripple andcheaper when compared with an interior 1-1. Surface Mounted PMSM Transversal SectionThe particularity of the FOC in the Surface Mounted Permanent Magnet type PMSM (SPM) is that the d-axis current reference of the stator, idref (corresponding to the armature reaction flux) is set to zero.

4 Themagnets in the rotor produce the rotor flux linkages, m, unlike AC Induction Motor (ACIM), which needsa positive idref to generate the magnetizing current, thereby producing the rotor flux air-gap flux is the sum of stator and rotor flux linkages. In PMSM, rotor flux linkages are generated bythe permanent magnets and the stator flux linkages (armature reaction flux linkages) are generated bythe stator current. Below the rated speed in FOC, stator flux linkages are not generated, as the 'id' is setto zero and therefore the air-gap flux is solely equal to m. Above the rated speed, the 'id' is set to anegative value, the stator flux linkages oppose m, thereby weakening air-gap can be implemented using a speed sensor or speed sensorless approach. For high precision controlapplications, Sensored Control is preferred. In Sensored FOC implementation, rotor position andmechanical speed are determined using an encoder or resolver.

5 This Application Note describes theencoder-based implementation in this document. AN2757 Field Oriented Control of PMSM 2018 Microchip Technology Inc. DS00002757A-page 42. Block Diagram of Sensored FOC of PMSMThe Control can be summarized as follows: The Three -phase stator currents are measured. For a motor with balanced Three -phase windings,only two currents are sufficient to be measured. The third current can be calculated by the followingequation: + + =0 The Three -phase currents are converted to a stationary two-axis system. This conversion providesthe variables i and i from the measured ia, ib, ic values. The values i , i are time-varyingquadrature current values as viewed from the perspective of the stator. The stationary two-axis coordinate system is rotated to align with the rotor flux using atransformation angle measured at the last iteration of the Control loop.

6 This conversion provides theid, iq variables from i and i . The values id and iq are the quadrature currents transformed to therotating coordinate system. For steady state conditions, id, iq are constant. Reference values of currents are explained below: id reference: controls rotor magnetizing flux iqreference: controls the torque output of the motor The error signals are fed to PI controllers. The output of the controllers provide vd, vq, which arevoltage vectors that will be applied to the motor. A new transformation angle is measured from the encoder pulses input. This new angle guides theFOC algorithm as to where to place the next voltage vector. The vd, vq output values from the PI controllers are rotated back to the stationary reference frameusing the new angle. This calculation provides the next quadrature voltage values v ,v.

7 The v ,v values are used to calculate the new PWM duty cycle values which will generate thedesired voltage vector Mechanical speed ( m) is calculated after every discrete PWM cycleThe FOC software is implemented in the ADC interrupt service routine after the end of the conversion ofdata. It runs at the same rate as the PWM switching Oriented Control of PMSM in the form of a block diagram is shown in the following figure. AN2757 Block Diagram of Sensored FOC of PMSM 2018 Microchip Technology Inc. DS00002757A-page 5 Figure 2-1. Block Diagram of Sensored FOC of PMSM rotatethispage90 AN2757 Block Diagram of Sensored FOC of PMSM 2018 Microchip Technology Inc. DS00002757A-page 63. Flow Chart of Sensored FOC ImplementationStart of ADC interrupt service routineClarke Transform to obtain i ,i from ia,ib,icPark Transform to obtain id ,iq from i ,i Calculate PI controllers output to obtain Vd,VqInverse park transform to obtain V ,V from Vd,VqMeasure electrical position ( e )Space Vector Modulation to obtain PWM duty cyclesEnd of ADC interrupt service routineCalculate mechanical speed ( m) and Iqref after every discrete (x) PWM cycles AN2757 Flow Chart of Sensored FOC Implementation 2018 Microchip Technology Inc.

8 DS00002757A-page 74. PID PID Controller BackgroundA complete discussion of Proportional Integral Derivative (PID) controllers is beyond the scope of thisdocument. However, this section provides some basics of PID PID controller responds to an error signal in a closed Control loop, and attempts to adjust the controlledquantity to achieve the desired system response. The controlled parameter can be any measurablesystem quantity, such as speed or flux. The benefit of the PID controller is that it can be adjustedempirically by varying one or more gain values and observing the change in the system digital PID controller is executed at a periodic sampling interval. It is assumed that the controller isexecuted frequently, hence the system can be controlled. The error signal is formed by subtracting thedesired setting of the parameter to be controlled from the actual measured value of that parameter.

9 Thesign of the error indicates the direction of change required by the Control Proportional (P) term of the controller is formed by multiplying the error signal by a 'P' gain, causingthe PID controller to produce a Control response, which is a function of the error magnitude. As the errorsignal becomes larger, the 'P' term of the controller becomes larger to provide more effect of the 'P' term tends to reduce the overall error as time elapses. However, the effect of the 'P'term diminishes as the error approaches zero. In most systems, the error of the controlled parameter getsvery close to zero but does not converge. The result is a small remaining steady state Integral (I) term of the controller is used to eliminate small steady state errors. The 'I' term calculatesa continuous running total of the error signal. Therefore, a small steady state error accumulates into alarge error value over time.

10 This accumulated error signal is multiplied by an 'I' gain factor and becomesthe 'I' output term of the PID Differential (D) term of the PID controller is used to enhance the speed of the controller and respondsto the rate of change of the error signal. The 'D' term input is calculated by subtracting the present errorvalue from a prior value. This delta error value is multiplied by a 'D' gain factor that becomes the 'D'output term of the PID 'D' term of the controller produces more Control output as the system error changes rapidly. Not allcontrollers will implement the 'D' or less commonly, the 'I' term. For example, this application does not usethe 'D' term as it could amplify the noise, which in turn can cause excessive changes in the PWM dutycycle affecting the operation of the algorithms and produce over current Adjusting the PID GainsThe 'P' gain of a PID controller sets the overall system response.


Related search queries