Procedure for connecting solar power generation to the grid