实例介绍
ST FOC 5.0说明书 配合 开源库 https://download.csdn.net/download/hxinstar/10322042 使用
UM2374 List of tables List of tables Table 1. List of acronyms Table 2 Document revision history ..23 UM2374 Rey 1 3/24 List of figures UM2374 List of figures Figure 1. ST MC Workbench -Icon and installation folder tree Figure 2. ST MC Workbench-GUI expanded top view Figure 3. ST Motor Profiler-GUI 889 Figure 5. ST Motor Profiler-SM-PMSM parameters example Figure 4. ST Motor Profiler- Hardware setup list examples 10 11 Figure 6. ST Motor Profiler-l-PMSM parameters example Figure 7. ST Motor Profiler-Measurement results 12 Figure 8. ST Motor Profiler-Save window 13 Figure 9. ST MC Workbench - New Project window 14 Figure 10. ST MC Workbench -New Project Info window 14 Figure 11. ST MC Workbench -Project Settings 15 Figure 12. ST MC Workbench-Project Settings window .15 Figure 13. ST MC Workbench -Project generation button 16 Figure 14. ST MC Workbench -Workspace selection Figure 15. ST MC Workbench -Project generation build info Figure19. ST MC Workbench- Use of the motor control and monitoring.∴、∴,"…,,∴…….17 Figure 16. IDE-MC Project view example 18 Figure 17. STMC Workbench-Motor monitoring button .19 Figure 18. ST MC Workbench -Motor monitoring GUI 20 4/24 UM2374 Rey 1 / UM2374 General information General information The Mc sDK is used for the development of motor-control applications running on STM32 32-bit microcontrollers based on the arm Cortex-M processor Table 1 presents the definition of acronyms that are relevant for a better understanding of this document Table 1. List of acronyms Acronym Description GUI Graphical user interface IDE Integrated development environment FOC Field-oriented control FW Firmware Motor control MC WB Motor control Workbench(STMicroelectronics sw tool) MP Motor Profiler(STMicroelectronics software tool) PMSM Permanent-magnet synchronous motor PWM Pulse-width modulation SDK Software development kit VC Vector control More information about ST MC Workbench is provided in the stm32 motor control SDK v5.0toolsusermanual(um2380)availableatwww.st.com arm UM2374 Rey 1 5/24 Motor control ecosystem setup UM2374 2 Motor control ecosystem setup A suitable ST Motor Control ecosystem environment includes A PC running the needed Mc software tools A third-party IDE a third-party ANSI C-compiler A JTAG/SWD interface for debugging and programming An STMicroelectronics application board with one of the STM32 microcontrollers supported. It drives the power stage and features PWM outputs to gate driver ADC channels to measure currents DC bus voltage A three-phase PMsM motol · A power supply Refer to the STM32 motor control software development kit(Mc sDk data brief(DB3548) atwww.st.comandtothereleasenoteformoredetails 2.1 Software tool setup The STMicroelectronics motor-control ecosystem runs on a pc with Windows7 The following Pc software tools are correctly installed ST MC Workbench (v5.0.0 or later) STM32CubeMX(v4 24.0 or later) ST-LINK/2(v4.0.0 or later) Any supported IDE IAR Embedded Workbench@ for Arm(v7.80.4 Keil MDK tools (v5.24.2 or later) Ac6 System Workbench(v2.3.0 or later)(a) Refer to the respective user manuals for proper installation. STMicroelectronics documents areavailablefromtheinternetsiteatwwwst.com STM32 motor control SDK v5.0 tools user manual (UM2380 STM32 CubeMX for STM32 configuration and initialization c code generation user manual (UM1718) STM32 ST-LINK utility software description user manual(UM0892) The AC6 tool framework is not supported in SDK v5.0 but in later versions 6/24 UM2374 Rey 1 / UM2374 Motor control ecosystem setup 22 Hardware setup The connection of the STMicroelectronics application board to the pc requires a USB Type-A connector. Refer to the description of the application board for details on the USB cable A dedicated description card is delivered with each STMicroelectronics application board for proper installation For more details, refer to the user manual of the board available at www.st.com The selected hardware can be one of the three setups · The complete MC Kit One of the complete inverter boards Any STM32 evaluation board combined with one of the ST evaluation power stages that include the mc connector UM2374 Rey 1 7/24 Getting Started UM2374 3 Getting Started Warning: Check that the board is correctly configured for the motor control application and supplied with the expected input voltage Note Refer to the user manual of the related hardware to setup the correct configuration, voltage range, serial communication capabilities, and programming/debugging interface 3.1 Hardware connection Connect a uSb cable between the pc and the stmicroelectronics application board and the JTAG/SWD programming cable if it is different from the USB cable 3.2 Motor profiling Launch the ST MC Workbench software tool either by clicking on its icon running it directly from the installation folder tree Both ways of launching the ST MC Workbench are illustrated in Figure 1 Figure 1. ST MC Workbench- Icon and installation folder tree I STMicroelectrorics 感 FOC SDK Lv.3.0 Motor Control v500 WorkBench ST Motor Control Workbench d ST Motor profiler en the st motor profiler tool either by Using its dedicated button in the St Mc Workbench GUl as illustrated in Figure 2 Running it directly from the installation folder tree as illustrated in Figure 1 Figure 2. ST MC Workbench-GUl expanded top view File Tools Help Documet ta ion New Project Load Project 4 About Help Motor Profil RcGert ProJEcts 己tdbr sDR power board 8/24 UM2374 Rey 1 / UM2374 Getting Started Click on the Select Boards button to display the list of supported boards as shown on Figure 3 and select the STMicroelectronics application board setup. Figure 4 on page 10 presents examples from this list Note The ST Motor Profiler tool may be used only with ST hardware in the list of supported setups. Figure 3. ST Motor Profiler-GUI 2 ST Motor Profile. l:e augmented Motor Profilers Pole pairs Pe row to detec beed and Current /mits MaκSpet1600FPM n7 Select Board ∧pk02530pk Magnetic: SM-PMSN○-NSM MechanIcal mode l O Cen Electrical model OW000 UM2374 Rey 1 9/24 Getting Started UM2374 Figure 4. ST Motor Profiler-Hardware setup list examples E ST Motor Profi Y Hideabsolete board e arch Control board by nar Se arch power boac bv nare Control board ower Board x Cancel Hide boards with warning NUCLEO-F302R8 X-NUCLEO-HMOTM1 3sh NUCLEO-F302R8 X-NUCLEO-HMOBM1 3sh T2F302R8T6 L6230PD STM32F302R8T6 STL22ON6FT ●Acf 8m:m3 SELNRV2 Emi ol connector C Product Web Page G Product Web Page C Product Web Page C Product Web Page NUCLEO-F303RE STEVAL-IPMO5F 3Sh NUCLEO.F303RE STEVAL-IPM108 3sh ●Aiv 命Ativ ● Ac liv Sn Ngor ombre I connector ST-LINKV2 C Product Web Page C Product Web Page C Product Web Page C Product Web Page Click on the sTmicroelectronics hardware setup to select it and configure the st motor Profiler tool As an example, Figure 4 shows the selection of the P-NUCLEO-IHM001 motor control Nucleo pack with NucLEo-F302R8 and X-NUCLEO-IHMO7M1 After hardware setup selection, fill in the parameter fields with the motor information The number of pole pairs of the motor(mandatory field The Max Speed of the motor(optional field) by default, the st Motor Profiler tool searches for the maximum allowed speed matching the motor and the hardware setup used The Max Current allowed by the motor(optional field) By default, it is the maximum peak current deliverable by the hardware setup The nominal dC bus voltage used by the hardware setup(optional field) By default, it is the power supply stage as either the bus voltage for low voltage applications(DC voltage), or the RMs value for high voltage application(Ac voltage) The magnetic built-in type(mandatory field) By default, the SM-PMSM is selected The Ld/Lq ratio(mandatory field only when l-PMSM built-in is selected as shown in Figure 6 on page 11 10/24 UM2374 Rey 1 / 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论