Principle of solar grid-connected box