Multiplus II GX tcp control

I have a multiplus 2 GX and want to make a regulation in my home control system in Ess mode 3 via modbus tcp.
There is a connection and I can read all parameters on mb228.
According to the address list I can determine at address 37 whether my
battery charges from the grid or discharges to the grid.
Now it turns out that whatever I send to it (positive, negative or null), my battery is charged every time.
I have already found various things on the forum but I can’t figure out what is going wrong.

@Roel_R Have you managed to get it working?
I am also starting with the application and look for mp2 GX to have it controlled serial via an ESP32.
So, I am curious how far you managed to get.
Thanks.

Hello Viorel.

At the moment its running on my (own brew) home system on a PC with a PHP script.
They changed my intelligend electricity meter and now I can read every second my power use (before it was 10 seconds) and regulate my victron.
My hope is still to make it independant from this system, the esp’s are on my desk.
The way i use it now it was very easy to expermentate how to use and optimize the system.
The setup now is try to regulate the load from my main meter to 30W loading to prevengt spikes from switching equipment combined with my solar power instalation.
The idea of the esp’s are still alive, now i can make something fixed.

Dear Roel,

So actually you try to do same as me?

I’ve opened a topic.

But I have no inverter, no batteries yet. First study, buy after all gets clear.

@Roel_R It looks like one person on forum might have it up and running already.