PL.Modbus
2.4.1
dotnet add package PL.Modbus --version 2.4.1
NuGet\Install-Package PL.Modbus -Version 2.4.1
<PackageReference Include="PL.Modbus" Version="2.4.1" />
paket add PL.Modbus --version 2.4.1
#r "nuget: PL.Modbus, 2.4.1"
// Install PL.Modbus as a Cake Addin #addin nuget:?package=PL.Modbus&version=2.4.1 // Install PL.Modbus as a Cake Tool #tool nuget:?package=PL.Modbus&version=2.4.1
Modbus Client Library for .NET
Yet another Modbus client library for .NET.
Features
- RTU, ASCII and TCP protocols via serial or network connection.
- Implemented read/write functions (Modbus function codes):
- Read Coils / Discrete Inputs / Holding Registers / Input Registers (1/2/3/4)
- Write Single Coil / Holding Register (5/6)
- Write Multiple Coils / Holding Registers (15/16)
- Splitting single read/write requests into multiple requests with valid number of memory elements.
- Automatic reconnection to device.
- Support of multiple devices on the same serial port (lock (SerialPort)).
- Possibility of other Modbus function code (including user-defined) implementation.
Not implemented and user-defined Modbus function codes
All implemented Read/Write methods internally use PL.Modbus.Client.Command
method.
For Modbus TCP and Modbus ASCII this method can be used with any function code, since these protocols allow to receive responce data without knowing its size beforehand. For Modbus RTU descendant class should be created with overriden PL.Modbus.Client.ReadRtuData
method.
Examples
ModbusClient
Simple Modbus client application.
ModbusSpeedTest
Tests client-server connection and measures transaction rate.
ModbusMemoryTest
Tests Modbus server by writing to random memory locations, reading back and comparing data.
Documentation
Modbus (Wikipedia)
Modbus Protocol Specification
Modbus Serial Line Protocol and Implementation Guide
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.IO.Ports (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PL.Modbus:
Package | Downloads |
---|---|
PL.BlackBox
BlackBox library for .NET |
GitHub repositories
This package is not used by any popular GitHub repositories.
Fixed
- Client.Read byteCount type.