The invention discloses a device for turning off mains supply and turning on UPS power supply when
lightning approaches, which comprises a power supply module, a guide rail module, a guide rail bracket, a sensitivity connector and a
control system, and is characterized in that the
control system comprises a computer end and a special connector, the special connector is electrically connected with a host of the computer end, and the computer end comprises
control software; one end of the special connector is connected with the guide rail support, the other end of the special connector is connected with the sensor, the sensor is arranged below the
electric field instrument, the
power module comprises a connector, the connector is a combined
power module and an RS-485-
USB adapter, the guide rail support comprises a first protrusion placing groove, and a pasting material is arranged on the first protrusion placing groove. The first protrusion placing groove is directly connected with the side face of the connector. The beneficial effects of the invention are that when the
lightning is monitored, the equipment is started to turn off the main power supply and start the UPS power supply, and when the
lightning early warning is released, the main power supply is recovered, thereby improving the safe power utilization of the
machine room, and avoiding the information safety and equipment loss caused by lightning disasters.