AMWD.Protocols.Modbus.Common 0.1.0

Modbus Protocol for .NET

Implements the Modbus communication protocol as .NET Standard library.

The first shot was made in 2018 - see on GitHub. This is the second try with a major UnitTest coverage and some community contributions right from the start.

Example

You can use the client without any deeper knowledge of the protocol itself.

string host = "modbus-device.local";
int port = 502;

using var client = new ModbusTcpClient(host, port);
await client.StartAsync(CancellationToken.None);

byte deviceId = 5;
ushort startAddress = 19000;
ushort count = 2;

var registers = await client.ReadHoldingRegistersAsync(deviceId, startAddress, count, CancellationToken.None);
float voltage = registers.GetSingle();

Console.WriteLine($"The voltage between L1 and N is: {voltage:N2}V");

For the people who already saw different devices: yes, it's a request to a Janitza device.

Documentation

The changelog is available here: CHANGELOG
A documentation can be found here: AM.WD Wiki

Sources

Contributors

hmarius, Luke092, maikebing, mishun

(ordered alphabetically ascending)


License

This library is released under the MIT License

Showing the top 20 packages that depend on AMWD.Protocols.Modbus.Common.

Packages Downloads
AMWD.Protocols.Modbus.Serial
Modbus over Serial line using the RTU protocol.
66
AMWD.Protocols.Modbus.Tcp
Modbus over Ethernet TCP.
65
AMWD.Protocols.Modbus.Serial
Modbus over Serial line using the RTU protocol.
48
AMWD.Protocols.Modbus.Tcp
Modbus over Ethernet TCP.
46
AMWD.Protocols.Modbus.Serial
Modbus over Serial line using the RTU protocol.
44
AMWD.Protocols.Modbus.Serial
Modbus over Serial line using the RTU protocol.
43
AMWD.Protocols.Modbus.Serial
Modbus over Serial line using the RTU protocol.
41
AMWD.Protocols.Modbus.Tcp
Modbus over Ethernet TCP.
41
AMWD.Protocols.Modbus.Serial
Modbus over Serial line using the RTU protocol.
40

.NET 6.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
0.1.0 66 28.08.2022
0.0.1-10 44 28.08.2022
0.0.1-9 43 25.08.2022
0.0.1-8 49 22.08.2022
0.0.1-5 48 20.08.2022
0.0.1-4 48 17.08.2022
0.0.1-3 49 17.08.2022
0.0.1-1 50 15.08.2022