This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL-F28069M: To start the project, set the variable “gMotorVars.Flag_enableSys” equal to 1.

Part Number: LAUNCHXL-F28069M

Tool/software: Code Composer Studio

Dear TI team,

working with lab5c, and trying to run the motor , When changing gMotorVars.Flag_enableSys to 1, it is not changed, it remains 0, only “gMotorVars.Flag_Run_Identify” can be set to 1 . 

What is causing this ?

Should I update user.h with anything else than the  motor parameters from lab2a ? As I only worked with lab2a before lab5c. 

Regards, 

  • Lab05c is for inertia identification, you might take a look at the InstaSPIN-Guide about lab05c, the operation steps are as below.

    1. Set the variable “gMotorVars.Flag_enableSys” equal to 1 .
    2. Set the variable “gMotorVars.Flag_Run_Identify” equal to 1.

    3. Set “gMotorVars.SpinTAC.VelIdGoalSpeed_krpm” equal to the rated speed of your motor.

    4. Set “gMotorVars.SpinTAC.VelIdRun” to 1

  • Should I Set these 4 directly with each other or make the first two steps 1 & 2 and when the motor decelerate to zero  continue with steps 3&4 ? 

    This confused me in the lab . 

    The InstaSPIN controller will now run the motor. In order to maintain the sensorless angle of the motor it will spin at a slow speed. This speed the motor spins at in between inertia estimations can be modified via the variable gMotorVars.StopSpeedRef_krpm. Prior to SpinTAC™ Velocity Identify inertia identification the motor will decelerate to zero speed and then begin the inertia identification process.Set “gMotorVars.SpinTAC.VelIdGoalSpeed_krpm” equal to the rated speed of your motor. This will ensure a more accurate inertia result. Set “gMotorVars.SpinTAC.VelIdRun” to 1. 

    Regards, 

  • Set these variables step by step, and gMotorVars.SpinTAC.VelIdRun will be changed back to 0 automatically after completed the inertia identification.

    Please be noted, you need to run the lab02b or lab02c to identify the motor parameters first and set these identified parameters in user.h for lab05c.