2023-02-18 04:03 AM
Hello everyone, How to get current speed of motor,useing speed_pos_fdbk.c ,i try to use the functions in fig2 SPD_GetElSpeedDpp but I don't Know how to get the control Period ,It is written in the comments to use the SPD_CalcElectricalAngle ,but i can't find it 。or is there another way to get current speed of motor。
Thank you very much
(fig1) motor Specification
(fig2)
2023-08-29 06:07 AM
We would like to sincerely apologize for the delay in replying to your post.
If your point is still relevant, all of the APIs are defined in the mc_api.[c,h] file.
To obtain the current average speed of the motor, use the following API: MC_GetMecSpeedAverageMotor1().
This API returns the most recent calculated average mechanical rotor speed, expressed in the unit specified by #SPEED_UNIT.
For instance, if RPM is the chosen unit, SPEED_UNIT should be defined as 60.