# Dual active bridge-cf

**URL:** <https://forum.plexim.com/t/dual-active-bridge-cf/3180>\
**Category:** PLECS\
**Tags:** plecs\
**Created:** [June 23, 2026, 6:11am UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180 "2026-06-23T06:11:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbhishekArragunta](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@AbhishekArragunta](https://forum.plexim.com/u/AbhishekArragunta)\
**Post date:** [June 23, 2026, 6:11am UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/1 "2026-06-23T06:11:37Z")

</div>

[DAB.plecs](https://forum.plexim.com/uploads/short-url/a71xT335WLfQYvDk4fNppGJfpjR.plecs) (104.8 KB) i am using this Block to create phase shift but will need some different logic to achieve please suggest any changes can be made so that the Block can be modified to generate the pwm as per the image the simulation file is also attached

 ![image](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/2X/b/b874e07493ca0b0a08d9d6f04349325663e8f86e.png)

 ![image](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/2X/a/a9948673f39b8fb22b9ade197ed723e6631a1076.png)

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [June 23, 2026, 1:39pm UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/3 "2026-06-23T13:39:53Z")

</div>

Take a look at this generic Triple Phase Shift (TPS) block from [a previous forum post](https://forum.plexim.com/t/dual-phase-shift-of-dual-active-bridge-dab/2259/3). As the post notes - there can be different conventions for what the phase shift / input units are, so you’ll want to double check the model against your convention. In most cases the input data can be scaled to achieve the desired convention.

---

<div class="post-metadata">

**Author:** ![AbhishekArragunta](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@AbhishekArragunta](https://forum.plexim.com/u/AbhishekArragunta)\
**Post date:** [July 2, 2026, 11:08am UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/4 "2026-07-02T11:08:12Z")

</div>

Hi Byran

We have implemented the control but whenever we try to change the phase shift or change in duty cycle between the primary and secondary there is no proper power transfer.

[CURRENT FED DAB OPEN LOOP-02.plecs](https://forum.plexim.com/uploads/short-url/v0jZJw1RU9akbB416HYSW1mKTv9.plecs) (178.1 KB)

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [July 2, 2026, 1:51pm UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/5 "2026-07-02T13:51:43Z")

</div>

Two small tweaks in the attached model:

- The gate drive signal mapping wasn’t correct. The block outputs 8 gate drive signals that map from switches 1-8 directly.
- You had set the phase shift to 0.5 which is zero power transfer. The convention used for this block has maximum power transfer at 0.25 phase shift. I also set the the primary and secondary duty cycles (`dp` and `ds` in the model) to 1.

With those changes your model looks quite close to the desired output conditions.

[CURRENT FED DAB OPEN LOOP-02\_BL.plecs](https://forum.plexim.com/uploads/short-url/9Jt22GYrp8Ovx7ocP6Tw3d1TW8b.plecs) (119.3 KB)

---

<div class="post-metadata">

**Author:** ![AbhishekArragunta](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@AbhishekArragunta](https://forum.plexim.com/u/AbhishekArragunta)\
**Post date:** [July 2, 2026, 3:29pm UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/6 "2026-07-02T15:29:43Z")

</div>

Hi,

Could you please help me achieve the Input voltage range is 365V-925V to Output voltage 14V at 3.5kW.Even when i vary the duty cycle or phase shift the power changes drastically with the switching frequency 100khz or 150khz using the same model

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [July 2, 2026, 3:42pm UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/7 "2026-07-02T15:42:08Z")

</div>

This is a power electronics control and design question that is best left for you to analyze with PLECS.

---

<div class="post-metadata">

**Author:** ![AbhishekArragunta](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@AbhishekArragunta](https://forum.plexim.com/u/AbhishekArragunta)\
**Post date:** [July 2, 2026, 6:02pm UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/8 "2026-07-02T18:02:02Z")

</div>

Hi ,

Why are the dp and ds set to 1 can u please explain that

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [July 2, 2026, 8:27pm UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/9 "2026-07-02T20:27:18Z")

</div>

They reflect the D1 and D2 duty cycles in the waveforms from your original plot. They define the period where there is applied voltage on the primary (D1) or secondary (D2) winding. The range of values is from 1 to 0. A value of 1 means there is always applied voltage on the winding. As the value goes towards zero, then there is a longer zero-voltage interval.

---

<div class="post-metadata">

**Author:** ![AbhishekArragunta](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@AbhishekArragunta](https://forum.plexim.com/u/AbhishekArragunta)\
**Post date:** [July 6, 2026, 9:24am UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/10 "2026-07-06T09:24:37Z")

</div>

Can you help us here to write a script where we can modify the duty cycle and phase shift for different numbers like a parameter sweep and it tells us the output voltage for particular values in the sweep

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [July 6, 2026, 1:49pm UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/11 "2026-07-06T13:49:02Z")

</div>

If you start to write the script and hit a roadblock you are welcome to post your model and script to the forum for feedback. I will not write the script for you.

When writing a script the following resources will be very helpful:

- [Scripting](https://docs.plexim.com/plecs/latest/scripting/) chapter in the PLECS Documentation showing the scripting interface options and commands.
- [Buck Converter with Parameter Sweep](https://docs.plexim.com/plecs-demos/power-supplies/buck-converter-with-parameter-sweep/) demo model. Note you can open this demo and associated model and script files via the help browser in PLECS.
- [PLECS: XML-RPC Interface and Controller Design in Python](https://www.plexim.com/support/tutorials) tutorial. The application and controller design isn’t relevant, but the document elaborates on integrating PLECS and Python.

---

<div class="post-metadata">

**Author:** ![AbhishekArragunta](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@AbhishekArragunta](https://forum.plexim.com/u/AbhishekArragunta)\
**Post date:** [July 29, 2026, 11:05am UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/12 "2026-07-29T11:05:15Z")

</div>

![image](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/2X/7/7c0497a2ca383be3b514a1dde8f3e8957099bb78.png)

 ![image](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/2X/7/77042dbdb00d762d5dd96b7342e6c5b168491b20.png)Hi i wanted to understand how we can implement this equations which block can we be used to write the d(s) and phi(s) then it can be added in the control implementation block

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [August 10, 2026, 2:31pm UTC](https://forum.plexim.com/t/dual-active-bridge-cf/3180/13 "2026-08-10T14:31:14Z")

</div>

Hi Abhishek, my apologies for the delayed response while I was out of the office.

The equations are basic arithmetic. You can use basic blocks from the PLECS Library, such as the [Math](https://docs.plexim.com/plecs/latest/components-by-category/math/#component-math) function, sum, etc. A more compact implementation would use the [Function](https://docs.plexim.com/plecs/latest/components-by-category/function/#component-function) block.
