Select Simulate > Generate Code to generate code. Load the file DRV8312 PMSM InstaSPIN Lab11 (F8069).psimsch from the PSIM folder examples\simcoder\f2806x Target\TI DRV8312 PMSM InstaSPIN Lab11. Connect the Anaheim BLDC motor BLY172S 24V 4000 to the DRV8312 EVM board. Connect a 24 Vdc power supply to the DRV8312 EVM board. Connect the computer to the F28069M controlcard. To generate code from the schematic with InstaSPIN control, and run code on the hardware to spin the motor: Insert the F28069M controlcard to the DIM100 connector of the DRV8312 EVM board.
After simulation is completed, display waveforms in SIMVIEW. Select Simulate > Run Simulation to run the simulation. Load the file DRV8312 PMSM InstaSPIN Lab11 (F28069).psimsch from the PSIM folder examples\pil\drv8312 PMSM InstaSPIN Lab11 (F28069). To run the simulation with InstaSPIN control: Insert the F28069M controlcard to the DIM100 connector of the DRV8312 EVM board. Quick Start Simulation and Code Generation of TI InstaSPIN Using DRV8312 EVM If you wish to run the examples described in this tutorial right away, follow the steps below. For further information on InstaSPIN functions, please refer to relevant TI documents. The TI DRV8312 EVM board with the F28069M controlcard is used to run the examples. This tutorial describes how the PIL InstaSPIN block is used for simulation and for auto code generation. F2802x DSP can be supported upon request. At the moment, only F2806x DSP is supported. This block can be used in general simulation or in a SimCoder circuit for auto code generation for DSP hardware. In PSIM, a block called PIL Block (InstaSPIN) is provided under Elements > Control > PIL Module is provided to implement the functions of InstaSPIN s FAST block.
The core of the InstaSPIN algorithm is a FAST estimator that performs parameter identifications and calculates flux, angle, speed, and torque based on motor phase voltages and currents and dc bus voltage. With this capability, PSIM provides the easiest way for users to evaluate the performance of a motor control algorithm with InstaSPIN. 2 PSIM supports TI s InstaSPIN FOC sensorless motor control algorithm in simulation and SimCoder auto code generation.