Hello everyone,
I have developed motor drive model in PLECS standalone, I have same model in MATLAB and tried to duplicate into PELCS standalone.
The model is not perfect not is it tuned, but I want to see if it is atleast working or not. I have provided a step speed function, and after one second, the error shows " The current through inductor [3-phase inverter/Perm.-Magnet SM/Electrical model/Voltage behind reactance/L:1](component:G:/Hassan Msc Research Files One Drive/PLECS/3-phase inverter.plecs/Perm.-Magnet SM/Electrical model/Voltage behind reactance/L) is forced to jump from 0.0288608 to 0."
How do I solve this issue to get on with other requirements, i had same issue with MATLAB blockset but couldn’t follow up.
Thank you in advance for your help
There are a few resources on this error message including several other forum posts and an FAQ on the Plexim website.
Normally state discontinuities with large errors (e.g. inductor current from 10A → 0A) point to the issues described in the FAQ on the website. However, state discontinuities with small errors - as is the case in your model - can be due to solver accuracy.
If the state value is not close to zero, then the “Relative Tolerance” setting is the value I would typically adjust. If the state value is very close to zero (as is the case in your model) then I would change the “Absolute Tolerance” from “auto” to a small value (e.g. 1e-3, but depends on the minimum reasonable state value) and adjust this setting from there.
Lastly, your IGBTs do not have any parallel diodes and so you if you have dead-time in your PWM signals you will likely get state-discontinuity errors. You may also want to ensure the “Model” parameter for the PMSM is configured as “Voltage Behind Reactance” model when you have dead-time.