How do the battery, inverters and solar panels work together?

Battery, inverters and panels