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.

TMS320F28069M: motion variable question. what does ROMax mean and where is definition ?

Part Number: TMS320F28069M


Hi Champs,

My customer asked about STPOSCTL_setPositionReference_mrev(ST_POSCTL_Handle handle, _iq24 posRef) usage. I checked it's definition and found posRef range is between [-ROMax, ROMax]. I tried to find ROMax definition but I can't find it. I checked  TRM and table 3-14 show cfg structure. However, it didn't show ROMax variable. I also search whole motoware and I didn't find any ROMax definition. I guess ROMax value is same as cfg.ROMax_erev. But I am nor sure. Could anyone help me to check where is ROMax value define ? thanks

  • Hi Lisa,

    You may find the ST_PosConvCfg_t definition of ST_PosConv_t in spintac_pos_conv.h. It's ROMax_mrev, not ROMax_erev.
  • Hi Yanming,

    thanks for your reply. I have a question about STPOSCTL_setPositionReference_mrev(stObj->posCtlHandle, 0); this function input variable posRef value is 0. And the definition is "posRef Position reference { unit: [MRev], value range: [-ROMax, ROMax] }" But itf ROMax is ROMax_mrev which range is [2,100]. It shouldn't input 0 for posRef. I am not sure my understanding is correct or not. Could you please help clarify it ? thanks !

  • Hi Lisa,

    You may refer to Table 3-16, it's the maximum value, so the input position reference signal should be [-ROMax_mrev, ROMax_mrev], like [-2, 2], [-100, 100], or [-N, N], so the posRef can be 0.