Hi, I'm using EMj04,08 (SPMSM ) & TMDSHVMTRPFCKIT v2.1 & HVPM_Sensored_Servo code.
I found a strange phenomenon while driving motor to create algorithm. attached code & CCS debug window.
I defined Vd&Vq below, because of pi_id,iq.out * base_vol = real Vd&Vq.
(I use base_vol 30V/sqrt(3) instead of 300V/sqrt(3), real DC bus voltage is 300V.)
Look at the debug window. Always SpeedRef = _IQ(0.33333)!
But!!!! vd&vq value, namely pi_id.out & pi_iq.out are different at same speed as shown below.
Theoretically, Vd = -wr*Lq*Iq to make Id = 0 in steady state!
Sometimes even D-axis PI controller out(Vd) is positive value!!!!!!!
why does this happen?
I think if SpeedRef is constant, whenever I run motor, pi controller out(vd,vq) should be always consistent.
Because I use Vd,Vq command to my algorithm, I have to solve this problem.
please answer detailed explanation!!