Here is a continental UPS power line diagram, when incoming utility power drops below or surges above safe voltage levels, the UPS switches to DC battery power and then inverts it to AC power to run connected equipment. Click the diagram to edit it directly or you can start from scratch in EdrawMax Online.