HslCommunication 简单运用
此为winform窗体应用程序前端模型
本地测试,为127.0.0.1 默认端口为502,正式使用需注意端口号,地址,起始地址
HslCommunication 写入功能实现 后端代码
引用HslCommunication.dll (HslCommunication官方网站下载,HslCommunication是免费使用的)
除int 32 写入方式外,还有其他写入格式,如:
接收HslCommunication 写入数据
为了测试方便采用winform控制台应用程序循环接收
首先引用HslCommunication.dll
开始接收数据(采用循环接收)
*接收数据时需注意接收对象 short为接收int类型数据 int类型不可接收ReadInt16数据*