<<

Motor Control Edition Beyond Bits Motor Control Edition

Permanent Control High-performance and power-efficient motor control

Introduction Figure 1: Field-Oriented Control Vector Explanation Permanent magnet synchronous

motors (PMSM) are typically used for The “d” axis refers Axis of phase B high-performance and high-efficiency to the “direct” axis of the flux motor drives. High-performance motor The “q” axis is the axis of Rotor position control is characterized by smooth motor along against phase A rotation over the entire speed range which the field (measured by must be developed position sensor) of the motor, full torque control at N

zero speed, and fast acceleration and Rotation Axis of phase A deceleration. To achieve such control, S techniques are used for PM synchronous motors. The vector Stator windings control techniques are usually also referred to as field-oriented control (FOC). The basic idea of the vector maximal, when they are perpendicular How to Simplify Control control algorithm is to decompose to each other. It means that we want of Phase Currents to a stator current into a magnetic to control stator current in such a Achieve Maximum Torque field-generating part and a torque- way that creates a stator vector DC motor control is simple because generating part. Both components perpendicular to rotor . As all controlled quantities are DC values can be controlled separately after the rotor spins we must update the in a steady state and current phase/ decomposition. Then, the structure stator currents to keep the stator flux angle is controlled by a mechanical of the (vector control vector at 90 degrees to rotor magnets . How can we achieve that controller) is almost the same as a at all times. The reactance torque of in PMSM control? separately excited DC motor, which an interior PM type PMSM (IPMSM) simplifies the control of a permanent is as follows, when stator and rotor DC Values/Angle Control magnet synchronous motor. magnetic fields are perpendicular. First, we need to know the rotor Let’s start with some basic Torque= position. The position is typically 32pplPMIqs FOC principles. related to phase A. We can use – Number of pole pairs pp an absolute position sensor (e.g., Torque Generation – Magnetic flux of the permanent lPM resolver) or a relative position sensor A reactance torque of PMSM is magnets (e.g., encoder) and process called generated by an interaction of two – Amplitude of the current in alignment. During the alignment, the Iqs magnetic fields (one on the stator and quadrature axis rotor is aligned with phase A and we one on the rotor). The stator magnetic know that phase A is aligned with As shown in the previous equation, field is represented by the magnetic the direct (flux producing) axis. In reactance torque is proportional to the flux/stator current. The this state, the rotor position is set to amplitude of the q-axis current, when of the rotor is represented by the zero (required in d-axis and magnetic fields are perpendicular. magnetic flux of permanent magnets rotor position is set to zero, static that is constant, except for the field MCUs must regulate the phase stator voltage vector, which causes that rotor weakening operation. We can imagine current magnitude and at the same attracted by stator magnetic field and those two magnetic fields as two bar time in phase/angle, which is not such to align with them [with direct axis]). magnets, as we know a force, which an easy task as DC motor control. tries to attract/repel those magnets, is Beyond Bits Motor Control Edition

1. Three-phase quantities can Figure 2: Basic Principle of Field-Oriented Control transform into equivalent two-phase quantities (stationary reference Measured Current Generated Voltage frame) by Clarke transformation. 2. Then, we transform two-phase

quantities into DC quantities by rotor Phase A α d d α Phase A Three-Phase Stationary Rotating electrical position into DC values Phase B Phase B to β to q q to β SVM Phase C Two-Phase Rotating Stationary Phase C

