

Once you open it, you can go to MySample project that contains many examples on how to read and write using different devices. NModbus contains many samples included in the source code. Once you extract the sources you can open the solution file, located in the src folder. The old library of nModbus is here you can get the latest sources. The old library on google code has bugs (check comments for more informations), please consider using either the new NModbus4 library, or you can download the old code from this repository.

You can also download from NuGet by searching for NModbus4. The new NModbus4 library on GitHub, but to compile it you need Visual Studio 2015, due to some C# 6 features used. NModbus manages both Modbus TCP and RTU protocols, it’s well tested and sources are available. The C# library I use the most when I need Modbus communication between pc and plcs or other components is nModbus. A Modbus TCP Client in C# with another library.Using sniffer tools to debug the transmission.Other useful resources that you can find in this post are: In this post you will find how to use nModbus with C# and how to create a simulation enviroment to test your program with Modbus.
