HslCommunication 12.5.0

dotnet add package HslCommunication --version 12.5.0
                    
NuGet\Install-Package HslCommunication -Version 12.5.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="HslCommunication" Version="12.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HslCommunication" Version="12.5.0" />
                    
Directory.Packages.props
<PackageReference Include="HslCommunication" />
                    
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 HslCommunication --version 12.5.0
                    
#r "nuget: HslCommunication, 12.5.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.
#:package HslCommunication@12.5.0
                    
#: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=HslCommunication&version=12.5.0
                    
Install as a Cake Addin
#tool nuget:?package=HslCommunication&version=12.5.0
                    
Install as a Cake Tool

什么是HSL?  
     这是一个基于工业物联网,计算机通讯的架构实现,集成了工业软件开发的大部分的基础功能实现,比如三菱PLC通讯,西门子PLC通讯,欧姆龙PLC通讯,modbus通讯,AB PLC,基恩士PLC,台达PLC,松下PLC,GE PLC通讯等等,这些通讯全部进行了多语言的实现,当然,主打的 .net 库的功能集成还更加的强大,除此之外,还实现了跨程序,跨语言,跨平台的通讯,让你不再纠结于使用windows还是 linux系统,实现了日志功能,流水号生成功能,邮件发送功能,傅立叶变换功能,等等,将来会集成更多的工业环境常见功能的实现。  为了不让工业4.0只停留在口号上,万丈高楼平地起,而基石就是HSL。  

HSL能干什么?
     HSL能将工业生产现场的设备进行万物互联,将数据在底层自由的传输,无论是主动的还是被动的,无论你的采集系统是什么(通常采集系统为windows电脑,或是嵌入式系统,或是基于linux的盒子), 都可以实现数据的随意传输,方便快速实现强大,实时,高响应的健壮系统,无论您是构建C/S系统,还是B/S系统,还是C-B-S-A(集成桌面客户端,浏览器,安卓)混合系统,都是快速而且低成本的实现, 只要拥有了工业现场的一手数据,即可以搭建强大的实时监视功能的软件,生产报表及自动化排产的软件,各种工艺参数历史追踪的软件,基于数据经验的机器学习软件,以及全功能等等。  顺便聊聊 ,传统的工业模式都是采购现成的工业软件,包括上位机软件及MES系统,而忽视了自身的研发能力。对于一些行业标准的功能软件来说,比如ERP系统,财务软件,这些可以直接采购即可, 但是对于上位机及MES系统而言,各个企业的实际需求千差万别,难以有通用的场景,而目前的现状都是花大钱办小事,所以在此处,给出一条面向未来的模式实现:对于生产企业而言, 基于HSL开发企业级MES系统实现,作为数据的核心仓库中心,及业务逻辑处理中心;对于设备供应商而言,基于HSL开发上位机软件系统,快速且方便的将数据分发至客户的MES系统,进行协同工作。

     企业合作: 欢迎企业客户联系合作,包括开发新的协议支持,培训及指导上位机软件及MES系统的开发,指导工厂智能化升级改造及信息化团队建设。

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.  net9.0 was computed.  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 was computed.  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 net20 is compatible.  net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 is compatible.  net452 was computed.  net46 was computed.  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 (45)

Showing the top 5 NuGet packages that depend on HslCommunication:

Package Downloads
Facade.Modbus

Facade.Modbus

ZL.EdgeService

Description

Infrastructure.Plc.Omron

Description

FeatureDesignerNet

Major Mathematical Calculation Library For Platform Package

PLC通讯基础控件项目

该包主要用于工业自动化中 采用内置封装控件方便用户进行设计软件不需要过多的理会PLC等设备的需要 让开发人员注重于图形界面以及过程逻辑控制。 支持宏脚本以及宏任务运行 目前支持西门子的S7协议 三菱的3E帧 MOdbus TCP 发那科协议 教学视频请移步Github

GitHub repositories (8)

Showing the top 8 popular GitHub repositories that depend on HslCommunication:

