The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Hello,
I have been simulating the example "3-phase PWM Rectifier with Power Factor Correction" and it's able to track the DC setpoint and the currents look sinusoidal with a resistive load. I am trying to convert the blocks to the digital domain to be able to generate code, but am not getting similar results. I have attached some images showing the blocks that I've converted. Any help would be greatly appreciated.
Hi Esha,
you are likely encountering a few problems
s-domain to z-domain translation of coeffiecients
This example in the digital control example folder is a great resource
along with this conversion tool
That being said you are going to have problems as you will likely need to redo the control design entirely to account for digital delay and its impact on the phase margin! please see this tutorial video.
Also this tutorial video does a full 3 phase bidirectional converter you should find it very useful:
Also this webinar covers the entire code process for a 3 phase PFC and does verification with typhoon HIL.
Please follow up with additional questions
Thanks for the links Albert. I've been watching the webinar and you do an AC sweep when inverting power to tune the current controllers. Can I use the same approach, but tune the current controllers when rectifying power? I'm curious why you tuned them while inverting power.
It has been a while since I did that. I recall it was easier to do it that way to keep track of the sign convention for dq vs power flow vs input voltage phase vs theta generation/detection. The controllers will work in both direction the tricky part is the sign convention.
If you are manually tuning since you don't have smartctrl it might not matter. You just need to be careful to about your conversion.
additionally an different method to convert the controller, you need to find a crossover frequency that has at least 45 degree phase margin
- do a loop gain sweep of the analog system - this tells you phase margin at crossover
- do an open loop sweep of the digital and of the analog system - this gives you the difference in phase response between analog and digital
- compare the phase difference in open loop between analog and digital at the analog close loop system, this should give you the expected phase margin of the digital system. From what you describe this will likely be negative or very close to zero.
- if you make the "P" of the PI smaller directly you will just shift the cross frequency lower without impacting the phase response, so if there is a stable phase margin of the digital open loop at a frequency you might be able to just make the P smaller of the analog PI.
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…