DVCC - reduce charge current

If you are handy you might be able to use some of my code. I have a mix of AC grid tied solar and MPPTs. I have a problem where my battery is full in the morning so dump the MPPT power when the SOC is over 60%.