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.

InstaSPIN FOC PMSM fixed field speed

Other Parts Discussed in Thread: TMDSHVMTRINSPIN, MOTORWARE

Hey,

I am currently working with the InstaSPIN-FOC/Motion dev kit (TMDSHVMTRINSPIN) and am trying to set the motor spinning at a set frequency.  Basically, I want to be able to set the V_q and V_d as constants and the theta (rotor position) as a constant ramp function (or sawtooth if it rolls over to 0deg from 359) in the Inverse Park Transform section of the Block Diagram.  This should set the T_a/b/c output to the motor at a set frequency depending on the slope of the theta ramp function.

  • that's just open loop, meaning you aren't changing Vq to give a specific torque (Iq) and you aren't changing torque (Iq) based on any sort of speed feedback or reference.  In the ctrl.c/.h you can essentially take over the Vq/Vd variables and write your own value (we bring them out as gMotorVars when doing this) We sometimes do this for induction motors to test our magnetizing current (Id) value...why do you want to do this?

    I'm attaching two files. They can replace the normal ctrl.c and ctrl.h in

    C:\ti\motorware\motorware_1_01_00_13\sw\solutions\instaspin_foc\src

    (I recommend saving your ctrl.c and .h as something like ctrl_orig so you have copies)

    You can use a DIFF tool to look at the differences and use the flag and variables in your system....you can only use this in a project after the parameters are ID'd or loaded.