BeyondBitsIssue 8 MOTOR CONTROL EDITION
Motor Control
Introducing Motor Control Motor control and motor drive solutions
With a rich history of innovation in motor control, Freescale is dedicated to continue our commitment to understand and solve the current roadblocks developers face with a comprehensive portfolio of solutions.
The latest edition of Beyond Bits captures the attention of both novice and advanced motor control developers looking to:
• Reduce development time by jump starting their effort with reference designs, application notes and a global support team
• Increase power efficiency by using the most advanced control techniques available through differentiated hardware platforms and peripherals, motor control libraries, and unique tools to optimize these systems
• Decrease system costs via a best-in-class portfolio of high-performance, low-power MCUs capable of very flexible, innovative control implementations
• Comply with safety and energy mandates via complimentary libraries and advanced algorithms
Beyond Bits provides a brief glimpse into the breadth and scope of the Freescale motor control portfolio, much of it unique and built over decades of research and development. We discuss the advantages of different motor types and the methods of control, followed by a portfolio overview and a helpful selection guide. Next, we provide application examples and techniques we’ve implemented using our solutions, and we close with our software and development tools offerings. Solutions such as reference designs, application notes, software, tools and MCU families are listed at the end of each article to help you get started right away on your next design.
Freescale continues to partner with innovators to make motors quieter, more efficient, smaller and to reduce mechanical vibration, and hopefully we can help you make them even smarter.
To refine your motor skills, visit freescale.com/motorcontrol or contact your local Freescale field applications engineer.
Regards,
Geoff Lees Vice President and General Manager, Industrial and Multi-Market Microcontroller Business Freescale Semiconductor
freescale.com/motorcontrol 1 Introduction 4 Motor Types and Their Control 7 An Introduction to Freescale MCUs 8 Control Wizard in the Freescale Solution Advisor Market Trends 10 BLDC Motor Control 13 Permanent Magnet Synchronous Motor Control 15 AC Induction Motor Control 17 Switched Reluctance Motors 19 Encoder Signal Processing 21 Three-Phase Current Measurement Application Examples 25 Select Freescale Solutions for Your Application 27 Motor Applications for Small Appliances 29 Digital Control of Switched Reluctance Motor Drives 31 Industrial/Appliance Consumer Ceiling Fan 34 Household Washing Machines 36 Dual Motor Control for Air Conditioning with 100 MHz/32-bit DSC 38 Industrial/Appliance PMSM Drive 40 Industrial Drives 43 Digital AC Drive Control 45 Servo Robots for Industrial Applications: PMSM with Encoder 47 Continuous Positive Airway Pressure (CPAP) Machine 49 BLDC Motor Control for Respirators 51 Motor Control Using MQX RTOS Enablement 53 Freescale Motor Control Boards 55 Freescale Embedded Software Libraries 56 Motor Control Development Toolbox 59 Motor Application Tuning Wizard 60 FreeMASTER Summary
Table of Contents Table of Contents Introduction Introduction
Motor Types and Their Control Summary of key motor types and control
Overview Motor types that most effectively sensor wiring, sensor power supply Freescale provides comprehensive meet these requirements include AC and increases reliability. Still, there motor control solutions for almost all induction motors (ACIM), permanent are applications where higher cost of electric motor topologies. magnet synchronous motors (PMSM), sensors is not as important as higher brushless DC motors (BLDC) and position resolution. The most common Motor Control Application switched reluctance motors (SR). speed/position sensors are: Requirements The following pages will cover their • Tachogenerators • Minimize energy losses main characteristics, types of control, • Hall sensors • Prevent environment pollution advantages and typical applications. • Encoders • Decrease acoustic noise and Digital Motor Control power harmonics • Resolvers Digital control allows more efficient • Increase system performance- Applications requiring the motor to motor control with variable speed and versus-cost ratio operate with a required speed (pumps, sensorless control. The term sensorless fans, compressors, etc.) are speed • Increase productivity, flexibility control means that there is no position/ controlled. In variable frequency drives, and robustness velocity sensor on the motor shaft, so motor speed is typically proportional • Increase safety and reliability the rotor position/velocity is calculated to frequency. The actual motor speed • Reduce system size and weight from measured current and voltage. is maintained by a speed controller • Growth of digital control and The sensorless control provides a to reference speed command. reducing usage of analog cost-effective and reliable solution that Speed control offers low dynamic components and total system cost eliminates the position/velocity sensor, performance. For high dynamic and
Figure 1: Electric Motor Type Classification
Electric Motors
AC DC
Asynchronous Synchronous Variable Reluctance
Induction Sinusoidal Brushless Reluctance SR Stepper
Permanent Magnet
Surface PM
Interior PM
Wound Field
4 Beyond Bits Motor Control Edition
stability performance, speed control This requires additional connections Permanent Magnet with inner current loop (cascade to the motor, which may not be Synchronous Motor control) is required. The majority of acceptable in some applications. variable speed drives are controlled by Also, the additional cost of the cascade control. Most complex drives position sensors and the wiring (servos, industrial robots, linear motors) may be unacceptable. The physical require additional position control. connection problem could be solved Applications requiring the motor by incorporating the driver in the motor to operate with a specified torque body, however, a significant number regardless of speed (hand tools, electric of applications do require a sensorless power steering, traction, vehicles, etc.) solution due to their low-cost nature. employ torque control. Most BLDC sensorless techniques Brushless DC Motor are based upon extracting position information from the back EMF voltage of the stator windings while the motor is spinning. Those techniques could be Similar to BLDC motors, PMSMs used from 5 percent of nominal speed, have a three-phase stator and a when back EMF is measurable. BLDC rotor with surface/interior-mounted back EMF sensorless techniques permanent magnets. can be used without complex control A PMSM provides rotation at a fixed algorithms, due to back EMF voltage speed in synchronization with the sensing in unexcited motor phase. frequency of the power source. PMSMs Advantages are therefore ideal for high-accuracy • Heat generated in stator is easy fixed-speed drives. Boasting very high- to remove power density, very high efficiency and high response, the motor is suitable for • High torque per frame size BLDC motors have a three-phase most sophisticated applications in the • Reliability due to absence of brushes stator winding and a rotor with industrial segment. It also has a high and commutator surface-mounted permanent magnets. overload capability. A PMSM is largely A BLDC motor does not have a • Highest efficiency maintenance free, which ensures the commutator and is more reliable than • Good high-speed performance most efficient operation. a DC motor. The digital control and • Precise speed monitoring and Synchronous motors operate at power electronics replace the function regulation possible an improved power factor, thereby of the commutator and energize the improving the overall system power proper winding. They are used in home Drawbacks factor and eliminating or reducing utility appliances (such as refrigerators, • Rotor position sensing required for power factor penalties. An improved washing machines and dishwashers), commutation power factor also reduces the system’s pumps, fans and other devices that • Torque ripple voltage drop and the voltage drop at require high reliability and efficiency. • Position sensor or sensorless the motor terminals. In the BLDC motor, the rotor position technique is required for motor Advantages must be known to energize the phase operation • Heat generated in stator is easy pair and control the phase voltage. • Difficult to startup the motor for to remove variable load using sensorless If sensors are used to detect rotor • High torque per frame size position, then sensed information must technique • Reliability due to absence of brushes be transferred to a control unit. and commutator • Highest efficiency • Synchronous operation makes field orientation easy freescale.com/motorcontrol 5 Introduction
• Good high-speed performance Advantages tries to minimize the reluctance (air gap • Precise speed monitoring and • Low cost per horsepower distance) of the magnetic circuit. The regulation possible (no permanent magnets) magnetic field creates a force on the rotor so that its poles line up with the • Smooth torque • Inherent AC operation (direct connection to AC line) poles of stator phase. Drawbacks • Very low maintenance (no brushes) • Rotor position sensing required Advantages and rugged construction • Low cost resulting from simple • Position sensor or sensorless • Available in wide range of construction technique is required for power ratings motor operation • High reliability • Low-cost speed control • Difficult to startup the motor using • High fault tolerance with tachogenerator sensorless technique • Heat generated in stator is easy • Simple control (volt per hertz + PFC to remove AC Induction Motor can handle 8-bit MCU) • High-speed operation possible Drawbacks Drawbacks • Inefficient at light loads • Acoustically noisy • Rotor temperature change • High vibration complicates sensorless control • Magnetic non-linearities make • Speed control requires varying smooth torque control difficult stator frequency • Dependent on electronic control • Position control difficult (field for operation orientation required) For more information about Freescale Switched motor control solutions, visit Reluctance Motor freescale.com/motorcontrol.
ACIM is the most popular motor for industrial and consumer applications. This is due to many factors such as the lack of commutator/brushes (high reliability), high efficiency at high loads and the ability to connect directly to the AC line. ACIMs have a classic three-phase stator and commonly have a “squirrel cage” rotor in which the conductors are shorted together at both ends. The operation principle of ACIM is very similar to a SR motors do not contain magnets transformer. A rotor current is induced and are constructed such that both in the rotor circuit from the stator the stator and rotor have salient poles. windings. This current produces rotor The motor is driven by a sequence of flux, which interacts with the stator current pulses applied at each phase, electromagnets to produce torque. which requires control electronics for operation. The SR motor works on the principle that the magnetic circuit
6 Beyond Bits Motor Control Edition
An Introduction to Freescale MCUs For motor control
Freescale is a leading supplier of DSC solutions can tailor almost any Our Commitment to embedded controllers with a strong motor control application. Long-Term Supply legacy of offering solutions for motor Freescale is committed to ensuring control applications. Our broad Kinetis MCUs our products are available for our portfolio of MCUs spans across 8-, Based on the 32-bit customers through the entire lifetime 16- and 32-bit platforms, featuring ARM® Cortex™-M Core of their systems. To that extent, low-power, analog, control and 32-bit Kinetis MCUs represent the most Freescale commits to a minimum communications hardware. scalable portfolio of ARM Cortex-M product cycle of 10, and in some core-based MCUs in the industry. cases, 15 years for our MCUs Freescale 8-bit HC(R)S08 There are more than 300 MCUs in targeting the industrial, automotive and MCU portfolio the portfolio spanning the entry-level medical markets. For product longevity Kinetis L MCUs based on the ARM Our portfolio of 8-bit MCUs provides terms and conditions, and to obtain a Cortex™-M0+ core and Kinetis K series a wide range of highly functional list of available products, visit MCUs based on the ARM Cortex™-M4 solutions for low- to mid-range freescale.com/productlongevity. industrial and automotive motor core with IP compatibility across the control applications. From tiny RS08 range as well as pin compatibility devices to highly functional S08 across parts offered within the same controllers combining timers and portfolio. Enabled by innovative 90 nm analog integration along with a range thin film storage (TFS) flash technology of connectivity and HMI peripherals, with unique FlexMemory (configurable 8-bit MCUs are an ideal solution for embedded EEPROM), Kinetis MCUs simple, cost-sensitive motor control feature the latest low-power innovations applications. Within the S08 family and high-performance, high-precision there is a wide range of 5-volt options mixed-signal capability. Kinetis MCUs are supported by market-leading that offer more durability and reliability enablement from Freescale and our in harsh industrial environments, ecosystem partners. The Kinetis line is meeting appliance safety standard suitable for a wide range of low- to mid- IEC60730. Our 5-volt S08 families offer range motor control applications. exceptional EFT/ESD performance.
16- and 32-bit DSCs It’s More Than Just Silicon Freescale is dedicated to providing Freescale DSCs combine DSP semiconductor solutions that build value speed with MCU control for the ideal into your products. When you purchase industrial motion control solution. from us, you’re buying more than These flexible 16- and 32-bit devices just an embedded processor. You’re are particularly well suited for electric getting access to a broad ecosystem of motor control with timers and analog technical support services, development peripherals specifically designed to tools and training—all designed to make meet the requirements of the most your job easier and your end products demanding motor control application. better. In this brochure, you will learn With a range of solutions from cost- more about the resources we are effective options in small flash and providing beyond our MCUs that you package combinations to highly can harness through your design effort. integrated and optimized options, our
freescale.com/motorcontrol 7 Introduction
Control Wizard in the Freescale Solution Advisor
Not sure where to start? The Figure 1: Find Best-Fit Motor Control Process Solutions Freescale Solution Advisor is a web- based tool that helps identify best-fit processors and tools for any type of design. The tool can check pin muxing, identify supporting Tower System modules, link related reference platforms, software and application notes, and then save the details in one place to share with your team. The Solution Advisor is so powerful that we like to call it our “virtual FAE” who never sleeps. To recommend best options for your motor control application, the embedded Motor Control Wizard • Which control algorithm? After the Motor Control Wizard works begins by asking six simple, multiple- its magic, you can further refine choice questions: BLDC trapezoidal commutation control, scalar control (V/Hz), or the recommended processors by • What is your application? sinusoidal vector control (field- identifying specific requirements, such as the number and type of analog-to- Large appliance, small appliance, oriented control) digital (ADC) interfaces, timers, pulse power tool, portable electronics, • Which sensor type? width modulators (PWM) and the computing, data storage Open loop, hall sensor, encoder, support for tools such as Freescale equipment, robotics, HVAC, tacho generator, sensorless, etc. FreeMASTER and the Mathworks heavy industrial MATLAB™/Simulink™. The Solution The Motor Control Wizard knows • What is your function? Advisor can then recommend which specialized peripherals and appropriate Tower System modules, Compressor, pump, fan, rotator, performance are needed for hundreds link related reference platforms and actuator or servo, dual motor of requirement combinations, and how application notes, and save sessions control, inverter they map to the available Freescale for later. No matter when you need solutions. For example: • What motor type are you using? assistance, the Freescale Solution AC induction motor (ACIM), • For small motors and appliances, Advisor is ready to help. brushless DC motor (BLDC), use 8-bit S08 or Kinetis L series For more information, visit permanent magnet synchronous controllers freescale.com/solutionadvisor. motor (PMSM), etc. • For cost-optimized high-performance motors requiring 20 microsecond • Select all the features you’d like control loops, use DSCs from the list below. • For high-performance motors with Quiet motor operation, high- high reliability and IEC61508 safety speed motor (> 10K RPM), requirements, use Qorivva MCUs precise speed, precise torque control, heavy lifting or high torque, etc.
8 Market Trends Market Trends
BLDC Motor Control Trapezoidal back EMF BLDC motor control techniques
Three-Phase BLDC Motor Figure 1: Six-Step Commutation The brushless DC (BLDC) Voltage motor is also referred to as an +UDCB electronically commutated motor. Phase A There are no brushes on the rotor, -U and commutation is performed DCB +UDCB electronically at certain rotor positions. The stator magnetic circuit is usually Phase B
made from magnetic steel sheets. -UDCB +U Magnetization of the permanent DCB magnets and their displacement Phase C on the rotor are chosen in such a -UDCB way that the back EMF (the voltage 30º 60º 90º 120º 150º 180º 210º 240º 270º 300º 330º Electrical induced into the stator winding due to Angle rotor movement) shape is trapezoidal. This allows a rectangular shaped three-phase voltage system (see Figure 2: Power Stage Topology figure 1) to be used to create a Three-Phase Power Stage rotational field with low torque ripples. C
PWM1 PWM3 PWM5 Six-Step BLDC Motor S S S Commutation AT BT CT Power B The rectangular shape of applied Source A voltage ensures the simplicity of DC Voltage control and drive. The BLDC motor PWM2 PWM4 PWM6 rotation is controlled by a six-step S S S Three-Phase BLDC Motor AB BB CB commutation technique (sometimes called 60, 120 degree control).
The six-step technique creates the MOSFET/1 GB Drivers voltage system with six vectors over PWM1 PWM2 PWM3 PWM4 PWM5 PWM6 one electronic rotation as shown in Pulse Width Modulator figure 1. The applied voltage needs (PWM) Module (Flex Timer) MCU to have amplitude and phase aligned with the back EMF. Therefore, the BLDC motor controller must: motor is controlled with minimal torque Voltage Amplitude • Control the applied amplitude ripple and maximal power efficiency. Controlled by PWM • Synchronize the six-step One possibility to control the three- commutation with the rotor position Three-Phase Power Stage phase six-step voltage amplitude is The three-phase six-step voltage The rotor position must be known at to have a variable power source DC system is created by a three-phase certain angles in order to synchronize voltage. This solution requires DC bus power stage with six IGBTs (MOSFET) the applied voltage with the back EMF voltage controlled with quite complex power switches controlled by the MCU (voltage induced due to movement of topology. The benefit of such a solution on-chip PWM module. the PM). Under that condition, the BLDC is the lack of high-frequency current
10 Beyond Bits Motor Control Edition
Figure 3: Six-Step Commutation Specifics ranges. In that case, one PWM pulse per motor commutation is introduced. This also means the PWM frequency A B C varies according to motor speed.
0 Position Feedback % The rotor position must be known in 1. 3. 5. order to drive a BLDC motor. This is provided with: 0 • Position sensors, or % 2. 4. 6. • Sensorless The solution with position sensors usually utilizes hall sensors. The main disadvantages are: BLDC ØA • Necessity for additional connections between position sensors and the ØC ØB control unit USc = UbackEMFc • Cost of the sensors and wiring Therefore, sensorless techniques are much more widespread today. There are two main groups for the ripples in the BLDC motor windings, determined by all six transistors (Sat to sensorless techniques: resulting in lower loss (especially the Scb) switching as shown in Figure 2. • Those based on back EMF sensing motor magnetic circuit loss). The four quadrant control requires For the majority of the motors and complementary PWMs. The • Low-speed techniques applications, this is not critical and a complementary PWM means that the The sensorless techniques based on constant power source DC voltage bottom switch (transistor) is controlled back EMF sensing are dedicated for is used. The three-phase average with a signal inversed to the top medium (>5 percent of nominal speed) voltage amplitude is then controlled switch transistor of the same phase. to high-speed range because they by a PWM technique on the top and The two quadrant control does not require significant value of the induced bottom transistors of two conducting require complementary control of the back EMF voltage. This voltage is motor phases (the third phase is off). inverter switches. The unipolar PWM proportional to rotor speed. The six-step controller uses one of complementary switching is more The low-speed techniques are two PWM techniques: popular due to lower loss. The applied based mainly on motor inductance • Bipolar PWM switching voltage vector at one PWM cycle has alteration on rotor position, so this the same polarity. The vector amplitude • Unipolar PWM switching does not require the back EMF changes from DC bus voltage and and can be used at low-speed, or There are a few derivatives of the two zero. In the case of the bipolar PWM zero-speed control range. Some of PWM switching techniques. According switching, the applied voltage vector these techniques require complex to the operating quadrants of the polarity changes during the PWM hardware which increases system power stage voltage and current: cycle, so the applied amplitude cost. At high speed, the back EMF is • Four quadrant power stage control changes from positive DC bus voltage more significant than the inductance for motoring and generating mode to negative DC bus voltage. alteration, so most of the controllers • Two quadrant power stage control The PWM frequency is usually use a combination of a low-speed with motoring mode only constant at >10 kHz. However, a control technique with the back EMF derivative of the PWM switching based technique. Or, they use the The bipolar/unipolar switching and technique is a technique which can back EMF techniques only. the operating quadrant control is be used for very high motor speed
freescale.com/motorcontrol 11 Market Trends
Sensorless Technique Speed Controller Freescale Enablement Based on Back EMF The motor rotation speed is usually BLDC controllers usually require Zero Crossing controlled using the rotor position MCU or DSC devices with PWM, The rotor position estimation is based feedback provided to the speed ADC, PDB and other modules on the back EMF voltage induced in regulator. The speed regulator controls supporting BLDC motor control. the stator phases due to rotor flux the three-phase power stage PWM Freescale motor control devices (permanent magnet) rotation. The (applied voltage amplitude). support the BLDC motor control. back EMF voltage phase corresponds BLDC Motor Control with Reference designs, application notes with the rotor position relative to and software solutions for BLDC PLL Commutation stator position. motor control applications are available One advantage of BLDC motor The six-step commutation specific at freescale.com/motorcontrol. control compared to standard DC feature is that one of the three phases motors is that the speed can be is off at a time. exactly determined with the six-step After the commutation transient commutation frequency. This allows (current recirculation, the fly-back for very accurate speed control. diodes conduct the decaying phase One of the benefits of accurate current), the current of phase x: BLDC motor speed control is that ISx = 0 and so USx = BEMFC the commutation period is constant and the six-step amplitude feedback The phase back EMF voltage zero is based on the phase difference crossing can be measured. between estimated back EMF zero The back EMF zero crossing sensing crossing and the required zero can be provided using ADC or crossing instant. comparators that usually build inside the controller devices.
12 Beyond Bits Motor Control Edition
Permanent Magnet Synchronous Motor 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 rotor flux motor drives. High-performance motor The “q” axis is the axis of Rotor position control is characterized by smooth motor torque along against phase A rotation over the entire speed range which the stator 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 vector control 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 magnets. 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 motor controller (vector control vector at 90 degrees to rotor magnets commutator. 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 magnetic field this state, the rotor position is set to amplitude of the q-axis current, when of the rotor is represented by the zero (required voltage 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 freescale.com/motorcontrol 13 Market Trends
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 ol Phase B to β to q q to β SVM Phase C Two-Phase Rotating ocess Stationary Phase C
(rotating reference frame) by Cont r P r 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 voltages 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 article titled, “Industrial/Appliance PMSM Amplitude Control Drive,” page 39, figure 2. 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 frequency 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
14 Beyond Bits Motor Control Edition
AC Induction Motor Control Operation principles
Introduction was used for speed regulation and Figure 2: ACIM Incision This article describes the basic startup. The more common type operation principles and control of AC consists of a rotor in a squirrel induction motors (ACIMs). cage form. AC induction machines are popular Operation Principle due to their simplicity, reliability and The principle of operation for an ACIM direct operation from an AC line is based on the voltage induction voltage. ACIMs are asynchronous from the stator to the rotor. When machines and always have a lower the stator winding is fed by a three- mechanical rotor speed than the phase supply voltage, the current power line frequency. flows in the winding and the stator Historically, variations to speed rotating magnetic field is generated. requests was a limitation for AC Induced voltage in the rotor windings machines, but the development of will create the rotor current and the frequency converters has simplified rotor magnetic field. The interaction For example, a 50 Hz, six-pole motor speed changes, and are now between two magnetic fields creates ACIM with 7 percent slip results in widely used. the mechanical torque needed to turn the following: the rotor. ACIM Fabrication The operational rotor speed is lower ACIM fabrication begins with a three- than the stator magnetic field speed in phase winding placed in the winding order to achieve rotational torque. slot of the stator. There are two basic types of rotor winding concepts. The There are three defined operational first type places the rotor winding variables of ACIM: synchronous placed in the winding slot with a slip speed, slip speed and slip. From these results, it is apparent ring on the shaft, which historically The synchronous speed is proportional that the motor runs at a lower speed to supply frequency and inversely than the supplied voltage frequency Figure 1: Example of ACIM proportional to the number of and requires regulation for precise paired poles. speed operation. Speed Torque Characteristic The slip speed is represented in the The speed torque characteristic shows difference between the synchronous the ACIM reaction on the load. speed and the rated speed. The slip The convenient operating point is the ratio between slip speed and selection is in the middle of the speed synchronous speed and shows how torque characteristic of the stable part much the rotor speed falls with of the motor region. In this area, the the load. speed falls slightly with the load.
freescale.com/motorcontrol 15 Market Trends
Figure 3: ACIM Speed Torque Characteristic control of motor torque and magnetic flux. The control is based
Torque on the transformation of current/ voltage coordinates from stationary Operating Point to rotation that makes the control
Motor similar to DC machine control. The Stable control incorporates fast torque/ Unstable Part Part Braking Motor Generator flux current control loops and slower Region Region Region speed/position control loops. The FOC requires the knowledge of the actual rotor position, which is
Generator typically measured by the encoder or resolver. In some cases, the sensor cannot be used and the rotor position -100 -80 -60 -40 -20 0 20 40 60 80 100 120 140 160 180 200 220 Speed in percent of synchronous speed is calculated using the sensorless observer from measured machine 2.0 1.8 1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0 -0.2 -0.4 -0.6 -0.8 -1.0 -1.2 Slip as a fraction of synchronous speed currents and voltages. Advanced control techniques provide an excellent dynamic performance, ACIM can operate as a generator There are two groups of control wide speed range from zero speed but it is necessary to supply machine methods. First, the simple method is and excellent efficiency. They can be reactive energy because there is named voltage/frequency control (or used for industrial and servo drives no source of magnetic field. The scalar control) and refers to applied but also for advanced appliance generator speed torque characteristic voltage that is proportional to applied applications such as washers. region is central symmetry to torque frequency. This method is simple, is On the other hand, they require zero crossing point. On the left there not dependent on motor parameters a high-performance MCU with is a braking region. In the case of and can use the entire speed range. dedicated motor control peripherals. ACIM in generator mode the slip is a On the other hand, it does not Freescale offers a family of DSCs, the negative value. include current controllers and does MC56F8xxx based on 56F800E/X not control the machine optimally in It is evident from the characteristic, cores and ARM Cortex-M4 core- transient states. This technique is that the motor start torque is based Kinetis MCUs that provide the appropriate for fans, pumps restricted. The full motor start torque ideal solution for advance control of and compressors. can be achieved using an advanced AC induction motors. control method. Freescale offers 8-bit MCUs such as Reference designs, application notes the MC9S08P/MP with dedicated and software solutions for ACIMs, ACIM Control peripherals that can easily handle are available at freescale.com/ ACIM changes speed according the task. motorcontrol. to supply frequency and voltage Second, there are advanced control provided by the frequency converter. methods such as field-oriented This is efficient and allows the entire control (FOC) or direct torque control machine speed range to be used. (DTC). FOC enables independent
16 Beyond Bits Motor Control Edition
Switched Reluctance Motors Control techniques using Freescale solutions
Switched Reluctance Figure 1: Two-Phase 4/2 Switched Reluctance (SR) Motor Motor Features Stator A switched reluctance (SR) motor is a (4 Poles) Phase B rotating electric machine where both stator and rotor have salient poles. Phase A The stator winding comprises a set of coils, each of which is wound on one pole. The rotor is created from lamination in order to minimize the Rotor (2 Poles) eddy current losses. SR motors differ in the number of phases wound on the stator. Each has a certain number of suitable Aligned Rotor Position Unaligned Rotor Position combinations of stator and rotor poles. Figure 1 illustrates a typical two-phase defined by the turn-on Qon and the the SR power stage defines SR motor with a 4/2 (stator/rotor) pole turn-off Qoff angles. the freedom of control for an configuration and a stepped gap. The When the voltage is applied to the individual phase. stepped gap is used to eliminate dead stator phase, the motor creates There are a number of control zones, where motor torque is zero at a torque in the direction of increasing techniques for SR motors. They symmetrical SR motor and it ensures inductance. When the phase is differ in the structure of the control motor startup in the proper direction. energized in its minimum inductance algorithm and in position evaluation. The motor is excited by a sequence position, the rotor moves to the Three basic techniques for controlling of current pulses applied at each forthcoming position of maximal SR motors can be distinguished, phase. The individual phases are inductance. The movement is defined according to the motor variables consequently excited, forcing the by the magnetization characteristics that are being controlled: motor to rotate. The current pulses of the motor. A typical current profile • Angle control need to be applied to the respective for a constant phase voltage is shown • Voltage control phase at the exact rotor position in figure 2. • Current control relative to the excited phase. Control of SR Motor In angle control techniques, the The inductance profile of SR motors The SR motor is driven by voltage constant full voltage is applied in the is triangular shaped, with maximum strokes coupled with the given SR motor. The speed of the motor is inductance when it is in an aligned rotor position. The profile of the controlled by changing on/off angles. position and minimum inductance phase current together with the The speed controller processes the when unaligned. Figure 2 illustrates magnetization characteristics defines speed error (the difference between the idealized triangular-like inductance the generated torque and thus the the desired speed and the actual profile of both phases of an SR speed of the motor. Due to this fact, speed) and calculates the desired motor with phase A highlighted. The the motor requires electronic control on/off angles. This technique is not individual phases A and B are shifted for operation. Several power stage suitable for full speed range operation electrically by 180 degrees relative topologies are being implemented, since during low-speed operation the to each other. When the respective according to the number of motor maximal voltage amplitude generates phase is powered, the interval is phases and the desired control high current peaks in the motor called the dwell angle: Qdwell. It is algorithm. The particular structure of phases. This technique is used to run
freescale.com/motorcontrol 17 Market Trends
Figure 2: Ideal Phase Inductance and Current Profile switching of individual phases. Also, the motor structure causes noise and torque ripple. The greater Stator Phase A the number of poles, the smoother Aligned Just in Touch Aligned the torque ripple, but motor construction and control electronics become more expensive. Torque Rotor ripple can also be reduced by iphA advanced control techniques such LA LB as phase current profiling. Freescale Enablement The selection of suitable MCUs for control of SR motors depends on