nanoMODBUS icon indicating copy to clipboard operation
nanoMODBUS copied to clipboard

MODBUS standard reference

Open thisisnotmycorporateaccount opened this issue 6 months ago • 1 comments

This is an implementation of Modbus Application Protocol v1.1a, right? Could a reference to the standard that this library complies with be added in the README?

For example, FreeModbus references the standards that it implements in this page: https://www.embedded-experts.at/en/freemodbus/about/ .

This being included in the docs would be very helpful for my application. Also if there is a better place to ask this, please let me know! Thank you!

Yes, it is compliant with the Modbus Application Protocol v1.1a. Like any other library in the wild, it implements only a part of the specified function codes, though I think is one of the most complete ones out there. Regarding the transport layers, it implements the Modbus Messaging on TCP/IP Implementation Guide v1.0a, but not so sure about the completeness of Modbus over serial line specification 1.0. For sure it implements the RTU part, but it's missing ASCII and more importantly it does not implement the required time-based framing. This however is something that i never saw in actual devices, so, inspired by the same decision of the libmodbus author (https://groups.google.com/g/libmodbus/c/xZR66Gk_G2g/m/1_3MWFVx4hoJ) and constrained by having to let the user implement the transport read/write functions, i decided to leave it out

debevv avatar Jul 02 '25 18:07 debevv