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 main function is STVELMOVE_run(ST_VELMOVE_Handle handle), where handle is a pointer to a specific ST_VelMove_t object. This function runs SpinTAC velocity move. This function must be run at the same rate as SpinTAC Velocity Control.
void STVELMOVE_run(ST_VELMOVE_Handle handle)
Parameters:
No. | Type | Parameters | Description |
---|---|---|---|
1 | ST_VELMOVE_Handle | Handle | The pointer to a ST_VelMove_t object |
The SpinTAC Velocity Move state transition map is shown in Figure 4-8. Note in Figure 4-8, the transitions from state IDLE to INIT, and then to CONF, happen within one sample time. Thus, the profile is generated at the sample time when the profile is enabled.
The states of the SpinTAC Velocity Move are described in Table 4-8.
From State | To State | Transition Condition(1)(2)(3)(4) | Action |
---|---|---|---|
IDLE | Keep IDLE status
|
||
INIT | RES == false AND ENB is on rising edge | ||
INIT | Parameter validation
|
||
IDLE | ERR_ID != 0 OR STEP == 0 | Set ENB = false | |
CONF | ERR_ID == 0 AND STEP != 0 | ||
CONF | Determine the profile with the configured parameters | ||
IDLE | TST == true | Set the value of VelEnd back to the value of cfg.VelStart | |
BUSY | TST == false | ||
BUSY | Produce the profile
|
||
IDLE | RES == true OR ENB == false OR DON == true | Set ENB = false | |
HALT | VelEnd changed during profile | ||
HALT | Reduce AccRef to 0. Update AccRef, JrkRef at each sample time. Prepare to smoothly move to the new VelEnd. | ||
INIT | AccRef == 0 |