Quoted from ATS switch cabinet 1 and generator set, when there is an abnormality in the mains power supply, the generator set can be controlled to automatically start; When the mains power supply returns to normal, it automatically returns to the mains power supply, which can control the generator set to automatically shut down, thereby achieving rapid restoration and unmanned operation of the power supply system.