Sensorless vector control for permanent magnetic
synchronous motor - 1shunt current detection
Table 3-12 List of Functions Executed in Speed Control Interrupt(2/2)
File name
librm_motor_speed.a
R01AN6840EJ0100 Rev.1.00
May 23, 2023
Function name
rm_motor_speed_first_order_lpf
Input : (motor_speed_lpf_t *) p_lpf / First order LPF structure
(float) f4_omega / Natural frequency
(float) f4_ctrl_period / Control period
Output : None
rm_motor_speed_fluxwkn_set_vamax
Input : (motor_speed_flux_weakening_t *) p_fluxwkn / The pointer to
flux weakening structure
(float) f4_va_max / maximum magnitude of voltage vector
Output :None
rm_motor_speed_fluxwkn_run
Input : (motor_speed_flux_weakening_t *) p_fluxwkn / The pointer to
flux weakening structure
(float) f4_speed_rad / The electrical speed of motor
(const float *) p_f4_idq / The pointer to the measured current vector
in format d/q
(float *) p_f4_idq_ref / The pointer to the reference current vector in
format d/q
Output :None
For Renesas Flexible Motor Control Series
Process overview
First Order LPF
Sets the maximum
magnitude of voltage
vector
Executes the flux-
weakening module
Page 48 of 73