SPRACO3 October 2019 INA240 , LMG5200 , TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378D , TMS320F28378S , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
Assuming the previous section is completed successfully, this section verifies the dq-axis current regulation performed by the FCL. One of the two current controllers can be chosen: PI or complex. The loop bandwidth can be set in the debug window. The implementation block diagram is given in Figure 25. The two motors shafts must be kept disconnected for more clarity.
WARNING
In this build, control is done based on the actual rotor position and the motor can run at higher speeds if the commanded ‘IqRef’ is higher and if there is no load on the motor. Therefore, it is advised to either add some mechanical load on the motor before the test or to apply lower values of ‘IqRef’.
At start up, the motors are taken through QEP calibration phase where each motor takes turns to calibrate its QEP’s angular offset with respect to its stator angle zero. To start with, motor goes through an alignment and then spins slowly based on an enforced angle waiting on index pulse for calibration. After the index pulse is received, it goes to float mode.
After calibration is done, when any of the motor is commanded to run, it runs in full self-control mode based on its own angular position. This calibration step happens for this build level and beyond. Since the calibration routine calibrates both motors, connect both motors but the shafts need not be connected together necessarily yet. If the shafts are already coupled, only one motor can be tested at a given time, otherwise both motors can be tested simultaneously.
NOTE
The maximum modulation index changes from 0.98 in SINGLE_SAMPLING method to 0.96 in DOUBLE_SAMPLING method. If the PWM_FREQUENCY is changed from 10 KHz, the maximum modulation index also changes.
The same set of tests can be done on motor 2 by working with structure variable 'motorVars[1]'.