ST UM0121 User Manual

UM0121
USER MANUAL
ControlBD-7FMC2
Reference Design Graphical User Interface (GUI)

INTRODUCTION

The Reference Design Kit Graphical User Interface (R DK-GUI) provides an easy way to configu re motor control system parameters. These parameters are related to the user’s motor type and model. The param­eters which can be configured include the following:
type of the motor driven;
3PH PMDC/AC or BLDC/AC ( trapezoidal driv en) , or – 3PH AC induction motor, or – 3PH PMAC or BLAC (sinusoidal driven)
number of the poles pairs of the motor; and
control method.
Other, more specific parameters include types of control (i.e., Ramp Up Acceleration Speed for the “3PH BLDC/AC trapezoidal” or Variable Frequency Control for the “3PH AC Induction” motor).
These settings reside in the .h header file used with the design kit software library (see Compiling the Stan-
dalone RDK Libraries, page 16). The .h file is automatically generated by the GUI and/or can be modified
manually by the user. To generate the firmware for the ST7MC microcontroller, the .h file and the software library must be compiled using the ec STDV7 v3.10 environments. Th e firmware is then downloaded into th e microcontroller memory (see
GENERATING THE BINARY CODE FILE (.S19) USING STVD7, page 14).
Some features of the GUI are disabled and c annot be used with t he RDK at this tim e, but they are left to illustrate the complete features of the microcontroller. If you want to use these features, please refer to the ST7MC Starter Kit at http://www.mcu.st.com.
Cosmic
or
Metrowerks
compiler in the ST Visual Develop v3.2.0 or Soft-
Rev 1.0
1/21November 2005
UM0121 - USER MANUAL
TABLE OF CONTENTS
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
RDK-GUI INSTALLATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
CONFIGURING THE STANDALONE RDK LIBRARIES USING THE RDK-GUI. . . . . . . . . . . . . . . . . .3
Motor Type Selection and Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Figure 1. Motor Type Selection Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3PH PMDC/AC or BLDC/AC (Trapezoidal Driven) Motor Initial Settings . . . . . . . . . . . . . . . . . . 4
Figure 2. 3PH PMDC/AC or BLDC/AC (Trapezoidal Driven) Motor Basic Parameter Window . . . . 5
3PH PMDC/AC or BLDC/AC (Trapezoidal Driven) Motor Advanced Settings . . . . . . . . . . . . . . 6
Figure 3. 3PH PMDC/AC or BLDC/AC (Trapezoidal Driven) Motor Advanced Settings Window. . . 7
3PH AC Induction Motor Initial Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 4. 3PH AC Induction Motor Basic Parameter Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3PH AC Induction Motor Advanced Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 5. 3PH AC Motor Advanced Settings Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3PH PMAC or BLAC (Sinusoidal Driven) Motor Initial Settings . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 6. 3PH PMAC or BLAC (Sinusoidal Driven) Motor Basic Parameter Window. . . . . . . . . . . 12
3PH PMAC or BLAC (Sinusoidal Driven) Motor Advanced Settings . . . . . . . . . . . . . . . . . . . . 13
Figure 7. 3PH PMAC or BLAC (Sinusoidal Driven) Motor Advanced Settings Window . . . . . . . . . 13
GENERATING THE BINARY CODE FILE (.S19) USING STVD7. . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Installing the Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Installing the Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4
Figure 8. ControlBD-7FMC2 Hardware Hookup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Compiling the Standalone RDK Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 1. Reference Kit GUI Subfolders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
PROGRAMMING THE ST7MC FIRMWARE USING Softec ST7 TOOLSET FOR Indart-STX. . . . . . 17
Figure 9. Option Configuration Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 10.Programming the Microprocessor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
PROGRAMMING THE FIRMWARE INTO THE ST7FMC USING THE DATABLAZE UTILITY. . . . . . 18
Table 2. Binary Files (.S19). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
REVISION HISTORY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 3. Document Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2/21
UM0121 - USER MANUAL

