In normal conditions, the microgrid system operates in any mode inside the inner loop. The outer loop is the emergency operation mode, which is caused by various reasons, such as internal/external faults, unscheduled outages, or voltage/frequency transients.