ym2k said:
Yup, i also thinking the idea to use seperate wires, but the thing is they want to save cost on wiring since they will be doing the wiring for the whole building and using a single battery to power up the whole building DC application during power failure.
The idea of using the same wire for AC230V or 12V is insane but just to show that it can be done because this is an electronic forum, I provide you with a schematic. I must stress that its a mal practice and against all engineering ethic to even try to provide power like that. Someone might get kill.
Here is how the circuit works. S1, S2, S3 and S4 are contacts of the relay RLY.
(1) When AC230V is present, DC is produced by C1, Diode bridge, zener D2 and C2. After C2 charges up, relay RLY operates. Operation of relay contacts S1,S2 parallel C3 to C2 and so C3 is also charges up to the zener voltage. The 12V application is isolated from the AC230V supply by relay contacts S3 and S4. This condition exists when AC230V is presented.
(2) When AC230V is lost, because of the charge on C2 & C3, relay does not drop out immediately. After sometime, relay drop out and the 12V application is connected to the Ac230V cable. Assuming the 12V is already there at the 230V cable, SCR Q1 will be triggered by charge on C3 and SCR will remain ON because of R3 supplying holding current. After C3 discharged, the triggering signal is gone.
(3) When "whoever" (and not under your control) decides to switch the 12V to AC230V, first he *must* disconnect 12V and then switch over to 230V. He/she cannot apply 230V to a 12V line. So when the 12V is removed, Q1 SCR turn OFF because the current gone. The SCR is what protect the 12V application from the incoming AC230V before the relay operates again to isolate the 12V application.