https://github.com/ricado-group/dotnet-modbus
A Modbus Communication Library for .NET 6+ and .NET Standard 2.0 Applications
https://github.com/ricado-group/dotnet-modbus
comms device modbus rtu
Last synced: 5 months ago
JSON representation
A Modbus Communication Library for .NET 6+ and .NET Standard 2.0 Applications
- Host: GitHub
- URL: https://github.com/ricado-group/dotnet-modbus
- Owner: ricado-group
- License: mit
- Created: 2021-01-20T10:31:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-08-12T02:32:47.000Z (10 months ago)
- Last Synced: 2025-09-27T06:22:40.612Z (8 months ago)
- Topics: comms, device, modbus, rtu
- Language: C#
- Homepage:
- Size: 88.9 KB
- Stars: 5
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RICADO.Modbus
A Modbus Communication Library for .NET 6+ and .NET Standard 2.0 Applications
## Sample usage
```csharp
using RICADO.Modbus;
using (ModbusRTUDevice device = new ModbusRTUDevice(1, ConnectionMethod.TCP, "10.1.4.205", 8000, 5000, 3))
{
await device.InitializeAsync(CancellationToken.None);
ReadRegistersResult data = await device.ReadHoldingRegistersAsync(2000, 7, CancellationToken.None);
foreach (var value in data.Values)
{
Console.Write(value);
}
}
```