RDK-GU I INSTALL AT ION

To install th e PC software tool:
1. Put the companion CDROM into the PC.
2. Click on “Start”, then “Run”.
3. Browse the CDROM directory to locate the Setup executable (..\Setup\Setup.exe).
4. Double-click on the “Setup.exe” file.
5. Follow the instructions as they appear on the screen. Note: To i nstall and use the RDK-GUI PC software t ool it i s necessary to be logged onto the PC with
Administrator rights.

CONFIG URING THE STAND ALONE RDK LIBRA RIES USING THE RD K-GUI

Motor Typ e Se lect i on and Setup

After the Reference Design Kit Graphical User Interface (RKD-GUI) application is installed and it is started the first time, the Motor Type Selection dialog box appears (see Figure 1.). This sel ection defines the .h header files that will be generated to compile the firmware able to drive that kind of motor.
The three options are:
3PH PMDC/AC or BLDC/AC (trapezoidal driven),
3PH AC Induction Motor, and
3PH PMAC or BLAC (sinusoidal driven).

Figure 1. Mot or Type Selection Window

3/21
UM0121 - USER MANUAL

3PH PMDC/AC or BLDC/AC (Trapezoidal Driven) Motor Initial Settings

Clicking “Ok” after selecting the 3PH PMDC/AC or BLDC/AC (Trapezoidal) option opens the “3PH PMDC/ AC or BLDC/AC (Trapezoidal) - Sensorless - Voltage Mode” dial og box (see Figure 2., page 5). T his is where the basic PMDC/AC motor type parameters are set.
There are 8 groups of initial settings that are specified by the user: a. Pole Pairs - the number of Pole (North/South) Pairs in the motor b. Speed Regulation - the manner in which to run the motor, either Open Loop (without speed regulation)
or Closed Loop (with speed regulation)
c. Driving Mode
the motor driving mode, Current Mode or Voltage Mode
Note: The only option available in the Reference Design Kit is the “Voltage Mode.”
Power Board - the Power Board that is being used (e.g., PowerBD-300, PowerBD-1000,
PowerBD-3000)
Current Limitation - the maximum value of the current that can flow inside one (of three) phases
d. Detection Mode - the Back EMF (BEMF) Detection Mode (rotor position), either Sensorless, Hall
(Effect) Sensor 60°, or Hall (Effect) Sensor 120° Note: The only option available in the Reference Design Kit is the “Sensorless” mode.
e. Alignment Phase
the percentage of Final Duty Cycle applied at the end of alignment phase – the phase Alignment Duration in milliseconds (ms)
f. Acceleration Phase
the Mechanical Acceleration Rate of the rotor during the Ramp UP in RPMs (or Hz) per second
(alternate between RPM and Hz settings by clicking on the “RPM” button) – the Duty Cycle percentage during the Ramp Up – the Number of Consecutive Z events that occur before the microcontroller runs the motor in auto-
switched mode
g. g. Synchronous Speed
the Minimum target rotor frequency in closed loop, express in Hz of mechanical speed – the Maximum target rotor frequency in closed loop, express in HZ of mechanical speed
h. Run Settings
When the “From RV1” checkbox is selected, the, Duty Cycle value (or the target rotor speed in the case of closed loop regulation) is defined by the RV1 potentiometer.
If this box is unchecked, the following options are set by the user: – the Target Mechanical (rotor) Speed in RPMs (or Hz) if speed regulation is set to “Closed Loop”
(alternate between RPM and Hz settings by clicking on the “RPM” button) – the Duty Cycle percentage when the motor is run in “Open Loop” mode
Run Settings and Delay Coefficient When the “From RV2 - RV3” checkbox is selected the value of Rising Delay is defined by the RV2
potentiometer and the value of Falling Delay is defined by the RV3 potentiometer. If this box is unchecked, the following options are set by the user: – the B-EMF Rising Edge delay coefficient value (from 0 to 255) – the B-EMF Falling Edge delay coefficient value (from 0 to 255)
Run Settings and Closed Loop Parameter – the value of the Integral Coefficient (Ki) of the Proportional Integrative (PI) regulator – the value of the Proportional Coefficient (Kp) of the PI regulator – the regulation Sampling Time (in milliseconds)
i. The “Change Motor Type” button enables the user to change the motor type(see Figure 1., page 3).
4/21
UM0121 - USER MANUAL
j. The “Advanced Settings...” button enables the user to set the Advanced Parameters (see 3PH PMDC/
AC or BLDC/AC (Trapezoidal Driven) Motor Advanced Settings, page 6).
k. T he “Generate Source Files” button enables the user to generate the GUI configuration .h files. A
“Save” dialog window will appear, where the user can select in which folder to create the file as well
“Source”
as the
Libraries, page 16).

