The XW is a very versatile inverter. I have not found anything that it cannot do with a little thought. The XW;s AC1 L1, L2 inputs will work for import or export and for charging the batteries as long as AC1 is available. AC2 L1, L2 are for generator input and are complete isolated from the AC1 L1,L2 inputs. It also has ACOut L1, L2. This XW also have the ability to blend AC2 (generator) with with inverter to be able to run larger loads than the generator can support along. This is one smart little puppy. When the batteries get full from solar and the solar is still more than the ACout can use then the unit will export to the grid thru AC1 L1,L2 if available if it is programmed to do so.