PL.Modbus 2.4.0

dotnet add package PL.Modbus --version 2.4.0
NuGet\Install-Package PL.Modbus -Version 2.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PL.Modbus" Version="2.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PL.Modbus --version 2.4.0
#r "nuget: PL.Modbus, 2.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PL.Modbus as a Cake Addin
#addin nuget:?package=PL.Modbus&version=2.4.0

// Install PL.Modbus as a Cake Tool
#tool nuget:?package=PL.Modbus&version=2.4.0

Modbus Client Library for .NET

Yet another Modbus client library for .NET.

Features

  1. RTU, ASCII and TCP protocols via serial or network connection.
  2. 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)
  3. Splitting single read/write requests into multiple requests with valid number of memory elements.
  4. Automatic reconnection to device.
  5. Support of multiple devices on the same serial port (lock (SerialPort)).
  6. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.4.0 192 1/6/2024
2.3.1 83 1/6/2024
2.3.0 91 1/5/2024
2.2.2 242 9/20/2023
2.2.1 129 8/1/2023
2.2.0 326 11/12/2022
2.1.0 345 10/12/2022
2.0.1 357 10/11/2022
1.0.0 395 6/29/2022

Changed
- Made timeouts client properties.