Hi...i am a new user here. As per my experience you should have the switch between the charge controller and the battery. Because when disconnecting power the solar needs to be disconnected first. When the solar panels are disconnected, the charge controller will still be on because it has power...