(rotating reference frame) by Control Process Park transformation. The electrical rotor position is a Electrical rotor Electrical rotor position position mechanical rotor position divided by numbers of magnetic pole pairs pp. 7. Using the space vector modulation, voltage. The calculation of the BEMF After a control process we should the output three-phase voltage observer requires math computation generate three-phase AC is generated as multiply accumulation, division, on motor terminals, so DC values sin/cos, sqrt which is suited for DSCs, of the required/generated voltage A complete FOC speed PMSM control Kinetis ARM core-based MCUs or the should be transformed by inverse structure with Freescale motor control Power Architecture family. Park/Clarke transformations. library functions is shown in the Beyond Bits: Motor Control Edition article titled, Amplitude Control “Industrial/Appliance PMSM Drive.” Field/Flux Weakening All quantities are now DC values, Control which are easy to control, but how do Sensorless Control The operation beyond the machine we control them in magnitude? The rotor position information is base speed requires the PWM inverter For magnitude control we use PI needed to efficiently perform the to provide output voltages higher than controllers in the cascade structure. control of the PMS motor, but a rotor its output capability limited by its DC We can control many state variables position sensor on the shaft decreases link voltage. To overcome the base as phase current (torque loop), speed the robustness and reliability of the speed limitation, a field-weakening or position as with DC motors. overall system in some applications. algorithm can be implemented. A Therefore, the aim is not to use this negative d-axis required current will FOC in Steps mechanical sensor to measure the increase the speed range, but the To perform vector control: position directly but instead to employ applicable torque is reduced because some indirect techniques to estimate of a stator current limit. Manipulating 1. Measure the motor phase currents the rotor position. These estimation the d-axis current into the machine 2. Transform them into the two- techniques differ greatly in approach has the desired effect of weakening phase system (a, b) using Clarke for estimating the position or the type the rotor field, which decreases the transformation of motor to which they can be applied. BEMF voltage, allowing the higher 3. Calculate the rotor position angle stator current to flow into the motor At low speed, special techniques like with the same voltage limit given by 4. Transform stator currents into the high injection or open-loop the DC link voltage. d,q-coordinate system using start-up (not very efficient) are needed Park transformation to spin the motor over the speed Freescale Enablement 5. The stator current torque (isq) and where BEMF is sufficiently high for the Reference designs, application notes flux (isd) producing components BEMF observer. Usually, 5 percent of and software solutions for PMSM are controlled separately by the base speed is enough for proper control applications are available at the controllers operation in sensorless mode. freescale.com/motorcontrol. 6. The output stator voltage space- At medium/high speed, a BEMF vector is transformed back from the observer in d/q reference frame is d,q-coordinate system into the two- used. The PWM frequency and phase system fixed with the stator control loop must be sufficiently by inverse Park transformation high to get a reasonable number of samples of phase current and DC bus Beyond Bits Motor Control Edition

How to Reach Us:

Home Page: Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright license granted freescale.com hereunder to design or fabricate any integrated circuits or integrated circuits based on the information Motor Control in this document. Portfolio Information: Freescale Semiconductor reserves the right to make changes without further notice to any products freescale.com/motorcontrol herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any e-mail: liability arising out of the application or use of any product or circuit, and specifically disclaims any [email protected] and all liability, including without limitation consequential or incidental damages. “Typical” parameters which may be provided in Freescale Semiconductor data sheets and/or specifications can and do USA/Europe or Locations Not Listed: vary in different applications and actual performance may vary over time. All operating parameters, Freescale Semiconductor including “Typicals” must be validated for each customer application by customer’s technical experts. Technical Information Center, CH370 Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. 1300 N. Alma School Road Freescale Semiconductor products are not designed, intended, or authorized for use as components Chandler, Arizona 85224 in systems intended for surgical implant into the body, or other applications intended to support or 1-800-521-6274 sustain life, or for any other application in which the failure of the Freescale Semiconductor product 480-768-2130 could create a situation where personal injury or death may occur. Should Buyer purchase or use [email protected] Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall Europe, Middle East, and Africa: indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney Freescale Halbleiter Deutschland GmbH fees arising out of, directly or indirectly, any claim of personal injury or death associated with such Technical Information Center Schatzbogen 7 unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was 81829 Muenchen, Germany negligent regarding the design or manufacture of the part. +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) [email protected]

Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064, Japan 0120 191014 +81 3 5437 9125 [email protected]

Asia/Pacific: Freescale Semiconductor Hong Kong Ltd. Technical Information Center 2 Dai King Street Tai Po Industrial Estate, Tai Po, N.T., Hong Kong +800 2666 8080 [email protected]

For more information, visit freescale.com/motorcontrol

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. All other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc. Document Number: BBPRMMAGSYNART REV 0