HslCommunication 12.3.1

dotnet add package HslCommunication --version 12.3.1
                    
NuGet\Install-Package HslCommunication -Version 12.3.1
                    
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.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HslCommunication" Version="12.3.1" />
                    
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.3.1
                    
#r "nuget: HslCommunication, 12.3.1"
                    
#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.
#addin nuget:?package=HslCommunication&version=12.3.1
                    
Install HslCommunication as a Cake Addin
#tool nuget:?package=HslCommunication&version=12.3.1
                    
Install HslCommunication 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. 
.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 (40)

Showing the top 5 NuGet packages that depend on HslCommunication:

Package Downloads
Facade.Modbus

Facade.Modbus

ZL.EdgeService

Description

Infrastructure.Plc.Omron

Description

PLC通讯基础控件项目

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

FeatureDesignerNet

Major Mathematical Calculation Library For Platform Package

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.3.1 280 5/8/2025
12.3.0 4,035 3/19/2025
12.2.0 6,655 12/25/2024
12.1.3 3,698 11/19/2024
12.1.2 2,499 10/29/2024
12.1.1 3,744 9/24/2024
12.0.3 7,580 7/10/2024
12.0.2 9,735 6/3/2024
12.0.0 3,126 4/28/2024
11.8.2 5,798 2/11/2024
11.7.0 11,068 11/11/2023
11.6.3 3,945 9/25/2023
11.6.2 5,759 8/13/2023
11.6.1 4,455 7/17/2023
11.6.0 4,498 6/25/2023
11.5.3 5,738 5/15/2023
11.5.2 5,414 4/19/2023
11.1.1 4,567 10/12/2022
11.0.6 7,527 8/17/2022
10.6.1 8,593 4/11/2022
10.2.2 5,078 9/30/2021
10.1.2 10,135 8/3/2021
9.7.0 8,083 4/15/2021
7.0.1 64,080 6/25/2019

1. SecsHsmsServer: 新增方法PublishSecsMessage( byte stream, byte function, SecsValue data, uint messageId, bool wBit ),可以发布的时候手动控制系统数据。
2. HslExtension: 优化地址判断方法StartsWithAndNumber,支持了对负数的地址判断,因为台达等PLC存在负数地址的情况,例如 D-3530
3. CommunicationTcpServer: 修复TCP服务器在linux系统运行时,某些特殊情况调用 ServerClose 后会异常奔溃的bug。
4. WebSocketServer: 服务器端新增方法 public void PublishAllClientPayload( byte[] payload ) 使用opcode = 2来发送二进制的数据消息,DEMO界面优化显示。
5. PipeSslNet: 新增属性 SslProtocols 可以自定义控制SSL协议的版本,CommunicationTcpServer新增方法 SetSslPipeAction 可用于设置SSL的自定义属性。
6. PipeTcpNet: 新增属性 CloseOnRecvTimeOutTick,当使用同步方法读写PLC数据时,想要实现超时几次内不关闭当前的连接对象,就设置该属性,注意,只对同步方法有效。
7. TcpForward: TCP转发类接收到双方数据后,顺序调整为先转发再重新接收数据,修复在某些连续发送的场景下导致数据接收顺序错乱的bug。
8. AllenBradleyNet: 当使用了i=的地址格式写入单个的bool的值的时候,修复地址为单个dint类型时,提示数据不存在的bug。
9. MelsecFxSerial: 优化三菱编程口协议对报文完整性的判断,就算读取的报文前面出现 3F 3F 3F字节,也可以正确的识别和解析数据。
10. HttpServer: 内部日志记录针对所有的请求操作及url信息,耗时进行记录操作,新增属性 LogHttpBody 默认false,设置true可以记录body数据,跨域属性默认为 true。
11. HttpServer: 新增属性LogHttpHeader,用于表示日志是否记录请求头的信息,DEMO界面优化,支持日志设置请求头或是Body数据。
12. ModbusRtu: 修复当收到CRC16不正确的报文时,却表现为接收超时的bug,现在会直接返回并提示CRC不正确,当站号不一致时,还是会持续接收直到有指定站号数据或是引发超时。
13. Modbus: IModbus接口新增属性WordReadBatchLength,表示批量读取时自动切割的长度信息,默认根据120长度分批读取,现在开放修改。
14. MqttServer: 修改继承体系,从V12版本的CommunicationTcpServer继承实现,支持了SSL/TLS加密通信功能,优化了Demo界面的部分显示信息,测试了连续几万次的发布接收功能。
15. MelsecMcRNet: 修复三菱R系列的协议情况下,命令码中部分内容不正确的bug,此前一直读写不了R系列的PLC,需要使用普通MC协议。
16. OmronCipNet: 修复欧姆CIP协议写入单个bool数据到PLC失败的bug,修复bool数组读取解析异常,支持从数组中间位置开始读取。
17. SecsHsms: 方法SendByCommand返回携带消息ID信息,方便二次处理,修复SecsValue在某些值信息为空的情况下转成SML字符串时异常的bug。
18. SecsHsmsServer: 服务器侧新增一个同步方法ReadSecsMessage读取客户端的返回数据信息,该方法内部有锁,线程安全的。
19. OmronCMode: 欧姆龙的HostLinkCMode支持了读写位的操作,实际是通过读写字间接实现的,修复了HostLinkCModeServer当客户端读取EM地址失败的bug。
20. Demo: demo界面的模拟数据写入测试界面新增单次测试,如果碰到地址异常,自动选中该单元格,修复设备保存时模拟数据界面不保存的bug。
21. Demo: DEMO界面上选择串口管道的时候,额外属性里新增ReceiveTimeOut属性,可以设置超时时间了,参数支持保存加载,支持示例代码生成。
22. Demo: 修复CJT188及串口透传类,在DEMO中生成示例代码的时候,实际复制到项目出错的bug,现在可以正确的生成代码。
23. Demo: 修复DEMO界面的点位变量表,请求间歇没设置直接启动报错的bug,该信息也存储到XML里,当设备关闭时,点位变量表也根据停止读取刷新。
24. Demo: fanuc机床的程序测试界面增加特殊情况下载失败的信息提示,openprotocol界面增加实际代码显示,方便复制。
25. Demo: 修复demo碰到激活码不正确的情况下,启动弹窗的bug,现在不再弹窗操作。http服务器和websocket服务器的界面控件支持滚动条。
26. Demo: 测试工具界面的写入地址的数据,支持输入连续数组,例如数组1,2,3,...,100,直接输入 [1:100] 即可,然后点击写入的类型。
27. 新官网:http://www.hsltechnology.cn/,还有全新的使用文档的地址(V12版本升级说明):http://www.hsltechnology.cn/Doc/HslCommunication
28. 本软件已经申请软件著作权,软著登记号:2020SR0340826,任何盗用软件,破解软件,未经正式合同授权而商业使用均视为侵权。