How to get data from Modbus-TCP device?

Hi
I'm new to Node-RED and I'm trying to get data from a Modbus-TCP device.

This Modbus-TCP device is a Janitza UMG 509 energy meter. It is directly connected to the network.
I tried to use the 'Modbus-Read' node of node-red-contrib-modbus (5.31.0).

So I created a server with the following data:

  • Type: TCP
  • Host: IP of the device
  • Port: 502
  • TCP Type: DEFAULT
  • Unit-Id: 0
  • Timeout (ms): 1000

On the settings itself I tried the following data:

  • Unit-Id: 0
  • FC: FC3: Read Holding Registers
  • Address: 19000
  • Quantity: 2
  • Poll Rate: 5 seconds
  • Server: the server I have describe above

From the node I get the following debug message:

msg : error
"Error: Modbus exception 4: Slave device failure (device reports internal error)"

This Janitza device acts also as TCP-RS485-gateway. On the RS485 bus other Janitza devices are connected. Every of these devices has its own unit id. Reading data from these devices is working.
Based on that I can say that the general server and network configuration is fine.

Can someone help me?