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
The configuration errors are reported via the CfgError structure included in the main SpinTAC Velocity Plan structure. This structure contains elements that store additional information about the error. The elements are described below:
The ERR_code for a specific condition remains the same for all Plan functions. A list of ERR_codes and conditions defined in SpinTAC Velocity Plan is shown in Table 14-5.
ERR_code | Description | Solution |
---|---|---|
1 | SpinTAC Plan is running | Place SpinTAC Plan into the idle status prior to running the configuration. |
2 | Maximum State number exceeded | The maximum number of States has been configured. |
3 | Maximum Condition number exceeded | The maximum number of Conditions has been configured. |
4 | Maximum Transition number exceeded | The maximum number of Transitions has been configured. |
5 | Maximum Action number exceeded | The maximum number of Actions has been configured. |
6 | Maximum Variable number exceeded | The maximum number of Variables has been configured. |
7 | Invalid sample time value | Set sample time, cfg.T_sec, within (0, 0.01]. |
8 | Invalid VelMax value | Choose VelMax within (0, 1]. |
9 | Invalid AccMax value | Choose AccMax within [0.001, 120]. |
10 | Invalid JrkMax value | Choose JrkMax within [0.0005, 2000]. |
11 | Invalid LoopENB value | Choose LoopENB within { false, true }. |
12 | Invalid VelEnd value | Choose VelEnd within [(0, VelMax]. |
13 | Invalid AccLim value | Choose AccLim within [0.001, AccMax]. |
14 | Invalid JrkLim value | Choose JrkLim within [0.0005, JrkMax]. |
15 | Invalid Timer_tick value | Choose a positive integer value. |
16 | Invalid State index | The index should be for a configured State index. |
17 | Invalid Condition index | The index should be for a configured Condition index. |
18 | Invalid Transition index | The index should be for a configured Transition index. |
19 | Invalid Action index | The index should be for a configured Action index. |
20 | Invalid Variable index | The index should be for a configured Variable index. |
21 | Invalid Variable type | Choose variable type from the values in ST_PlanVar_e. |
22 | Invalid value of Comparison | Choose comparison from the values in ST_PlanComp_e. |
23 | Invalid Operation | Choose operation from the values in ST_PlanActOptn_e. |
24 | Invalid AndOr value | Choose AndOr from the values in ST_PlanCond_e. |
25 | Improper Variable type | ST_VAR_OUT Variables cannot have a value set to them . ST_VAR_OUT Variables cannot be used in Conditions . ST_VAR_IN Variables cannot be used in Actions. |
26 | Improper values in Comparison | Value1 should be less than or equal to Value2. |
27 | Improper State index | In Transitions FromState cannot be equal to ToState, and these States must be equal to a configured State. |
28 | Improper Condition index in Transition | In Transitions: CondIdx1 cannot be equal to CondIdx2, and these Conditions must be equal to a configured Condition |
29 | Improper EnterExit value | Choose EnterExit from the values in ST_PlanActTrgr_e |
30 | Improper AndOr during Variable deletion | The AndOr value conflicts with the value of VarIdx. When deleting a Variable, it causes a configuration error in a Transition. |
31 | Cannot delete Variable as an Action depends on it | Remove Variable from Action configuration before deleting the Variable. |
37 | Plan Configuration array declared is too small for plan elements | Remove an Element from the configuration or declare a larger configuration array. |
38 | Cannot delete a State as a Transition depends on it | Remove State from Transition configuration before deleting the State. |
39 | Cannot delete a State as an Action depends on it | Remove State from Action configuration before deleting the State. |
40 | Improper values for variable comparison | Variable comparison conditions cannot have comparison enum greater than ST_COMP_ELW. |
41 | Cannot compare a variable to itself | Ensure that the variable indexes passed to the function are different and valid. |
42 | Cannot get a variable based Condition from the index of a value based type of Condition | Pass an index that is known to contain a variable based Condition. |
43 | Cannot delete a Condition as a Transition depends on it | Remove Condition from Transition configuration before deleting the Condition. |