SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
ERR_ID provides an error code for users. A list of errors defined for SpinTAC Position Control and the solutions for these errors are shown in Table 13-3.
| ERR_ID | Problem | Solution |
|---|---|---|
| 1 | Invalid sample time value | Set cfg.T_sec within (0, 1] |
| 2 | Invalid velocity reference maximum value | Set cfg.VelMax within (0, 1] |
| 4 | Invalid control signal maximum value | Set cfg.OutMax within (0, 1] |
| 5 | Invalid control signal minimum value | Set cfg.OutMin within [-1, 0) |
| 13 | Invalid position rollover bound value | Set cfg.ROMax_mrev within [2, 100] |
| 14 | Invalid mechanical revolution [MRev] to [pu] ratio value | Set cfg.mrev_TO_pu within [0.002, 1] |
| 15 | Invalid position error maximum value | Set cfg.PosErrMax_mrev within [0, cfg.ROMax_mrev/2] |
| 16 | Invalid inertia maximum value | Set cfg.InertiaMax as a positive _iq24 value |
| 17 | Invalid inertia minimum value | Set cfg.InertiaMin within (0, cfg.InertiaMax] |
| 18 | Invalid bandwidth maximum value | Set cfg.BwMax within [0, min(2000, 0.2/cfg.T)] |
| 19 | Invalid bandwidth minimum value | Set cfg.BwMin within [0, cfg.BwMax] |
| 20 | Invalid value for disturbance specification | Set cfg.RampDist within {false, true} |
| 32 | Invalid axis ID | Set cfg.Axis within {ST_AXIS0, ST_AXIS1} |
| 35 | Invalid value for filter enable | Set cfg.FiltEN within {false, true} |
| 1012 | Invalid inertia value | No action. Inertia will be saturated by the bound [cfg.InertiaMin, cfg.InertiaMax] |
| 1014 | Bandwidth × Inertia is greater than 2000 | No action. The actual bandwidth is saturated by the value of 2000/Inertia |
| 1016 | Friction is out of bounds | No action. The friction will be saturated by the adjusted friction bounds [0, 5] |
| 2002 | Position error exceeds maximum | Increase bandwidth to get less position error or make profile velocity, acceleration, and jerk slower |
| 4001 | Invalid SpinTAC license | Use a chip with a valid license |
| 4003 | Invalid ROM version | Use a chip with a valid ROM version or use the SpinTAC library that is compatible with the current ROM version. |