Irmcx300 Application Developer's Guide
Total Page:16
File Type:pdf, Size:1020Kb
IRMCx300_AppDevGuide Application Developer’s Guide iMOTION™ motor control IC with additional MCU About this document Scope and purpose The IRMCx300 series motor control ICs are mixed signal devices optimized for permanent magnet motor control. They combines the iMOTION™ motion control engine (MCE) with an additional 8 Bit microcontroller (MCU) to improve application flexibility. This Developer‘s Guide will begin with the process of initial testing with the target motor, continue with modification of the MCE design for application specific requirements and conclude with the design of motor control hardware for the final application. This guide assumes that the user is in possession of an iMOTION™ reference design kit and has already completed the activities in the Quick Start Guide. The user should also review the “MCEDesigner User‘s Guide”. This guide will refer to MCEDesigner features and actions frequently. Section 2 starts by describing in detail how to measure the parameters of the target motor, generate the correct drive parameters, and begin spinning the motor. Next, this section gives instructions on how to tune the speed and current control loops and optimize the motor start-up parameters. Section 2 concludes with motor drive performance verification and testing methods using MCEDesigner. Section 3 introduces the MCE processor in more detail and then gives instructions on how to modify the factory- supplied MCE design, if desired. The section finishes with some sample program modifications. Section 4 guides the user through design, testing and optimization of application specific hardware as it relates to the IRMCx300 motor control IC. Finally, Section 5 provides application guidance for the power factor correction (PFC) features which are available on the IRMCS3012 and IRMCS3043 reference design kits. It describes the topology, control loops, parameter tuning, and hardware design for PFC, with specific references to the design kits. An additional document, the “IRMCx300 Software Developer‘s Guide”, has instructions on hardware and software requirements and the development process of the embedded 8051 code. The “Application and Software Developer‘s Guides” are designed to take the user through the design process. The reference manual, also referred to frequently in this document, has detailed information on many topics covered here, as well as full descriptions of the 8051 and MCE hardware registers. Intended audience This software developer’s guide is intended for customers implementing an inverterized drive. Application Developer's Guide Please read the Important Notice and Warnings at the end of this document Revision 1.3 www.infineon.com/iMOTION 2009-09-22 User Guide #0608 IRMCx300 Application Developer’s Guide Version 1.3 By International Rectifier’s iMotion Team Table of Contents 1 Introduction............................................................ 4 2 Target Motor on IR Reference Board.................... 4 2.1 Measuring the Motor Parameters........................................... 5 2.1.1 Importing Drive Parameters into MCEDesigner...............................7 2.1.2 Advanced Parameter Measurement—Saturation Effects ................8 2.2 Starting Application-Specific Testing...................................... 9 2.2.1 MCEDesigner ..................................................................................9 2.2.2 Possible Hardware Modifications ..................................................15 2.2.3 Variable Scaling ............................................................................16 2.2.4 Verifying Scalings..........................................................................19 2.3 Optimizing Starting and Running Parameters...................... 21 2.3.1 Before Start-Up .............................................................................21 2.3.2 Start-Up Tuning .............................................................................21 2.3.3 Catch-Spin Starting .......................................................................26 2.3.4 Control Loop Structure & Tuning ...................................................27 2.3.5 Braking the Motor ..........................................................................38 3 MCE Program Customization.............................. 41 3.1 The Motion Control Engine .................................................. 42 3.2 IR Standard MCE Program .................................................. 44 3.2.1 Block Diagram ...............................................................................44 3.2.2 Input and Output Registers of the MCE Program ..........................46 3.3 Simulink MCE Design Components ..................................... 48 3.3.1 MCE Design Hierarchical Format ..................................................48 3.3.2 The MCE Library ...........................................................................50 3.3.3 Standard Simulink Library Components ........................................52 3.4 New MCE Design—Start to Finish ....................................... 53 3.4.1 Setting up Matlab/Simulink ............................................................53 3.4.2 Creating a Complete System Design.............................................54 3.4.3 The MCE Compiler........................................................................58 www.irf.com UG#0608 1 3.4.4 Downloading to the Reference Board............................................61 3.5 Example Modifications ......................................................... 65 3.5.1 Torque Mode .................................................................................65 3.5.2 Limiting the Speed Feedback Input Variance ................................67 4 Application Hardware Design .............................. 67 4.1 Schematic Elements ............................................................ 67 4.1.1 Component Selection ....................................................................68 4.1.2 A/D Feedback Scaling ...................................................................69 4.1.3 Gate Drive Signals.........................................................................70 4.1.4 A/D Converter Offset Compensation .............................................70 4.1.5 Overcurrent Protection ..................................................................74 4.2 Layout Recommendations ................................................... 74 4.2.1 Current Feedback Circuit with IRMCF300 .....................................74 4.2.2 Overcurrent protection layout ........................................................76 4.3 Testing and Optimization ..................................................... 76 4.3.1 Space Vector PWM and Single Shunt Current Reconstruction .....76 4.3.2 Inverter-Related Testing and MCEWizard Settings .......................79 4.3.3 Overcurrent protection...................................................................86 5 PFC Application Development ............................ 86 5.1 MCE Program ...................................................................... 87 5.1.1 Current Loop .................................................................................87 5.1.2 Voltage Loop .................................................................................90 5.1.3 Feedforward ..................................................................................91 5.1.4 Enable and Shutdown ...................................................................92 5.1.5 Input and Output Registers............................................................92 5.2 Using PFC on the IR Reference Board ................................ 93 5.2.1 Using the Wizard to create the configuration parameters..............93 5.2.2 Overcurrent Protection Circuit .......................................................93 5.2.3 PFC Variable Scaling ....................................................................94 5.2.4 Optimizing Starting and Running...................................................96 5.2.5 Other PFC Features ......................................................................97 5.2.6 Possible Hardware Modifications ..................................................99 5.3 PFC Hardware Design ....................................................... 101 5.3.1 Schematic Elements....................................................................101 5.3.2 Layout Recommendations...........................................................102 5.4 Advanced Topics................................................................ 102 6 Induction Motor (IM) Control.............................. 103 6.1 Introduction ........................................................................ 103 6.2 IM Control Program............................................................ 103 6.2.1 Volts per Hertz (VHz) Mode.........................................................105 6.2.2 FOC Mode...................................................................................110 6.2.3 Other Features ............................................................................114 6.3 Parameter Configuration .................................................... 118 www.irf.com UG#0608 2 6.3.1 Configuring for testing in VHz Mode............................................118 6.3.2 Parameter Measurement.............................................................119 6.3.3 Configuring for FOC Mode ..........................................................122 6.3.4 Parameter Estimation by Saturation Curve