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.
2024-10-21 12:50 PM
Hi @FouadB ,
When I use MC_GetMecSpeedReferenceMotor1(), I get the values up until 65, and then rolls over to 0 and starts fresh (even though the RPM is going north of 3500).
How, can I convert MC_GetMecSpeedReferenceMotor1() into RPM values.
2024-10-22 12:38 AM
Hi MMoha.10,
If you want to retrieve your reference speed directly in RPM units without any conversion, you can use the following API: MC_GetMecSpeedReferenceMotor1_F().
For the average mechanical rotor speed in RPM units, you can also use the following API: MC_GetAverageMecSpeedMotor1_F().
I hope this answers your question.
Regards