Statistics for Design And Implementation Of A Plc-Based Automatic Power Changeover System With Phase Failure Detection