I am studying about power supplies and I need some help with the following. I have a power supply with a 12 V DC output to power the lower power controller electronics. This power supply has two inputs as seen in the figure below. What components do I need to put in the box to make sure that the AC source is the main primary input and the DC source is only used when the AC source is not available?
Will a diode-based ORing circuit help for such high power levels? Or are there alternate ways that are better than the diode-based ORing circuit?
Updated: Thank you everyone for your valuable comments. I tried something on MATLAB (see following pictures) and I would like to know if this is practical and can actually be implemented. I used a breaker which will look at the ac voltage and determine if the 400 V DC should be used or not. If the AC voltage is close to zero, the breaker will close and 400 V will be injected into the system from the DC source.
Output Voltage waveform when ac voltage is turned off and the 400 V DC input voltage supplies power to the 12 V buck converter.