There is a circuit in the inverter that senses another voltage source and if present turns the inverter portion off but leaves the battery charger active. It sounds like something is wrong with the sensor circuit or the relay. Xantrex is a good inverter perhaps you got a bad unit. Have you plugged into a campground with voltage problems??
2007 Newmar DSDP 4023
Discovery is seeing what everyone else has seen and thinking what no one else has thought.
If you want to see what man made go East; if you want to see what God made go West.