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
A great example of the use for SpinTAC Velocity Plan is in a washing machine. A washing machine has a complex motion sequence. In this example, SpinTAC Velocity Plan interfaces to sensors and valves, and has conditional state transitions. This entire motion sequence can be easily implemented in SpinTAC Velocity Plan. Figure 14-5 shows the state transition map for the washing machine.
The washing machine has five stages: Idle, Fill, Wash, Drain, and Dry.
The washing machine stays in idle state until the start button is pushed. Once the start button is pressed, it will enter the fill stage and the agitation counter is set to the configured value, representing the number of agitation cycles to be performed.
Upon entering the fill stage, the water fill valve is open. A water level sensor is used to indicate when the tub is full of water. When the water is filled, the water fill valve is closed and the application goes into the wash stage.
In the wash stage, the motor agitates between a positive speed and a negative speed until the agitation counter reaches 0. Then it goes into drain stage.
When entering the drain stage, the drain valve is opened. A drain sensor is used to indicate when the water is drained. When the water is finished draining, the drain valve is turned closed, and it enters the dry stage.
In dry stage, the motor spins at a certain speed for a configured time. Once the time elapses, it will enter idle stage. At this point the operation is finished.
Figure 14-6 describes the motor velocity profile during the washing machine motion sequence. The motor will wait at 0 RPM until the fill stage is complete. At this point it will go through 20 agitation cycles oscillating between 250 RPM and -250 RPM. After the 20 agitations, the motor will return to 0 RPM until the water has finished draining from the washing machine. Upon exiting the drain stage, the motor will spin up to 2000 RPM in order to dry the clothes. At the conclusion of the dry stage, the motor will return to 0 RPM and the idle state.