完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个IPMM,上面装有绝对位置旋转变压器。不幸的是,即使使用解码器也无法使用它 - 绝对位置为12-16位并行接口。这就是为什么我尝试使用2个绝缘电流传感器在无传感器模式下运行。
我尝试使用3.0和MCWB 1.2,但无法运行中断和串行通信。之后我尝试使用3.2和workbench 2.0并正确编译了FW。当尝试将MCWB 2.0连接到FW 3.2时,会出现一些错误,指出某些版本不兼容。我将FW 3.2(带有MCWB2.0生成的参数)与MCWB 1.2的串行通信连接起来。然后我让电机旋转几圈。 它的行为如下:首先它运行DC几毫秒,然后产生9个正弦波,频率为20 Hz,最大电压(PWM 0-100%)。之后电机停止并显示速度反馈错误。 在10或20次运行中的一次运行中,FW暂时停止电机上的DC并且与PC失去通信。我必须重置电路板,这样我才能重新工作。 请告诉我我做错了什么,所以我无法在无传感器模式下运行电机?电机参数非常关键吗? 还有什么不对,所以FW 3.2无法与MCWB 2.0通信? 以上来自于谷歌翻译 以下为原文 I have an IPMM with absolute position resolver mounted on it. Unfortunately i can not use it even with decoder - absolute position to 12-16 bit paralel interface. Thats why i try to run in sensorless modes with 2 insulated current sensors. I tried with 3.0 and MCWB 1.2 but wasnt able to run the interrupts and the serial communication. After that i tried with 3.2 and workbench 2.0 and the FW compiled correctly. When try to connect MCWB 2.0 to FW 3.2 there is an error that says some version incompatibilities. I connect FW 3.2 (with parameters generated from MCWB2.0) with serial communication to MCWB 1.2. Then i have the motor spinning just for few turns. It behaves like that: First it runs DC for few miliseconds and after that it generates 9 sine waves with frequency 20 Hz and maximum voltage (PWM 0-100%). After that the motor stops and displays Speed Feedback Error. In one of 10 or 20 runs the FW halts on the moment with the DC on the motor and looses commmunication with the PC. I have to reset the board so i can have it working again. Please tell me what i do wrong so i can not run the motor in sensorless mode? Is it very critical about motor parameters? Also what is wrong so FW 3.2 can not communicate to MCWB 2.0 ? |
|
相关推荐
1个回答
|
|
Ciao Philip
这看起来很奇怪。 FW lib和Workbench之间检查的兼容性表是这样的: FW Lib v3.0 - MC Work Bench 1.0.2 - > (没有实时通信) FW Lib v3.0.1 - MC Work Bench 1.2 - > (实时通信) FW Lib v3.2 - MC Work Bench 2.0 - > (实时通信) 我可以说'开箱即用''这个组合应该工作,所以我能给你的最好的建议是来到最初的FW卸载并重新安装MC lib。它应该工作。如果没有,我建议花一些时间阅读STM32 PMSM MC Library v3.2用户手册.pdf或STM32 PMSM MC Library v3.0.pdf快速入门(存在于v3.0安装文件夹中)。 然后回到你遇到的问题我认为在第一种情况下: 电机旋转几圈。 它的行为如下:首先它运行DC几毫秒,然后产生9个正弦波,频率为20 Hz,最大电压(PWM 0-100%)。之后电机停止并显示速度反馈错误。 这是一种“正常”的行为。当电动机已经以足够的速度进行布线时,无传感器算法开始工作,因此BEMF具有良好的幅度。为此,已经实施了启动程序。你看到的DC应该是对齐阶段,然后是加速阶段(你看到的20Hz和电流是你在MC Workbench中设置的那个 - > Drive Mamagement - > Startup block)。 如果您读取速度反馈错误(而不是RevUp失败),这意味着无传感器算法已经收敛了一段时间(通过RUN状态所需的时间),然后它失去了测量的可靠性。 首先,重要的是要了解电机是否已正确运行。如果电机只是在没有真正转动的情况下振动,则可以调整启动参数,降低加速度或增加电流。 如果电机确实运行,则重新输入以查看观察到的BEMF的波形以及观察到的电角度的波形。这可以使用FW的DAC功能轻松完成。 如果BEMF有噪声,最好的事情就是将观察者的G2参数除以2,4,8。如果BEMF是非常好的正弦形状但电角度不是一个好的三角形,那么你可以将PLL的KI除以2。 其他要检查的重点是无传感器算法的方差阈值或提高速度故障的检查次数(可以在MC工作台中设置的所有参数)以及验证启动的最低速度。 所以你有很多参数可供使用。只需使用明智的技术,每次尝试只做一次更改。 最后关于最后一个问题,我认为它可能是由HardFault(可能是一些堆栈溢出或类似)引起的。这不是正常的行为,如果你不修改代码就不会发生这种行为(但总是可能出现bug)。所以,如果你愿意,发布你的配置(.stmc文件),我会尝试重现这个问题。 再见 梁咏琪 以上来自于谷歌翻译 以下为原文 Ciao Philip It seems very strange. The table of checked compatibilities between FW lib and Workbench is this: FW Lib v3.0 - MC Work Bench 1.0.2 -> (No real time communication implemented) FW Lib v3.0.1 - MC Work Bench 1.2 -> (Real time communication implemented) FW Lib v3.2 - MC Work Bench 2.0 -> (Real time communication implemented) I can say that ''out of the box'' this combination shuould work so the best suggestion I can give to you is to come to the original FW disinstalling and reinstalling the MC lib. and it shall work. If not I suggest to spend some time to read the STM32 PMSM MC Library v3.2 User manual.pdf or the Quick Start for STM32 PMSM MC Library v3.0.pdf (present in the v3.0 installation folder). Then swithcing back to the problems you have I think that in the first case: the motor spinning just for few turns. It behaves like that: First it runs DC for few miliseconds and after that it generates 9 sine waves with frequency 20 Hz and maximum voltage (PWM 0-100%). After that the motor stops and displays Speed Feedback Error. It is a ''normal'' behaviour. The sensorless algortithm start to work just when the motor has been already bringed to a sufficient speed and so the BEMF have a good amplitude. To do that a start up procedure has been implemented. The DC you see shall be the allignment phase and after that there is the acceleration phase (the 20Hz and current that you see is the one that you have set in the MC Workbench -> Drive Mamagement -> Startup block). If you read the Speed Feedback Error (and not the RevUp Fails) this means that the sensorless algorithm has been converged for some times (the time required to pass in RUN state) and then it looses the reliability of the measurement. First of all it is important to understand if the motor has been proper bringed to run. If the motor just vibrate witout really turning it is the case to adjust the startup parameters lowering the accelleration or increasing the current supplied. If the motor runs really then is importatn to take a look at the waveform of the BEMF observed and at the waveform of the Electrical angle Observed. And this can be easily done using the DAC capabilities of the FW. If the BEMF is noisy the best thing is to divide by 2,4,8 the G2 parameter of the observer. While if the BEMF are pretty good sinusoidal shape but the Electrical angle is not a good triangle then you can divide by 2 the KI of the PLL. Other important point to check is the Variance threshold of the sensorless algorithm or the number of check befor to rise the speed fault (all parameter that you can set in the MC workbench) and also the minimum speed to validate the startup. So you have a lot of parameter to play with. Just use the wise techinque to make just one change for each try. Finally regarding the last issue I think that it can be caused by an HardFault (maybe some stack overflow or similar). It is not a normal behaviour and it shall not occurs if you don't modify the code (but bug is always possible). So, if you want, post your configuration (.stmc file) and I will try to reproduce the issue. Ciao Gigi |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2711 浏览 1 评论
3235 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1806 浏览 1 评论
3643 浏览 6 评论
6030 浏览 21 评论
1332浏览 4评论
206浏览 3评论
194浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
348浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
439浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 10:07 , Processed in 1.447200 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号