User Guide

2010 Microchip Technology Inc. DS70640A-page 1
AN1292 Tuning Guide
This document provides a step-by-step procedure on running a motor with the
algorithm described in AN1292 Sensorless Field Oriented Control (FOC) for a
Permanent Magnet Synchronous Motor (PMSM) Using a PLL Estimator and Field
Weakening (FW)” (DS01292).
1.1 SETTING SOFTWARE PARAMETERS
All of the main configurable parameters are defined in the userparms.h file. The
adaptation of the parameters to the internal numerical format is done using the
tuning_params.xls Excel
®
spreadsheet (see Figure 1-1). This file is included with
the AN1292 archive file, which is available for download from the Microchip website
(www.microchip.com).
After entering the motor and hardware information into the spreadsheet, the calculated
parameters need to be entered into the userparms.h header file, as indicated by the
following steps.
FIGURE 1-1: tuning_params.xls
STEP 1 – Fill in the tuning_params.xls Excel spreadsheet with the following parameters:
a) Peak Voltage
Peak voltage represents the peak voltage on the DC link capacitors. It also
represents the DC voltage itself when a DC power supply is connected to the DC
link. If the DC link is supplied from a single-phase rectifier bridge, the AC peak
voltage is connected to the rectifier:
A 24 V
DC power supply was used in the demonstration software, so the Excel
spreadsheet contains the corresponding value. If you are using a high voltage
PMSM, peak voltage for 115 VAC is 163V.
V
ACpeak
V
ACrms
2=

Summary of content (14 pages)