RESEARCH ON GRID CONNECTED AND OFF GRID CONTROL