Figure 2. 3PH PMDC/AC or BLDC/AC (Trapezoidal Driven) Motor Basic Parameter Window

directory in the
software library
path (see C ompiling the Standalone RDK
5/21
UM0121 - USER MANUAL

3PH PMDC/AC or BLDC/AC (Trapezoidal Driven) Motor Advanced Settings

Clicking the “Advanced Settings...” button opens the “Advanced Settings” dialog box (see Figure
3., page 7). This is where the advanced PMDC/AC motor type parameters are set.
There are 6 groups of settings that are specified by the user: a. PWM (Pulse Width Modulation) Settings
Pulse Width Modulation (PWM) Frequency in kHz
Note: The only value available in the Reference Design Kit is the “12.5kHz.” – PWM Minimum Off Time in microseconds (µs) to detect the BEMF
Note: The only values available in the Reference Design Kit are “2.5µs” and “5µs.” – Complementary PWM Signal (Synchronous Rectification)
Note: This setting is disabled in the Reference Design Kit at this time.
b. Current Loop
Current Blanking Window - prevents erroneous sampling of the current after the PWM is turned
ON in milliseconds (ms) – Current Event Counter Filter - defines the number of counter events required to validate a current
limitation event
c. D and Z Sampling Parameters
Sampling Clock (ISCF) - sets the frequency of the sampling clock for D and Z events in kHz – Unused MCIx (Motor Control) Input - defines in which state the unused MCI input can be fixed,
either “Grounded” or “Hi-Z”
d. Zero Crossing
After D Blanking Window - set the blanking window after a D event in microseconds (µs) – Z Event Counter Filter - defines the number of counter events required to validate a Z event – Threshold Voltage - voltage set (in Volts) for Z detection
e. Demagnetization
After C Blanking Window - set the blanking window after a C event in microseconds (µs) – D Event Counter Filter - defines the number of counter events required to validate a D event – Demagnetize “All Hardware,” “Alternate Hardware/Software,” or “All Software”
Note: The only option available in the Reference Design GUI is the “Alternate Hardware/Software”
event.
Note: The Demagnetization Time option is not available in the Reference Design Kit at this time.
Note: The Force Duty Cycle During Demagnetization option is not available in the Reference
Design Kit at this time.
Note: The Duty Cycle option is not available in the Reference Design Kit at this time.
f. Stop Condition
Free Wheeling - after Stop, the motor will continue to spin freely
Note: Only the Free Wheeling Stop Condition is available in the Reference Design Kit at this time. – DC Current Braking
Note: This option is not available in the Reference Design Kit at this time.
Note: The Brake Level setting is not available in the Reference Design Kit at this time.
Note: The Brake Time setting is not available in the Reference Design Kit at this time.
6/21
UM0121 - USER MANUAL

Figure 3. 3PH PMDC/AC or BLDC/AC (Trapezoidal Driven) Motor Advanced Settings Window

7/21
Loading...
+ 14 hidden pages