Is it allowable to have a 200amp service on a residential detached garage and then have a seperate sub panel powered from the main residence that would be controlled off of a back up generator and feeding the emergency circuits in the detached garage/apartment. This may have been discussed but I am wondering if there is code reference. Thanks