Model boundary: this tool injects a constant electrical-angle error Δθ into the Park/inverse-Park transforms and steps a discrete PI/PWM current loop. It does not simulate resolver carrier excitation, analog sine/cosine channels, demodulation electronics or tracking-loop dynamics.
PMSM resolver angle error · PWM step debugger
Continuous PMSM (RK4) with a discrete current controller that samples and zero-order-holds its voltage for one PWM period. Step, or free-run for a chosen duration; drag cursors on the plots to read values.
period 0 t = 0.000 ms
Command
A
A
Operating point
rpm
°
ωm=104.7 rad/s ωe=p·ωm=314.2 rad/s E=ωeψf=31.4 V
Machine
Ω
mH
mH
Wb
Imports R, Ld, Lq, pole pairs and switching frequency from this browser.
Controller & PWM
V/A
V/As
kHz
µs
Ts=100 µs · RK4 h≈2.00 µs ×50
s
Voltage±45 V
─u╌back-EMF╌ctrl d′/q′
true u_d=0.0 u_q=0.0 ctrl u_d′=0.0 u_q′=0.0 back-EMF E=0.0 · net q drive v_Lq=0.0 · net d drive v_Ld=0.0