Modbus TCP between ccgx and Siemens s7-1200 plc

Dear all,

I have al problem with the Modbut tcp connection between my color control (ccgx) and my siemens s7-1200plc. I don’t read any information from the ccgx.

In tia portal v18 i made a fc with the MB_Client. It looks like this:

The MB_Client has a DataBlock. It is as following:

On the Victron screen I get the following error message indicating that the unit ID is incorrect, even though it is set to 100.
ERROR"error processing function code 3, unit id 255, start addres 0, quantity 37, src 192.168.0.1: modbus addres 0 is not registered"

am i doing something wrong with the unit id or is there somthing else what i need to do?

I woud like to hear from someone who can help.
Kind regards,
Niels van Abeelen

Hello Niels van Abeelen,

you must enter the MB_Unit_ID (= 100) in the IDB, DB101 in your case.
The MBTCPClientRead.ID is only the connection reference in your PLC for this connection.
Also, you must choose an MB-Mode, for read I use 104.

What is the address 40807 I don’t find it in the Victron Modbus list.