Closed 11v1 closed 4 years ago
According to Wikipedia, maximum message size is 256 Bytes and 123 registers for Modbus TCP:
Because the number of bytes for register values is 8-bit wide and maximum modbus message size is 256 bytes, only 125 registers for Modbus RTU and 123 registers for Modbus TCP can be read at once.
I'll check it later against the specification.
I found this explanation for different message size limits: http://wingpath.co.uk/docs/modtest/message_limits.html
This complies with the limits in the specification I used. So, you are right that up to 260 bytes are allowed per Modbus TCP message. I will update the code this weekend. Thanks for reporting!
I published version 1.4.1. Can you please test it? Hopefully this solves your issue.
I'll test it at Monday. Thanks a lot.
Looks like it works. Thanks again!
256 bytes is not enough to read all data. MBAP + PDU maximum size is 260 bytes.