In a previous reply you said you needed it to be set up as Automatic Mains Fail so assumption was you knew what this meant. To achieve this, some means of detecting mains failure is required, usually a phase failure/undervolt relay, then the use of contactors to control the switching of the load...