Hardware-in-the-Loop Simulation Model Error Issue

Dear Plexim Technical Support Team,
I have built a PLECS model of a three-phase four-stage cascaded power electronic transformer (PET) for hardware-in-the-loop (HIL) simulation. However, during offline simulation, the following error message frequently appears:

"Encountered 1001 consecutive zero-crossings caused by the components listed below.

Count : Component
1001 : ThreephaseDAB/RT-BOX/DAB11/Configurable Subsystem/Switched/IGBTD2

Consecutive zero-crossings slow down the simulation because they force the solver to make excessively small time steps.

To turn off this message, set the parameter “Max. number of consecutive zero-crossings” on the Diagnostics page of the Simulation Parameters dialog to 0."

How should I adjust my model?

I have another question: if I set the number of modules in the cascaded H-bridge module option to 4, how should I handle or adjust the DAB isolation stage to fulfill its original function?

The PET simulation model is shown below:

ThreephaseDAB.plecs (677.1 KB)

If you switch to the auto solver setting (to use a Non-stiff solver) the error goes away.

However, the real cause is there are many underlying control issues in your model.

The way you implemented the switching signals to the sub-cycle average full-bridges is incorrect. The signal should be between 0-1 for all gates representing the relative on-time of that switch over the interval. In your case these signals go from -10k to +10k.

(I was looking at the wrong signals. However the way you implemented it is odd and not real time optimized as you are generating the carrier waves on the RT Box which will limit resolution.)

You can see your DAB controller jumping all around and the PLL doesn’t lock due to high harmonics. The CHB cell voltages are all over and the current controller doesn’t work.

Overall I would go back to a basic model - and bring things up systematically. Check your LVDC regulation and CHB independently and validate they work before testing the full system model.