Microgrids are small-scale power grids that combine a renewable energy source with an energy storage system (ESS) to power loads. They are operated in connection with commercial power grids and operate independently in mountainous areas where commercial power grids are not provided. Microgrids are mainly classified into AC and DC types. Independently operating microgrids typically use diesel generators to supply power to customers. However, the use of distributed generators, such as solar power, wind turbines, and ESSs, is increasing worldwide as conventional fossil-fueled power systems face the problem of gradual depletion of resources. DC microgrids are being actively studied because they require only voltage control, and most distributed generators produce DC power. In particular, the voltage of the DC bus must be maintained using ESSs to maintain the voltage of the microgrids. In this study, we propose two stable power supplies, namely, MAIN ESS for voltage control in DC microgrids and SUB ESS for power supply of loads, and a stable operation by switching a voltage-controlled ESS unit at the MAIN ESS dropout. We demonstrate that DC microgrids can be modeled and operated stably throughout PSCAD/EMTDC.