Page 1 of 1

Modbus TCP read error

Posted: Wed Apr 15, 2026 4:22 am
by seokgi
I want to aggregate multiple devices operating via Modbus RTU serial and transmit data using Modbus TCP.

MCU: PIC24FJ512GA606

LAN: W5500

When checking in Modbus POLL, it does not work at all and only repeats read error and write error. If I delete the listen (502) from network comm in the main directory, a message appears stating that the server has closed it.

Please help.

Re: Modbus TCP read error

Posted: Tue Apr 21, 2026 8:17 pm
by BenR
Hello,

Sorry for the delay in getting back to you.

The NetworkComms1::Listen component macro call in main is not required.

I'll see if I can replicate the problem with the server socket being closed as this shouldn't be happening.

You could try changing the Modbus TCP component property "Open and Close Socket" to No and see if that helps.