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
An example for the use of SpinTAC Position Plan is a vending machine. In this example the vending machine rotates in a circle and will only vend one item at a time. The state transition map for this example is in Figure 14-7.
In this example the vending machine will display one item until the user presses the Forward Button (FwdButton). Once that button is detected the vending machine will advance one item and display the next item that is can vend.
When the user removes an item from the vending machine, the application will update that item’s inventory. When the inventory is reduced to zero, the vending machine will skip that state. If all item’s inventories are reduced to zero, the vending machine will return to the Init state and SpinTAC Position Plan will stop. This indicates that the vending machine needs to be refilled.
This example of SpinTAC Position Plan is implemented in Lab 13d, Motion Sequence Real World Example: Vending Machine.