Principle of energy storage charging pile fault judgement device