Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

when should zero-order hold be adopted?

0 votes
758 views
hey, I am studying using plecs, and I meet a problem that I don't know when zero-order hold should be adopted,

the example is attached, and it can run without zero-order hold, but when ZOH is added, the waveforms is bad,

why? And can you find other questions in this simulations?

Thank you

best wishes
asked Jul 26, 2022 by fire (73 points)
It seems the example file was not correctly attached.  Could you edit your post to include it?
sorry, maybe my vpn has problems, and now it's been attached.

1 Answer

0 votes
 
Best answer

The main issue with the controller here is that your PI gains are not tuned to your system. 

To illustrate this, remove the ZOH block and compare the output of the PI block, the triangular carrier, and the PWM output.  You'll notice that the output of the PI regulator is changing faster than your PWM carrier.  The effective frequency looks 3-4x higher than your desired frequency of 20kHz.  The modulation output changes several times per switching period.  This is not desirable.

Adding the ZOH block prevents the error input of the PI regulator from changing faster than the switching frequency. The result is then the PI regulator output toggles between max and min duty cycle.

 

 

answered Jul 27, 2022 by Bryan Lieblick (1,905 points)
selected Jul 28, 2022 by fire
Thanks for your answer, and can you tell me how to modify the PI?
This is more of a general engineering question rather than a specific PLECS issue. There are many resources on the topic, so I suggest you do your own independent research or discuss with your colleagues.
...