| 数据搜索系统,热门电子元器件搜索 |
|
AN2281 数据表(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2281 数据表(HTML) 23 Page - STMicroelectronics |
|
23 / 38 page ![]() AN2281 Getting started with the ST7FLITE35-based PMAC motor control system 23/38 Two different sets of compiler and linker options (Debug and Release) can be handled by the tool depending on the development stage. 6.4 How to set the library parameters to run a PMAC motor for the first time To run a 12V PMAC motor with the motor control system described in this document, you first need do some configuration to the software library. In the PMAC_Param.h header file, set the number of motor pole pairs in the command line #define POLES_PAIRS_NUMBER x Then, you need to find out the optimum phase angle (an oscilloscope with a current probe is necessary). To do this, you should: ● Enable the tuning of phase angle via the Pot2 potentiometer and set the minimum and maximum angle respectively at 0 and 360°: #define MIN_PHASE (u16) 0 //in 1/65535 unit 180° <=> 32768 #define MAX_PHASE (u16) 65535 //in 1/65535 unit 180° <=> 32768 ● Select open loop driving mode using this define: #define DRIVING_MODE OPEN_LOOP and setting the minimum and maximum voltages between 0% and 100%: #define MAX_VOLTAGE 255 #define MIN_VOLTAGE 0 ● Disable V/F curve limitation ● Disable the rotor alignment phase ● Configure the start-up phase parameters, initially disabling the alignment phase and fixing the ramp-up parameters as follows: #define START_SPEED 400 //in rpm #define START_UP_DURATION 500 // in msec #define START_VOLT 25 // in 1/255 unit #define FIN_VOLT 130 // in 1/255 unit ● Adjust potentiometer Pot1 to about 50% After you have made these settings, you should compile the software library and program the microcontroller. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |