STTech.BytesIO.Modbus 3.0.2-beta0324

This is a prerelease version of STTech.BytesIO.Modbus.
dotnet add package STTech.BytesIO.Modbus --version 3.0.2-beta0324
                    
NuGet\Install-Package STTech.BytesIO.Modbus -Version 3.0.2-beta0324
                    
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="STTech.BytesIO.Modbus" Version="3.0.2-beta0324" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="STTech.BytesIO.Modbus" Version="3.0.2-beta0324" />
                    
Directory.Packages.props
<PackageReference Include="STTech.BytesIO.Modbus" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add STTech.BytesIO.Modbus --version 3.0.2-beta0324
                    
#r "nuget: STTech.BytesIO.Modbus, 3.0.2-beta0324"
                    
#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.
#:package STTech.BytesIO.Modbus@3.0.2-beta0324
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=STTech.BytesIO.Modbus&version=3.0.2-beta0324&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=STTech.BytesIO.Modbus&version=3.0.2-beta0324&prerelease
                    
Install as a Cake Tool

STTech.BytesIO.Modbus

STTech.BytesIO.Modbus 是一个基于 STTech.BytesIO 核心架构实现的全方位 Modbus 协议库。它为提供了统一且易用的接口来处理 Modbus RTU、TCP 及 ASCII 通信。

✨ 特性 (Features)

  • 全面协议支持: 覆盖 Modbus RTU, Modbus TCP, Modbus ASCII。
  • 标准功能码:
    • ReadCoilRegister (0x01)
    • ReadDiscreteInputRegister (0x02)
    • ReadHoldingRegister (0x03)
    • ReadInputRegister (0x04)
    • WriteSingleCoilRegister (0x05)
    • WriteSingleHoldingRegister (0x06)
    • WriteMultipleCoilRegisters (0x0F)
    • WriteMultipleHoldingRegisters (0x10)
  • 灵活的传输层: 可无缝切换集成的 TCP 或串口 (SerialPort) 传输。
  • 高性能解包: 内置 Modbus 专用解包器,确保数据帧的完整性与准确性。

🛠️ 安装 (Installation)

dotnet add package STTech.BytesIO.Modbus

📖 快速上手 (Quick Start)

// 创建 Modbus TCP 客户端
var client = new ModbusTcpClient { Host = "127.0.0.1", Port = 502 };
await client.ConnectAsync();

// 读取保持寄存器 (地址: 0, 长度: 10)
var response = await client.ReadHoldingRegisterAsync(0, 10);
if (response.IsSuccess) {
    var data = response.Data; // 处理读取到的字节数据
}

Powered by KarFans Industrial Co., LTD.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 is compatible. 
.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
3.0.2-beta0324 47 3/23/2026
2.14.6.2-alpha0330 239 3/30/2025
2.14.6.1-alpha0807 185 8/6/2024
2.14.6 565 2/29/2024
2.14.6-alpha0225 171 2/25/2024
2.14.5.1 252 1/9/2024
2.14.5 265 1/7/2024
2.14.4 239 12/24/2023
2.14.3.2-beta1215 229 12/20/2023
2.14.3.1-beta1214 206 12/13/2023
2.14.2.1-beta1205 197 12/4/2023
2.14.1-beta1128 204 11/28/2023
2.13.6.1-alpha1116 251 11/16/2023
2.12.9-Alpha0721 269 7/21/2023
2.11.3-beta0905 558 9/4/2022
2.11.2-beta0903 302 9/3/2022
2.11.1-beta0903 300 9/3/2022
2.11.0-beta0901 307 9/2/2022