I recently installed solar charge controller and solar panels to the inverter battery system. Here inverter also contains battery charger and other components.
So now instead of connecting inverter directly to grid power,it's connected to solar charge controller.
Inverter power plug is now connected to power output of solar charge controller. So solar charge controller decides when to give power to inverter for charging battery through grid power and when to charge battery from solar panels.
During day,solar charge controller mostly charges battery from solar panels when required solar is available and does not give power to inverter,so inverter stays on backup mode.In this way during day,solar panels charges battery and inverter discharges DC to AC providing power to appliances.
During night, solar charge controller gives power to inverter.So inverter is now in charging mode and charges battery while powering appliances directly from grid power and switching to discharging battery DC to AC when grid power is not available.
So how to stop battery charging process AC to DC through inverter from grid power in the inverter during night.
Inverter details : 12V 1450VA https://www.exideindustries.com/products/home-ups-system/exide-inverterz-gqp.aspx
Battery details : 200Ah tubular https://www.exideindustries.com/products/solar-batteries/tubular-solar-batteries.aspx
Solar panels : polycrystalline solar panels 600 Watts.
Solar charge controller details : Pulse wave modulation (pwm) 40 Amperes. Similar to this. https://www.amazon.in/UTL-Solar-Charge-Controller-Hybrid/dp/B073TJ1GR5/ref=mp_s_a_1_2?dchild=1&keywords=pwm+solar+controller+40&qid=1610387855&sr=8-2
Here is the daigram showing this setup.