I want to implement a transition in control strategy for a PMSM based on an external trigger (Like convergence of an estimator).
I believe that the best way to implement this is with a state-machine, where depending on certain triggers it would transition from one type of control to another.
However i can’t find an example file to work from as a starting point. (Ideally the oven example that’s being talked about in tutorials, but surprisingly hard to locate).
Could someone point me to the right example to serve as a starting point ?
Hi Srinath,
The best way to start learning about the state machine block is following the tutorial here titled “PLECS: Building a Modulator with the Finite State-Machine Block”.
There are a couple of demo models that use the state machine block in the demo model library – “Buck Converter with Constant On-Time Control” and “Z-Source Inverter”.
Also, I attached the oven control example that you mentioned here.Hope this helps.Regards,Manu
OvenControl.plecs (22.9 KB)
Thanks Manu.
I can use this simple example as a reference. The video on the website, is not that well presented IMO.
It talks too much about buttons and window resizing etc and very little on the topic.
Hi Srinath,
Maybe refer to the pdf in that case-- here.
Regards,Manu