TIDUAY6E November   2015  – March 2020

 

  1.   Revision History

Running the Code

  1. Run the project by clicking the TIDM-HV-1PH-DCAC Button_2_TIDUAY6.png button.
  2. Clear the inverter trip by setting the clearlnvTrip variable to 1.
  3. Set the rlyConnect variable to 1 to connect the relay.
  4. Set a small current command of 0.02 for invliRef.
  5. Slowly raise the DC bus.
  6. Observe the invIiInst rises slowly, and then regulates at the value set by invliRef.
  7. For the 100-Ω output load, the inverter will begin regulating the current once the DC bus is raised about 50 V. Increasing the DC Bus further will not result in increase in the invIiInst, which verifies closed loop operation.
  8. Once the closed loop operation is verified, for example, invlireflnst closely matches invliRef, the DC bus must be raised to the operating voltage, such as 380 V.
  9. NOTE

    If the closed loop operation is not verified, the user must reduce the DC bus immediately, and verify Build 1 to see if all the voltage and current sensing parameters are correct. The user must also visit the compensation designer again to verify that the system has enough gain at DC.

  10. After raising the DC bus to 380 V, the invliRef must be increased in steps of 0.02 pu to 0.08 pu, while continually monitoring closed loop operation (that is, with invIiInst matched invIiRef at every step change, one can monitor these on the oscilloscope as well to verify settling time, overshoot, and so on).
  11. This design at 380-V DC input with 0.08-pu current invIiRef set will correspond to approximately 1.3 Amps of current in case of SDFM monitored using a guiIi variable, which with a 100-Ω load, will equal 170 W of power.
  12. NOTE

    SFRA is integrated in the software of this build to verify the designed compensator provides enough gain and phase margin by measuring on hardware.

  13. To run the SFRA, keep the project running and from the CFG page, click on the SFRA icon.
  14. SFRA GUI will appear.
  15. Select the options for the device on the GUI; for example, for TMS320F28377D, select floating point.
  16. Click on setup connection.
  17. On the pop-up window, uncheck the boot on connect option.
  18. Select an appropriate COM port, and click OK.
  19. Return to the SFRA GUI.
  20. Click connect.
  21. The SFRA GUI will connect to the device.
  22. A SFRA sweep can now be started by clicking on Start Sweep.
  23. The complete SFRA sweep will take a few minutes to complete.
  24. Activity may be monitored by viewing the progress bar on the SFRA GUI, and also by checking the flashing of the blue LED light on the back of the control card that indicates UART activity.
  25. If these blue LEDs stop blinking, it indicates a loss of communication. Under this situation, close SFRA GUI, and restart the connection process. If the situation persists, bring the system to a safe stop by setting the invIiRef to 0 and bringing the DC bus voltage down to 0. Terminate the debug session, followed by connecting and reconnecting the JTAG USB cable to reset the JTAG circuit and relaunch a debug session by following the steps outlined previously to rerun the SFRA.

  26. Once complete, a graph will open a loop plot, as shown in Figure 29. This verifies that the designed compensator is stable.
  27. TIDM-HV-1PH-DCAC SFRA_Run_On_Closed_Current_Loop_TIDUAY6.pngFigure 29. SFRA Run on Closed Current Loop

    The frequency response data is also saved in the project folder under an SFRA Data Folder, and is time stamped with the time of the SFRA run.

    The measured gain and phase margin are better than the modeled values, indicating slight differences in modeled and measured response. In this case, the difference is of gain reduction which decreases the bandwidth, but improves the margins. However, depending on the estimate of the parameters of the power stage, the margins may shift either way and it is essential to measure the response to ensure robust operation.

    For the voltage source inverter, TI recommends to keep the crossover of the inner current loop at greater than ten times the AC frequency, which is met by this compensator, and no changes are needed in the design. If an adapted solution is not met, the compensator must be changed to ensure the crossover of the current loop meets this requirement.

  28. Click on the Compensation Designer from the SYSCFG page.
  29. Choose SFRA Data for the plant option on the GUI. This will use the measured plant information to design the compensator. This option must be used to fine tune the compensation.
  30. NOTE

    By default, the compensation designer will point to the latest SFRA run.

  31. If a previous SFRA run plant information needs to be used, the user must select the SFRAData.csv file by browsing to it.
  32. Click on Browse SFRA Data.
  33. Close Compensation Designer to return to the syscfg page.
  34. Figure 30 shows the compensation designer with measured plant frequency response data.

    TIDM-HV-1PH-DCAC tidm-hv-1ph-dcac-current-loop-design-pi-measured.pngFigure 30. Compensation Designer With Measured Plant Frequency Response Data
  35. The current compensator design has been verified.
  36. Set the invliRef to zero.
  37. Reduce the DC bus to zero.
  38. Disconnect the relay by setting rlyConnect to zero.
  39. Fully halting the MCU when in real-time mode is a two step process.
  40. First, halt the processor by clicking TIDM-HV-1PH-DCAC Button_3_TIDUAY6.png on the toolbar, or by using Target→Halt.
  41. Take the MCU out of real-time mode by clicking on TIDM-HV-1PH-DCAC Button_4_TIDUAY6.png.
  42. Finally, reset the MCU by clicking on TIDM-HV-1PH-DCAC Button_5_TIDUAY6.png.
  43. Close the CCS debug session by clicking on Terminate Debug SessionTIDM-HV-1PH-DCAC Button_6_TIDUAY6.png, or by using Target → Terminate all.