Open chrisdutz opened 3 months ago
So it seems that the limitations are:
Max 2000 coils in one request (Page 11) Max 125 registers in one request (Page 15)
So luckily I need to implement this feature for my $job ;-) Making good progress, however I'm only going to implement this for reading ... writing would possibly open pandora's box with evil issues, which I do not want to do.
So this is the first rough draft ... now I gotta add a bit more of testing to everything ... but more than 10 times faster reads is quite an optimization ;-)
Excellent work, I will run tests, those times are excellent!
Ok ... the changes are merged ... now I think it makes sense to wait another week for some feedback.
What would you like to happen?
The modbus spec seems to provide limits for the size of packets. However in contrast to the other protocols, is this limit not related to the size of the packet, but by the number of registers/coils.
Please refer to: https://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf, page: 11
It should be simple to implement a query-optimizer for Modbus to automatically handle this. The Siemens S7 QueryOptimizer might help with inspiration.
Programming Languages
Protocols