SLLA661A April   2025  – June 2026 MCF8315A , MCF8315C , MCF8315C-Q1 , MCF8315D , MCF8316A , MCF8316C-Q1 , MCF8316D , MCF8329A , MCF8329A-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2System Requirements
  6. 3 MOTORSTUDIO GUI Installation
  7. 4Prerequisites to Run the Motor with MOTORSTUDIO
  8. 5Getting Started with MOTORSTUDIO
    1. 5.1 Home
    2. 5.2 SmartTune
    3. 5.3 Optimization Wizard
    4. 5.4 Motor Parameter Extraction Tool (MPET)
    5. 5.5 Closed Loop Tuning
    6. 5.6 Advanced Tuning
    7. 5.7 Register Map
      1. 5.7.1 Register read
    8. 5.8 Control Utilities
      1. 5.8.1 Control
        1. 5.8.1.1 EEPROM READ/WRITE
      2. 5.8.2 Faults
      3. 5.8.3 Charts
      4. 5.8.4 Logs
    9. 5.9 Other Utilities
      1. 5.9.1 Scripting Tool
      2. 5.9.2 Compare Tuning File Tool
  9. 6Spinning the motor
    1. 6.1 Connecting MCF83xx to the GUI
    2. 6.2 SmartTune Execution
    3. 6.3 Improving Current and Speed Regulation
    4. 6.4 Testing for Successful Startup Into Closed Loop
  10. 7Summary
  11. 8References
  12. 9Revision History

Improving Current and Speed Regulation

The MCF83xx products operates the motor utilizing Field Oriented Control (FOC), with current and speed regulation accomplished through Proportional-Integral (PI) controllers. The device automatically calculates the current PI control loop coefficients based on the motor electrical parameters, specifically resistance and inductance. These calculated values are displayed in the CURRENT_PI register.

To change the current loop gains, users can copy the device calculated [CURRENT_LOOP_KP] and [CURRENT_LOOP_KI] values from the CURRENT_PI register and input the modified values into the corresponding [CURR_LOOP_KP] and [CURR_LOOP_KI] settings within the CLOSED_LOOP3 register.

MotorStudio Close loop tuning page provides functionality to adjust current loop coefficients through the "Time Domain Graph". User can adjust the loop coefficients "Kp coefficient for current Iq and Id loop" and "Ki coefficient for current Iq and Id loop", while monitoring Current(Amps) vs Time (sec) through the "Time Domain Graph" by selecting the "Plot Current Response" button.

 Current Loop Tuning Figure 6-8 Current Loop Tuning

Speed PI loop coefficients are calculated based on motor mechanical parameters, including motor inertia and friction coefficients. In cases where users lack access to these motor mechanical parameters, the Closed Loop Tuning page offers functionality to determine the speed loop Kp [SPD_LOOP_KP] and Ki [SPD_LOOP_KI] coefficients for a specified motor. Follow the procedure outlined below to calculate the speed loop coefficients.

  1. Set the motor to current control mode using PERI_CONFIG1 -> [CTRL_MODE] = "Current Control" configuration.
  2. Complete the "Current (Ipeak-Amps)" vs "Speed Feedback(Hz)" table provided in the Motor Characteristics tab by issuing I2C speed commands that span the entire motor operating speed range. Both the "Current (Ipeak-Amps)" and "Speed Feedback (Hz)" data can be obtained from the "Iq feedback" and "Motor Speed Based on FG" parameter within the MOTOR STATUS window.
  3. While stopping the motor, record the motor coasting "Time (sec)" along with the "Initial Speed(hz)" and "Final Speed (Hz)", then enter these captured values into the designated text fields.
  4. Select the "Measure Motor Characteristics" button, the software will calculate the motor mechanical characteristics and display these parameters in the Motor Characteristics window.
 Motor Characteristics Figure 6-9 Motor Characteristics

Navigate to the Speed Loop tab, enter the desired motor "Initial Speed (Hz)" and "Final Speed (Hz)" with "Maximum Simulation Time (sec)" and select the "Plot Speed Response" button in the "Time Domain Graph" to generate a Speed (Hz) vs Time(sec) response plot for the calculated speed loop coefficients.

 Motor Operation Tuning
                    Parameters Figure 6-10 Motor Operation Tuning Parameters

User can adjust "Kp coefficient for speed loop" and "Ki coefficient for speed loop" values and monitor the response again through the "Time Domain Graph" for further tuning.

 Motor Speed Tuning
                    Parameters Figure 6-11 Motor Speed Tuning Parameters