Repository Stars
dathlin/HslCommunication
A very popular industrial Internet of Things communication plug-in. Using this dll can be very convenient, stable, and fast to obtain data from PLC equipment of multiple brands, and also supports redis, mqtt, websocket, etc., which can let your data on the network Free transmission, reducing enterprise development costs.
dathlin/ClientServerProject
一个C-S模版,该模版由三部分的程序组成,一个服务端运行的程序,一个客户端运行的程序,还有一个公共的组件,实现了基础的账户管理功能,版本控制,软件升级,公告管理,消息群发,共享文件上传下载,批量文件传送功能。具体的操作方法见演示就行。本项目的一个目标是:提供一个基础的中小型系统的C-S框架,客户端有三种模式,无缝集成访问,winform版本,wpf版本,asp.net mvc版本,方便企业进行中小型系统的二次开发和个人学习。同时网络组件方便的支持读写三菱和西门子PLC的数据,详细见Readme
iioter/iotgateway
An industrial IoTGateway with B/S architecture that enables bidirectional communication between industrial devices (southbound connections) and IoT platforms (northbound connections). It supports numerous industrial protocols, and can connect to various IoT cloud platforms.
dathlin/HslControlsDemo
HslControls控件库的使用demo,HslControls是一个工业物联网的控件库,基于C#开发,配套HslCommunication组件可以实现工业上位机软件的快速开发,支持常用的工业图形化控件,快速的集成界面开发。 主要包含了按钮,开关,进度条,信号灯,数码管,时钟,曲线显示控件,仪表盘控件,管道控件,瓶子控件,饼图控件,传送带控件,温度计控件,鼓风机控件,阀门控件,电池控件等等。
SmallRob/PLC-CommunTools
针对工业上位机的通讯测试工具类及实例。包含各类厂商的PLC协议及基础的TCP、串口通讯、IO口通讯等协议通讯功能的实现整合,努力完善中。
NimbleSense/Susalem
加入带锅宫酱,来到苏州耶路撒冷的怀抱吧!
dathlin/SharpNodeSettings
一个设备及节点配置类库,基于HslCommunication.dll创建,方便的实现PLC根据配置文件动态创建,并支持自动写入相应的服务器对象。
IOT-CS/IOTCS
工业智能网关,基于.net core3.1的跨平台物联网网关。支持不同设备驱动(PLC、CNC、数据库、串口设备、上位机、OPC UA、MQTT)具备二次开发驱动的能力实现与Thingsboard进行数据通讯。同时支持多资源配置化管理,MQTT、MYSQL、WEBHOOK等多种类型,实现数据的快速推送,提供简单的驱动开发接口。
Version Downloads Last Updated
12.5.0 426 9/10/2025
12.3.3 3,100 7/30/2025
12.3.2 4,943 6/6/2025
12.3.1 2,768 5/8/2025
12.3.0 6,133 3/19/2025
12.2.0 7,706 12/25/2024
12.1.3 4,447 11/19/2024
12.1.2 2,828 10/29/2024
12.1.1 4,309 9/24/2024
12.0.3 8,406 7/10/2024
12.0.2 10,244 6/3/2024
12.0.0 3,592 4/28/2024
11.8.2 6,610 2/11/2024
11.7.0 11,791 11/11/2023
11.6.3 4,160 9/25/2023
11.6.2 5,980 8/13/2023
11.6.1 4,682 7/17/2023
11.6.0 4,855 6/25/2023
11.5.3 6,105 5/15/2023
11.5.2 5,642 4/19/2023
11.1.1 4,779 10/12/2022
11.0.6 8,159 8/17/2022
10.6.1 9,406 4/11/2022
10.2.2 5,306 9/30/2021
10.1.2 10,308 8/3/2021
9.7.0 8,626 4/15/2021
7.0.1 66,274 6/25/2019

1. SiemensS7Server: 修复当客户端读取位的方式,读取不存在的DB块的时候,没有返回的异常,现在返回DB块不存在的消息。
2. Modbus: Modbus相关的协议类的属性StationCheckMatch,修复单次拼写错误,之前的是StationCheckMacth,如有使用该属性,升级时需要注意。
3. MelsecMcNet: 三菱的属性EnableWriteBitToWordRegister默认值调整为 true, DEMO界面的选项也自动为 true,可以写位到字寄存器地址。
4. WebSocketServer: 新增方法public void SendClientPayload( WebSocketSession session, byte[] payload ) 用来发送 byte[] 数据。
5. ModbusRtu: 优化RTU消息完整性校验的代码,现在支持了报文前面即使有三个干扰字节,也可以正确的识别报文并正确的提炼出数据。
6. IModbus: 新增属性DisableFunctionCode06,表示禁用功能码06,禁用之后使用10功能码来写入short, ushort 数据。
7. IEC104: 修复写入归一化设定值异常的bug,对应的IEC104虚拟服务器支持了单点遥控,双点遥控,归一化,标度化,短浮点,32位比特串的写入操作,并增加最大地址范围设置。
8. AllenBradleyNet: 在握手报文阶段,当碰到设备错误码1的时候,不再直接关闭返回,而是视为成功,继续操作,部分的PLC是可以继续通信的。
9. HttpServer: 新增一个启动的重载方法 public void Start( string prefix ), 可以输入 http://127.0.0.1:8000/ 来启动服务器。
10. NetPlainSocket: 优化普通客户端类,针对高频接收可能发生的数据错乱做了优化,新增byte[]的收发方法,官网完善相关的文档信息。
11. IDlt645: DLT645接口新增修改波特率的方法ChangeBaudRate,相关DEMO界面增加该测试功能,虚拟服务器支持这个功能码测试。
12. YRCHighEthernet: 新增加一个读取位置型变量的方法ReadPositionVariable,相关的测试界面添加测试功能。
13. DeviceServer: 包括基类CommunicationTcpServer新增属性LocalAddress,用于服务器端绑定本地的ip地址来启动服务,DEMO里所有的服务器界面调整优化。
14. AllenBradleyNet: 修复写入空字符串时实际成功,提醒失败的bug,修复CIPServer服务器返回数据报文命令头不匹配的bug。
15. LogNetDateTime: 时间日期存储的日志,路径地址支持输入格式化信息,达到动态的效果,具体参考官网。
16. Demo: Demo界面的点位变量监视表里,修复右键删除指定行不动作的问题,现在可以批量选择删除。JSON测试界面新增替换测试功能。
17. Demo: Demo界面新增企业用户相关的支持证书发布的功能,允许企业用户自己注册及发布证书,该证书可用于激活C#版及Java版本的hslcommunication。
18. Demo: 当测试界面写入数组数据到地址里的时候,修复生成的示例代码不正确的bug,涉及所有类型的数组写入操作。
19. Demo: 修复CIP协议特殊功能测试的界面,读取显示数据类型的时候,点击写入之后,提示类型错误的小bug。
20. Demo: 修复测试界面 DTU报文生成时,选中ASCII格式时,并且DTU的id小于11位数字的时候,创建的ASCII的注册包的显示异常问题。
21. 新官网:http://www.hsltechnology.cn/,还有全新的使用文档的地址(V12版本升级说明):http://www.hsltechnology.cn/Doc/HslCommunication
22. 本软件已经申请软件著作权,软著登记号:2020SR0340826,任何盗用软件,破解软件,未经正式合同授权而商业使用均视为侵权。