AMWD.Protocols.Modbus.Serial 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.Serial.
Packages | Downloads |
---|---|
AMWD.Protocols.Modbus.Proxy
Plugging Modbus Servers and Clients together to create Modbus Proxies.
|
4 |
.NET 6.0
- AMWD.Protocols.Modbus.Common (>= 0.1.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.1)
- System.IO.Ports (>= 6.0.0)
.NET Standard 2.0
- AMWD.Protocols.Modbus.Common (>= 0.1.0)
- Microsoft.Extensions.Logging.Abstractions (>= 3.1.27)
- System.IO.Ports (>= 4.7.0)
Version | Downloads | Last updated |
---|---|---|
0.2.1-6 | 5 | 20.04.2024 |
0.2.1-5 | 6 | 20.04.2024 |
0.2.1-3 | 3 | 20.04.2024 |
0.2.0 | 8 | 02.04.2024 |
0.1.0 | 134 | 28.08.2022 |
0.0.1-19 | 7 | 02.04.2024 |
0.0.1-18 | 7 | 02.04.2024 |
0.0.1-17 | 8 | 02.04.2024 |
0.0.1-14 | 5 | 31.03.2024 |
0.0.1-13 | 8 | 28.03.2024 |
0.0.1-12 | 7 | 28.03.2024 |
0.0.1-11 | 6 | 27.03.2024 |
0.0.1-10 | 5 | 26.03.2024 |
0.0.1-9 | 2 | 25.03.2024 |
0.0.1-7 | 7 | 09.03.2024 |
0.0.1-6 | 10 | 09.03.2024 |