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.

MotorWare 18 some issue I want to ask

Other Parts Discussed in Thread: MOTORWARE, DRV8301

hi:

There is a C compiler that I  confuse: 

In the main.c , there are some "control function" C sentences :

....

CTRL_Handle ctrlHandle;

....

CTRL_Obj *controller_obj; //
CTRL_Obj ctrl; //v1p7 format

.....

 controller_obj = (CTRL_Obj *)ctrlHandle;

 

what is structure about  point ?  we all know :  

typedef struct _CTRL_Obj_

  {

....

}CTRL_Obj;

//! \brief Defines the CTRL handle
//!
typedef struct _CTRL_Obj_ *CTRL_Handle;

I don' t understand why do so complicated structure .  

My question is : CTRL_Handle,  controller_obj;ctrl ,    what do the purpose  they are? what different of them?

Other question is .  if motorware 18 had deleted lab20 and lab21? 

 

  • In terms of Motorware, handles are nothing more than abstracted pointers to objects, without the additional typing and interpretation of the pointer syntax. The use of handles makes the code much more readable and understandable for most programmers.

    Also, labs 20 and 21 still exist in Motorware as of version 18

    Sean
  • thank you sean.

    but I downloaded motorware 18   which has not  lab20 and lab21 :please have a look:

    this is 69M ,please confirm !

    Other question is I want have "brake function" . what will I do in motorware18.  ? this is important function in application. but  in motorware never mentioned it. 

    best regard!

  • It appears as if you're looking for labs 20 and 21 under "InstaSPIN-MOTION" instead of under "InstaSPIN-FOC," which is where those projects are located.

    We do not offer any instruction on braking. There should be information available online that demonstrate bleed/brake circuits in hardware

    Sean
  • thanks  sean:

    I know MOTION and FOC . yes , I am into motion files .   there are no labs20,and 21.

    and I download twice .  no find labs20 and 21. 

    please check out again!  thanks .

    about braking ,  I want to ask :   who can isolate motorware control stucture ,   I can use PWM piont and configurate EPWM free. ?

    you know in motorware ,PWM is folded in it.   

    best regard!

    yanzhen fu

  • and , how can I add braking ctrol state in CTRL_Obj ?
  • HI: 

    In motorware , there is  "EST_isLockRotor(obj->estHandle)"   that  improve Motorware can brake motor ,   but this function in motor ID identify procession .   how can user use it ?

    best regard!

    yanzhenfu

  • Labs 20 and 21 are intended only for InstaSPIN-FOC on the DRV8301 EVM. Please look in this directory to find the project:

    C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\drv8301kit_revD\f28x\f2806xF\projects\ccs

    Also, the EST_isLockRotor() state is used during ACIM motor identification, not for braking. The motor parameter ID process requires the user to hand lock the rotor to identify rotor resistance and inductance.

    I don't think you'll need to use an EST state for braking. You can check the commanded versus actual torque (or speed) to determine when you are braking. If you are running in the first quadrant, you'll need to use the second quadrant for braking. If you want to add a state machine state for this, please add a CTRL state, not an EST state.

    Sean