Its looks like you grid is unstable, the grid voltage dropped dramatically to 170v.. please take a picture while measuring the grid input of the inverter.. and also measure the grid voltage of your main distribution panel..
To activate the gen port relay you must enable GRID SELL BACK and set GRID SELL BACK POWER min 0.1-25.5 kw.
Ac couple start soc 95% when battery soc fall below this setting the ac couple will start again. Turn on the gen relay
Ac couple stop soc 98% when the battery reach this settings the ac...
the max ac input is the max power that the inverter will pull from the grid without tripping the grid input breaker. For example if the grid input breaker is 125A*80%=100A*240=24kw.
if you use 200A leave it as default no limitation or 6553.5.