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.
Modbus TCP read error
-
seokgi
- Posts: 224
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 1:43 pm
- Has thanked: 8 times
- Been thanked: 8 times
Modbus TCP read error
- Attachments
-
- Hub-260302-24FJ512GA606-tcp-2.fcfx
- (24.44 KiB) Downloaded 109 times
-
BenR
- Matrix Staff
- Posts: 2178
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 594 times
- Been thanked: 781 times
Re: Modbus TCP read error
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel