diff --git a/HighWayIot.Library/HslCommunication.dll b/HighWayIot.Library/HslCommunication.dll index 0609b1c..208e85d 100644 Binary files a/HighWayIot.Library/HslCommunication.dll and b/HighWayIot.Library/HslCommunication.dll differ diff --git a/HighWayIot.Library/HslCommunication.xml b/HighWayIot.Library/HslCommunication.xml index 7106dee..d7792c5 100644 --- a/HighWayIot.Library/HslCommunication.xml +++ b/HighWayIot.Library/HslCommunication.xml @@ -4,6 +4,40 @@ HslCommunication + + + 基于设备通信的连接池信息
+ Connection pool information based on device communication +
+
+ + + 使用指定的设备来实例化一个对象
+ Use the specified device to instantiate an object +
+ 指定的设备通信 +
+ + + 获取当前实际的设备通信对象
+ Gets the actual device communication object at present +
+
+ + + + + + + + + + + + + + + 一个连接池管理器,负责维护多个可用的连接,并且自动清理,扩容,用于快速读写服务器或是PLC时使用。
@@ -78,40 +112,6 @@ The current peak value of the number of connections used can be used to measure the upper limit of the applicable connection pool of the current system.
- - - 基于设备通信的连接池信息
- Connection pool information based on device communication -
-
- - - 使用指定的设备来实例化一个对象
- Use the specified device to instantiate an object -
- 指定的设备通信 -
- - - 获取当前实际的设备通信对象
- Gets the actual device communication object at present -
-
- - - - - - - - - - - - - - - 连接池的接口,连接池的管理对象必须实现此接口 @@ -451,6 +451,341 @@ + + + 用来测试版软件授权的窗口 + + + + + 实例化授权注册窗口 + + + 提示关于怎么获取注册码的信息 + 加密的方法 + + + + Required designer variable. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + 一个用于消息弹出显示的类 + + + + + 新增一个显示的弹出窗口 + + + + + + 重置所有弹出窗口的位置 + + + + + 实例化一个窗口信息弹出的对象 + + + + + 实例化一个窗口信息弹出的对象 + + 需要显示的文本 + + + + 实例化一个窗口信息弹出的对象 + + 需要显示的文本 + 文本的颜色 + + + + 实例化一个窗口信息弹出的对象 + + 需要显示的文本 + 文本的颜色 + 指定窗口多少时间后消失,单位毫秒 + + + + 窗体的位置进行向上调整 + + + + + 窗体的位置进行向上调整 + + + + + Required designer variable. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + 系统框架支持的一些常用的动画特效 + + + + + 最小的时间片段 + + + + + 调整控件背景色,采用了线性的颜色插补方式,实现了控件的背景色渐变,需要指定控件,颜色,以及渐变的时间 + + 控件 + 设置的颜色 + 时间 + + + + 软件授权类,可以获取本机的唯一机器码信息,将根据cpu号,主板号, + + + + + 实例化一个软件授权类 + + 是否使用管理员模式 + 是否使用硬盘信息 + + + + 注册码描述文本 + + + + + 最终的注册秘钥信息,注意是只读的。 + + + 时间:2018年9月1日 23:01:54,来自 洛阳-LYG 的建议,公开了本属性信息,只读。 + + + + + 是否正式发行版,是的话就取消授权 + + + + + 获取或设置当前计算机器码的时候,会否报文硬盘的基本信息 + + + + + 指示是否加载过文件信息 + + + + + 指示系统是否处于试用运行 + + + + + 获取本机的机器码 + + 机器码字符串 + + + + 获取需要保存的数据内容 + + 实际保存的内容 + + + + 从字符串加载数据 + + 文件存储的数据 + + + + 使用特殊加密算法加密数据 + + + + + 使用特殊解密算法解密数据 + + + + + 检查该注册码是否是正确的注册码 + + 注册码信息 + 数据加密的方法,必须用户指定 + 是否注册成功 + + + + 检测授权是否成功 + + 数据加密的方法,必须用户指定 + 是否成功授权 + + + + 获取本地计算机唯一的机器码,将由bios编码,cpu编码,hdd编码结合出来的 + + 是否使用了管理员模式 + 是否使用硬盘,在部分的情况下,使用硬盘会受U盘插拔影响 + 字符串形式的机器码 + + + + 获得硬盘信息 + + 硬盘序号 + 硬盘信息 + + by sunmast for everyone + thanks lu0 for his great works + 在Windows Array8/ME中,S.M.A.R.T并不缺省安装,请将SMARTVSD.VXD拷贝到%SYSTEM%\IOSUBSYS目录下。 + 在Windows 2000/2003下,需要Administrators组的权限。 + + + AtapiDevice.GetHddInfo() + + + + + 执行打开/建立资源的功能。 + + 指定要打开的设备或文件的名称。 + + Win32 常量,用于控制对设备的读访问、写访问或读/写访问的常数。内容如下表: +

+ + 名称 + 说明 + + + GENERIC_READ指定对设备进行读取访问。 + + + GENERIC_WRITE指定对设备进行写访问。 + + 0如果值为零,则表示只允许获取与一个设备有关的信息。 +

+
+ + 指定打开设备时的文件共享模式 + + Win32 常量,指定操作系统打开文件的方式。内容如下表: +

+ + 名称说明 + + CREATE_NEW + 指定操作系统应创建新文件。如果文件存在,则抛出 异常。 + + CREATE_ALWAYS指定操作系统应创建新文件。如果文件已存在,它将被改写。 + +

+ + + + 使用函数打开的设备的句柄。 + + 本函数可以执行打开或建立文件、文件流、目录/文件夹、物理磁盘、卷、系统控制的缓冲区、磁带设备、 + 通信资源、邮件系统和命名管道。 + +
+ + + 关闭一个指定的指针对象指向的设备。。 + + 要关闭的句柄 对象。 + 成功返回 0 ,不成功返回非零值。 + + + + 对设备执行指定的操作。 + + 要执行操作的设备句柄。 + Win32 API 常数,输入的是以 FSCTL_ 为前缀的常数,定义在 + WinIoCtl.h 文件内,执行此重载方法必须输入 SMART_GET_VERSION 。 + 当参数为指针时,默认的输入值是 0 。 + 输入缓冲区的字节数量。 + 一个 GetVersionOutParams ,表示执行函数后输出的设备检查。 + 输出缓冲区的字节数量。 + 实际装载到输出缓冲区的字节数量。 + 同步操作控制,一般不使用,默认值为 0 。 + 非零表示成功,零表示失败。 + + + + 对设备执行指定的操作。 + + 要执行操作的设备句柄。 + Win32 API 常数,输入的是以 FSCTL_ 为前缀的常数,定义在 + WinIoCtl.h 文件内,执行此重载方法必须输入 SMART_SEND_DRIVE_COMMANDSMART_RCV_DRIVE_DATA 。 + 一个 SendCmdInParams 结构,它保存向系统发送的查询要求具体命令的数据结构。 + 输入缓冲区的字节数量。 + 一个 SendCmdOutParams 结构,它保存系统根据命令返回的设备相信信息二进制数据。 + 输出缓冲区的字节数量。 + 实际装载到输出缓冲区的字节数量。 + 同步操作控制,一般不使用,默认值为 0 。 + 非零表示成功,零表示失败。 + + + + 硬盘信息 + + + + + 型号 + + + + + 固件版本 + + + + + 序列号 + + + + + 容量,以M为单位 + + 支持字符串信息加载存储的接口,定义了几个通用的方法 @@ -591,6 +926,18 @@ 编码信息 Md5字符串 + + + 获取内存图片的md5码
+ Get the MD5 code of the memory picture +
+ 内存图片 + Md5字符串 + + 下面举例实现获取一个图像的md5码 + + +
从一个字节大小返回带单位的描述,主要是用于显示操作
@@ -827,6 +1174,25 @@ 解析后的值 解析失败的异常 + + + 显示一个完整的错误信息
+ Displays a complete error message +
+ 异常对象 + 调用本方法可以显示一个异常的详细信息 + +
+ + + 显示一个完整的错误信息,和额外的字符串描述信息
+ Displays a complete error message, and additional string description information +
+ 额外的描述信息 + 调用本方法可以显示一个异常的详细信息 + 异常对象 + +
获取一个异常的完整错误信息
@@ -2202,6 +2568,142 @@ + + + 图形的方向 + + + + + 向上 + + + + + 向下 + + + + + 向左 + + + + + 向右 + + + + + 包含整型和字符串描述的数据类型 + + + + + 数量 + + + + + 描述 + + + + + 图形的呈现方式 + + + + + 直方图 + + + + + 饼图 + + + + + 折线图 + + + + + 静态类,包含了几个常用的画图方法,获取字符串,绘制小三角等 + + + + + 获取一个直方图 + + 数据数组 + 宽度 + 高度 + 刻度划分等级 + 线条颜色 + + + + + 计算绘图时的相对偏移值 + + 0-100分的最大值,就是指准备绘制的最大值 + 0-100分的最小值,就是指准备绘制的最小值 + 实际绘图区域的高度 + 需要绘制数据的当前值 + 相对于0的位置,还需要增加上面的偏值 + + + + 计算绘图时的相对偏移值 + + 0-100分的最大值,就是指准备绘制的最大值 + 0-100分的最小值,就是指准备绘制的最小值 + 实际绘图区域的高度 + 需要绘制数据的当前值 + 相对于0的位置,还需要增加上面的偏值 + + + + 绘制坐标系中的刻度线 + + + + + + + + + + + + + + + + + + + + 根据指定的方向绘制一个箭头 + + + + + + + + + + 根据数据生成一个可视化的图形 + + 数据集合 + 需要绘制图形的宽度 + 需要绘制图形的高度 + 指定绘制成什么样子的图形 + 返回一个bitmap对象 + 字符串加密解密相关的自定义类 @@ -4010,80 +4512,6 @@ 是否位 memobus的地址信息 - - - Modbus协议地址格式,可以携带站号,功能码,地址信息
- Modbus protocol address format, can carry station number, function code, address information -
-
- - - 实例化一个默认的对象
- Instantiate a default object -
-
- - - 实例化一个对象,使用指定的地址初始化
- Instantiate an object, initialize with the specified address -
- 传入的地址信息,支持富地址,例如s=2;x=3;100 -
- - - 实例化一个对象,使用指定的地址及功能码初始化
- Instantiate an object and initialize it with the specified address and function code -
- 传入的地址信息,支持富地址,例如s=2;x=3;100 - 默认的功能码信息 -
- - - 实例化一个对象,使用指定的地址,站号,功能码来初始化
- Instantiate an object, use the specified address, station number, function code to initialize -
- 传入的地址信息,支持富地址,例如s=2;x=3;100 - 站号信息 - 默认的功能码信息 -
- - - 获取或设置当前地址的站号信息
- Get or set the station number information of the current address -
-
- - - 获取或设置当前地址携带的功能码
- Get or set the function code carried by the current address -
-
- - - 获取或设置当前地址在写入的情况下使用的功能码,用来扩展一些非常特殊的自定义服务器
-
-
- - - - - - 地址偏移指定的位置,返回一个新的地址对象
- The address is offset by the specified position and a new address object is returned -
- 数据值信息 - 新增后的地址信息 -
- - - 地址偏移1,返回一个新的地址对象
- The address is offset by 1 and a new address object is returned -
- 新增后的地址信息 -
- - - 欧姆龙的Fins协议的地址类对象 @@ -4328,6 +4756,80 @@ 数据长度 是否成功的地址结果 + + + Modbus协议地址格式,可以携带站号,功能码,地址信息
+ Modbus protocol address format, can carry station number, function code, address information +
+
+ + + 实例化一个默认的对象
+ Instantiate a default object +
+
+ + + 实例化一个对象,使用指定的地址初始化
+ Instantiate an object, initialize with the specified address +
+ 传入的地址信息,支持富地址,例如s=2;x=3;100 +
+ + + 实例化一个对象,使用指定的地址及功能码初始化
+ Instantiate an object and initialize it with the specified address and function code +
+ 传入的地址信息,支持富地址,例如s=2;x=3;100 + 默认的功能码信息 +
+ + + 实例化一个对象,使用指定的地址,站号,功能码来初始化
+ Instantiate an object, use the specified address, station number, function code to initialize +
+ 传入的地址信息,支持富地址,例如s=2;x=3;100 + 站号信息 + 默认的功能码信息 +
+ + + 获取或设置当前地址的站号信息
+ Get or set the station number information of the current address +
+
+ + + 获取或设置当前地址携带的功能码
+ Get or set the function code carried by the current address +
+
+ + + 获取或设置当前地址在写入的情况下使用的功能码,用来扩展一些非常特殊的自定义服务器
+
+
+ + + + + + 地址偏移指定的位置,返回一个新的地址对象
+ The address is offset by the specified position and a new address object is returned +
+ 数据值信息 + 新增后的地址信息 +
+ + + 地址偏移1,返回一个新的地址对象
+ The address is offset by 1 and a new address object is returned +
+ 新增后的地址信息 +
+ + + 所有设备的基类信息 @@ -5253,294 +5755,6 @@ - - - 文件的基础信息 - - - - - 文件名称 - - - - - 文件大小 - - - - - 文件的标识,注释 - - - - - 文件上传人的名称 - - - - - 文件的分类信息 - - - - - 命令码 - - - - - 文件名 - - - - - 文件名列表 - - - - - 第一级分类信息 - - - - - 第二级分类信息 - - - - - 第三级分类信息 - - - - - 文件在服务器上的信息 - - - - - 文件的真实路径 - - - - - 文件标记对象类,标记了一个文件的当前状态,是否处于下载中,删除的操作信息
- File tag object class, which marks the current status of a file, whether it is downloading, or delete operation information -
-
- - - 实例化一个文件标记对象,需要传入日志信息和文件名
- To instantiate a file tag object, you need to pass in log information and file name -
- 日志对象 - 完整的文件名称 -
- - - 当前的对象创建的时间
- Current object creation time -
-
- - - 当前的对象最后一次活跃的时间
- Last active time of the current object -
-
- - - 当前的文件的读取次数,通常也是下载次数。
- The current number of reads of the file, usually also the number of downloads. -
-
- - - 新增一个对当前的文件的操作,如果没有读取,就直接执行,如果有读取,就等待读取完成的时候执行。
- Add an operation on the current file. If there is no read, it will be executed directly. If there is a read, it will be executed when the read is completed. -
- 对当前文件的操作内容 -
- - - 获取该对象是否能被清除
- Gets whether the object can be cleared -
- 是否能够删除 -
- - - 进入文件的读取状态
- Enter the read state of the file -
-
- - - 离开本次的文件读取状态,如果没有任何的客户端在读取了,就执行缓存队列里的操作信息。
- Leaving the current file reading status, if no client is reading, the operation information in the cache queue is executed. -
-
- - - - - - 文件集容器,绑定一个文件夹的文件信息组,提供了文件夹的文件信息的获取,更新接口
- File set container, which binds the file information group of a folder, provides the file information acquisition and update interface of the folder -
-
- - - 实例化一个新的指定目录的文件管理容器
- Instantiates a new file management container for the specified directory -
- 日志记录对象,可以为空 - 文件的路径 -
- - - 包含所有文件列表信息的json文本缓存
- JSON text cache containing all file list information -
-
- - - 获取文件的数量
- Get the number of files -
-
- - - 获取当前目录中所有子文件的下载次数统计
- Get the download count of all subfiles in the current directory -
-
- - - 当前的目录信息
- Current catalog information -
-
- - - 获取当前目录所有文件的大小之和
- Get the sum of the size of all files in the current directory -
- 是否携带最新的文件信息 -
- - - 文件数量变化的委托信息
- Order information for changes in the number of files -
- 文件列表容器 - 文件的数量 -
- - - 当文件数量发生变化的时候触发的事件
- Event triggered when the number of files changes -
-
- - - 下载文件时调用,根据当前的文件名称,例如 123.txt 获取到在文件服务器里映射的文件名称,例如返回 b35a11ec533147ca80c7f7d1713f015b7909
- Called when downloading a file. Get the file name mapped in the file server according to the current file name, such as 123.txt. - For example, return b35a11ec533147ca80c7f7d1713f015b7909. -
- 文件的实际名称 - 文件名映射过去的实际的文件名字 -
- - - 上传文件时掉用,通过比对现有的文件列表,如果没有,就重新创建列表信息
- Used when uploading files, by comparing existing file lists, if not, re-creating list information -
- 文件名,带后缀,不带任何的路径 - 文件的大小 - 文件映射名称 - 文件的拥有者 - 文件的额外描述 - 映射的文件名称 -
- - - 根据文件的名称获取对应的文件信息
- Get the corresponding file information according to the file name -
- 文件的真实名称 - 是否获取成功的结果对象 -
- - - 删除一个文件信息,传入文件实际的名称,例如 123.txt 返回被删除的文件的guid名称,例如返回 b35a11ec533147ca80c7f7d1713f015b7909 此方法存在同名文件删除的风险
- Delete a file information. Pass in the actual name of the file. For example, 123.txt returns the guid name of the deleted file. For example, it returns b35a11ec533147ca80c7f7d1713f015b7909. There is a risk of deleting the file with the same name -
- 实际的文件名称,如果 123.txt - 映射之后的文件名,例如 b35a11ec533147ca80c7f7d1713f015b7909 -
- - - 判断当前的文件名是否在文件的列表里,传入文件实际的名称,例如 123.txt,如果文件存在,返回 true, 如果不存在,返回 false
- Determine whether the current file name is in the file list, and pass in the actual file name, such as 123.txt, - if it exists, return true, if it does not exist, return false -
- 实际的文件名称,如果 123.txt - 如果文件存在,返回 true, 如果不存在,返回 false -
- - - 删除一个文件信息,传入文件唯一的guid的名称,例如 b35a11ec533147ca80c7f7d1713f015b7909 返回被删除的文件的guid名称
- Delete a file information, pass in the unique GUID name of the file, for example b35a11ec533147ca80c7f7d1713f015b7909 return the GUID name of the deleted file -
- 实际的文件名称,如果 b35a11ec533147ca80c7f7d1713f015b7909 - 映射之后的文件名,例如 b35a11ec533147ca80c7f7d1713f015b7909 -
- - - 删除当前目录下所有的文件信息,返回等待被删除的文件列表,是映射文件名:b35a11ec533147ca80c7f7d1713f015b7909
- Delete all file information in the current directory, and return to the list of files waiting to be deleted, - which is the mapping file name: b35a11ec533147ca80c7f7d1713f015b7909 -
- 原始的文件名称 - 映射之后的文件列表,例如 b35a11ec533147ca80c7f7d1713f015b7909 -
- - - 获取当前目录的下所有文件信息,返回所有映射的文件名:b35a11ec533147ca80c7f7d1713f015b7909
- Gets the current directory under all file information, return all mapping file name: b35a11ec533147ca80c7f7d1713f015b7909 -
- 原始的文件名称 - 映射之后的文件列表,例如 b35a11ec533147ca80c7f7d1713f015b7909 -
- - - 删除当前的目录信息 - - - - - 重命名当前的目录信息 - - 路径名称 - - - - 缓存JSON文本的方法,该机制使用乐观并发模型完成
- Method for caching JSON text, which is done using an optimistic concurrency model -
-
- - - 从目录进行加载数据,必须实例化的时候加载,加载失败会导致系统异常,旧的文件丢失
- Load data from the directory, it must be loaded when instantiating. Failure to load will cause system exceptions and old files will be lost -
- 当前的文件夹路径信息 -
- - - 文件服务器的目录管理类的基本信息 @@ -5579,57 +5793,6 @@ - - - 单个文件的存储信息,用来表示在文件目录管理器里表示所有的文件信息的
- Storage information of a single file, used to represent all file information in the file directory manager -
-
- - - 文件的名称 - - - - - 文件的大小 - - - - - 文件的映射名称 - - - - - 文件的下载次数 - - - - - 文件的上传时间 - - - - - 文件的上传人,拥有者 - - - - - 文件的额外描述 - - - - - 获取文件的大小描述
- Get file size description -
- 文件大小的字符串描述形式 -
- - - 当前MQTT服务器文件操作的对象类
@@ -13005,6 +13168,11 @@ currently encrypted key information
+ + + SSL相关的类方法名称,本代码来源 https://github.com/thomas-v2/S7CommPlusDriver + + RSA加密解密算法的辅助方法,可以用PEM格式的密钥创建公钥,或是私钥对象,然后用来加解密操作。 @@ -13492,6 +13660,215 @@ 离开锁 + + + 数据转换类的基础,提供了一些基础的方法实现,默认 的顺序,和C#的字节顺序是一致的。
+ The basis of the data conversion class provides some basic method implementations. + The default order of is consistent with the byte order of C#. +
+
+ + + 实例化一个默认的对象
+ Instantiate a default object +
+
+ + + 使用指定的数据解析来实例化对象
+ Instantiate the object using the specified data parsing +
+ 数据规则 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 反转两个字节的数据信息 + + 原始字节数据 + 起始的索引 + 反转后的字节 + + + + 反转多字节的数据信息 + + 数据字节 + 起始索引,默认值为0 + 实际字节信息 + + + + 反转多字节的数据信息 + + 数据字节 + 起始索引,默认值为0 + 实际字节信息 + + + + + + + + + + + + + 所有数据转换类的静态辅助方法
@@ -14273,215 +14650,6 @@ 数据格式 新的对象 - - - 数据转换类的基础,提供了一些基础的方法实现,默认 的顺序,和C#的字节顺序是一致的。
- The basis of the data conversion class provides some basic method implementations. - The default order of is consistent with the byte order of C#. -
-
- - - 实例化一个默认的对象
- Instantiate a default object -
-
- - - 使用指定的数据解析来实例化对象
- Instantiate the object using the specified data parsing -
- 数据规则 -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 反转两个字节的数据信息 - - 原始字节数据 - 起始的索引 - 反转后的字节 - - - - 反转多字节的数据信息 - - 数据字节 - 起始索引,默认值为0 - 实际字节信息 - - - - 反转多字节的数据信息 - - 数据字节 - 起始索引,默认值为0 - 实际字节信息 - - - - - - - - - - - - - 大端顺序的字节的转换类,字节的顺序和C#的原生字节的顺序是完全相反的,高字节在前,低字节在后。
@@ -15200,6 +15368,345 @@ + + + 文件的基础信息 + + + + + 文件名称 + + + + + 文件大小 + + + + + 文件的标识,注释 + + + + + 文件上传人的名称 + + + + + 文件的分类信息 + + + + + 命令码 + + + + + 文件名 + + + + + 文件名列表 + + + + + 第一级分类信息 + + + + + 第二级分类信息 + + + + + 第三级分类信息 + + + + + 文件在服务器上的信息 + + + + + 文件的真实路径 + + + + + 文件标记对象类,标记了一个文件的当前状态,是否处于下载中,删除的操作信息
+ File tag object class, which marks the current status of a file, whether it is downloading, or delete operation information +
+
+ + + 实例化一个文件标记对象,需要传入日志信息和文件名
+ To instantiate a file tag object, you need to pass in log information and file name +
+ 日志对象 + 完整的文件名称 +
+ + + 当前的对象创建的时间
+ Current object creation time +
+
+ + + 当前的对象最后一次活跃的时间
+ Last active time of the current object +
+
+ + + 当前的文件的读取次数,通常也是下载次数。
+ The current number of reads of the file, usually also the number of downloads. +
+
+ + + 新增一个对当前的文件的操作,如果没有读取,就直接执行,如果有读取,就等待读取完成的时候执行。
+ Add an operation on the current file. If there is no read, it will be executed directly. If there is a read, it will be executed when the read is completed. +
+ 对当前文件的操作内容 +
+ + + 获取该对象是否能被清除
+ Gets whether the object can be cleared +
+ 是否能够删除 +
+ + + 进入文件的读取状态
+ Enter the read state of the file +
+
+ + + 离开本次的文件读取状态,如果没有任何的客户端在读取了,就执行缓存队列里的操作信息。
+ Leaving the current file reading status, if no client is reading, the operation information in the cache queue is executed. +
+
+ + + + + + 文件集容器,绑定一个文件夹的文件信息组,提供了文件夹的文件信息的获取,更新接口
+ File set container, which binds the file information group of a folder, provides the file information acquisition and update interface of the folder +
+
+ + + 实例化一个新的指定目录的文件管理容器
+ Instantiates a new file management container for the specified directory +
+ 日志记录对象,可以为空 + 文件的路径 +
+ + + 包含所有文件列表信息的json文本缓存
+ JSON text cache containing all file list information +
+
+ + + 获取文件的数量
+ Get the number of files +
+
+ + + 获取当前目录中所有子文件的下载次数统计
+ Get the download count of all subfiles in the current directory +
+
+ + + 当前的目录信息
+ Current catalog information +
+
+ + + 获取当前目录所有文件的大小之和
+ Get the sum of the size of all files in the current directory +
+ 是否携带最新的文件信息 +
+ + + 文件数量变化的委托信息
+ Order information for changes in the number of files +
+ 文件列表容器 + 文件的数量 +
+ + + 当文件数量发生变化的时候触发的事件
+ Event triggered when the number of files changes +
+
+ + + 下载文件时调用,根据当前的文件名称,例如 123.txt 获取到在文件服务器里映射的文件名称,例如返回 b35a11ec533147ca80c7f7d1713f015b7909
+ Called when downloading a file. Get the file name mapped in the file server according to the current file name, such as 123.txt. + For example, return b35a11ec533147ca80c7f7d1713f015b7909. +
+ 文件的实际名称 + 文件名映射过去的实际的文件名字 +
+ + + 上传文件时掉用,通过比对现有的文件列表,如果没有,就重新创建列表信息
+ Used when uploading files, by comparing existing file lists, if not, re-creating list information +
+ 文件名,带后缀,不带任何的路径 + 文件的大小 + 文件映射名称 + 文件的拥有者 + 文件的额外描述 + 映射的文件名称 +
+ + + 根据文件的名称获取对应的文件信息
+ Get the corresponding file information according to the file name +
+ 文件的真实名称 + 是否获取成功的结果对象 +
+ + + 删除一个文件信息,传入文件实际的名称,例如 123.txt 返回被删除的文件的guid名称,例如返回 b35a11ec533147ca80c7f7d1713f015b7909 此方法存在同名文件删除的风险
+ Delete a file information. Pass in the actual name of the file. For example, 123.txt returns the guid name of the deleted file. For example, it returns b35a11ec533147ca80c7f7d1713f015b7909. There is a risk of deleting the file with the same name +
+ 实际的文件名称,如果 123.txt + 映射之后的文件名,例如 b35a11ec533147ca80c7f7d1713f015b7909 +
+ + + 判断当前的文件名是否在文件的列表里,传入文件实际的名称,例如 123.txt,如果文件存在,返回 true, 如果不存在,返回 false
+ Determine whether the current file name is in the file list, and pass in the actual file name, such as 123.txt, + if it exists, return true, if it does not exist, return false +
+ 实际的文件名称,如果 123.txt + 如果文件存在,返回 true, 如果不存在,返回 false +
+ + + 删除一个文件信息,传入文件唯一的guid的名称,例如 b35a11ec533147ca80c7f7d1713f015b7909 返回被删除的文件的guid名称
+ Delete a file information, pass in the unique GUID name of the file, for example b35a11ec533147ca80c7f7d1713f015b7909 return the GUID name of the deleted file +
+ 实际的文件名称,如果 b35a11ec533147ca80c7f7d1713f015b7909 + 映射之后的文件名,例如 b35a11ec533147ca80c7f7d1713f015b7909 +
+ + + 删除当前目录下所有的文件信息,返回等待被删除的文件列表,是映射文件名:b35a11ec533147ca80c7f7d1713f015b7909
+ Delete all file information in the current directory, and return to the list of files waiting to be deleted, + which is the mapping file name: b35a11ec533147ca80c7f7d1713f015b7909 +
+ 原始的文件名称 + 映射之后的文件列表,例如 b35a11ec533147ca80c7f7d1713f015b7909 +
+ + + 获取当前目录的下所有文件信息,返回所有映射的文件名:b35a11ec533147ca80c7f7d1713f015b7909
+ Gets the current directory under all file information, return all mapping file name: b35a11ec533147ca80c7f7d1713f015b7909 +
+ 原始的文件名称 + 映射之后的文件列表,例如 b35a11ec533147ca80c7f7d1713f015b7909 +
+ + + 删除当前的目录信息 + + + + + 重命名当前的目录信息 + + 路径名称 + + + + 缓存JSON文本的方法,该机制使用乐观并发模型完成
+ Method for caching JSON text, which is done using an optimistic concurrency model +
+
+ + + 从目录进行加载数据,必须实例化的时候加载,加载失败会导致系统异常,旧的文件丢失
+ Load data from the directory, it must be loaded when instantiating. Failure to load will cause system exceptions and old files will be lost +
+ 当前的文件夹路径信息 +
+ + + + + + 单个文件的存储信息,用来表示在文件目录管理器里表示所有的文件信息的
+ Storage information of a single file, used to represent all file information in the file directory manager +
+
+ + + 文件的名称 + + + + + 文件的大小 + + + + + 文件的映射名称 + + + + + 文件的下载次数 + + + + + 文件的上传时间 + + + + + 文件的上传人,拥有者 + + + + + 文件的额外描述 + + + + + 获取文件的大小描述
+ Get file size description +
+ 文件大小的字符串描述形式 +
+ + + 用于网络传递的信息头,使用上等同于int @@ -21012,6 +21519,11 @@ 字符串 + + + 当前的推送的会话的基本信息 + + 发布订阅类的客户端,使用指定的关键订阅相关的数据推送信息 @@ -21211,6 +21723,850 @@ + + + [商业授权] Redis客户端的连接池类对象,用于共享当前的连接池,合理的动态调整连接对象,然后进行高效通信的操作,默认连接数无限大。
+ [Authorization] The connection pool class object of the Redis client is used to share the current connection pool, + reasonably dynamically adjust the connection object, and then perform efficient communication operations, + The default number of connections is unlimited +
+ + 本连接池的实现仅对商业授权用户开放,用于提供服务器端的与Redis的并发读写能力。使用上和普通的 没有区别, + 但是在高并发上却高性能的多,占用的连接也更少,这一切都是连接池自动实现的。 + +
+ + + 实例化一个默认的客户端连接池对象,需要指定实例Redis对象时的IP,端口,密码信息
+ To instantiate a default client connection pool object, you need to specify the IP, port, and password information when the Redis object is instantiated +
+ IP地址信息 + 端口号信息 + 密码,如果没有,请输入空字符串 +
+ + + 实例化一个默认的客户端连接池对象,需要指定实例Redis对象时的IP,端口,密码信息,以及可以指定额外的初始化操作
+ To instantiate a default client connection pool object, you need to specify the IP, port, + and password information when the Redis object is instantiated, and you can specify additional initialization operations +
+ IP地址信息 + 端口号信息 + 密码,如果没有,请输入空字符串 + 额外的初始化信息,比如修改db块的信息。 +
+ + + 获取当前的连接池管理对象信息
+ Get current connection pool management object information +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 提供了redis辅助类的一些方法 + + + + + 将字符串数组打包成一个redis的报文信息 + + 字节数据信息 + 结果报文信息 + + + + 生成一个订阅多个主题的报文信息 + + 多个的主题信息 + 结果报文信息 + + + + 生成一个取消订阅多个主题的报文信息 + + 多个的主题信息 + 结果报文信息 + + + + 从原始的结果数据对象中提取出数字数据 + + 原始的字节数据 + 带有结果对象的数据信息 + + + + 从原始的结果数据对象中提取出数字数据 + + 原始的字节数据 + 带有结果对象的数据信息 + + + + 从结果的数据对象里提取字符串的信息 + + 原始的字节数据 + 带有结果对象的数据信息 + + + + 从redis的结果数据中分析出所有的字符串信息 + + 结果数据 + 带有结果对象的数据信息 + + + + Redis协议的订阅操作,一个对象订阅一个或是多个频道的信息,当发生网络异常的时候,内部会进行自动重连,并恢复之前的订阅信息。
+ In the subscription operation of the Redis protocol, an object subscribes to the information of one or more channels. + When a network abnormality occurs, the internal will automatically reconnect and restore the previous subscription information. +
+
+ + + 实例化一个发布订阅类的客户端,需要指定ip地址,端口。
+ To instantiate a publish and subscribe client, you need to specify the ip address and port. +
+ 服务器的IP地址 + 服务器的端口号 +
+ + + 实例化一个发布订阅类的客户端,需要指定ip地址,端口,及订阅关键字。
+ To instantiate a publish-subscribe client, you need to specify the ip address, port, and subscription keyword. +
+ 服务器的IP地址 + 服务器的端口号 + 订阅关键字 +
+ + + 实例化一个发布订阅类的客户端,需要指定ip地址,端口,及订阅关键字。
+ To instantiate a publish-subscribe client, you need to specify the ip address, port, and subscription keyword. +
+ 服务器的IP地址 + 服务器的端口号 + 订阅关键字 +
+ + + 如果Redis服务器设置了密码,此处就需要进行设置。必须在 方法调用前设置。
+ If the Redis server has set a password, it needs to be set here. Must be set before the method is called. +
+
+ + + 获取或设置当前连接超时时间,主要对 方法有影响,默认值为 5000,也即是5秒。
+ Get or set the current connection timeout period, which mainly affects the method. The default value is 5000, which is 5 seconds. +
+
+ + + 从Redis服务器订阅一个或多个主题信息
+ Subscribe to one or more topics from the redis server +
+ 主题信息 + 订阅结果 +
+ + + + + + 取消订阅多个主题信息,取消之后,当前的订阅数据就不在接收到。
+ Unsubscribe from multiple topic information. After cancellation, the current subscription data will not be received. +
+ 主题信息 + 取消订阅结果 +
+ + + 取消已经订阅的主题信息 + + 主题信息 + 取消订阅结果 + + + + 连接Redis的服务器,如果已经初始化了订阅的Topic信息,那么就会直接进行订阅操作。 + + 是否创建成功 + + + + 关闭消息推送的界面 + + + + + 当接收到Redis订阅的信息的时候触发
+ Triggered when receiving Redis subscription information +
+ 主题信息 + 数据信息 +
+ + + 当接收到Redis订阅的信息的时候触发 + + + + + 这是一个redis的客户端类,支持读取,写入,发布订阅,但是不支持订阅,如果需要订阅,请使用另一个类 @@ -22716,850 +24072,6 @@ - - - [商业授权] Redis客户端的连接池类对象,用于共享当前的连接池,合理的动态调整连接对象,然后进行高效通信的操作,默认连接数无限大。
- [Authorization] The connection pool class object of the Redis client is used to share the current connection pool, - reasonably dynamically adjust the connection object, and then perform efficient communication operations, - The default number of connections is unlimited -
- - 本连接池的实现仅对商业授权用户开放,用于提供服务器端的与Redis的并发读写能力。使用上和普通的 没有区别, - 但是在高并发上却高性能的多,占用的连接也更少,这一切都是连接池自动实现的。 - -
- - - 实例化一个默认的客户端连接池对象,需要指定实例Redis对象时的IP,端口,密码信息
- To instantiate a default client connection pool object, you need to specify the IP, port, and password information when the Redis object is instantiated -
- IP地址信息 - 端口号信息 - 密码,如果没有,请输入空字符串 -
- - - 实例化一个默认的客户端连接池对象,需要指定实例Redis对象时的IP,端口,密码信息,以及可以指定额外的初始化操作
- To instantiate a default client connection pool object, you need to specify the IP, port, - and password information when the Redis object is instantiated, and you can specify additional initialization operations -
- IP地址信息 - 端口号信息 - 密码,如果没有,请输入空字符串 - 额外的初始化信息,比如修改db块的信息。 -
- - - 获取当前的连接池管理对象信息
- Get current connection pool management object information -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 提供了redis辅助类的一些方法 - - - - - 将字符串数组打包成一个redis的报文信息 - - 字节数据信息 - 结果报文信息 - - - - 生成一个订阅多个主题的报文信息 - - 多个的主题信息 - 结果报文信息 - - - - 生成一个取消订阅多个主题的报文信息 - - 多个的主题信息 - 结果报文信息 - - - - 从原始的结果数据对象中提取出数字数据 - - 原始的字节数据 - 带有结果对象的数据信息 - - - - 从原始的结果数据对象中提取出数字数据 - - 原始的字节数据 - 带有结果对象的数据信息 - - - - 从结果的数据对象里提取字符串的信息 - - 原始的字节数据 - 带有结果对象的数据信息 - - - - 从redis的结果数据中分析出所有的字符串信息 - - 结果数据 - 带有结果对象的数据信息 - - - - Redis协议的订阅操作,一个对象订阅一个或是多个频道的信息,当发生网络异常的时候,内部会进行自动重连,并恢复之前的订阅信息。
- In the subscription operation of the Redis protocol, an object subscribes to the information of one or more channels. - When a network abnormality occurs, the internal will automatically reconnect and restore the previous subscription information. -
-
- - - 实例化一个发布订阅类的客户端,需要指定ip地址,端口。
- To instantiate a publish and subscribe client, you need to specify the ip address and port. -
- 服务器的IP地址 - 服务器的端口号 -
- - - 实例化一个发布订阅类的客户端,需要指定ip地址,端口,及订阅关键字。
- To instantiate a publish-subscribe client, you need to specify the ip address, port, and subscription keyword. -
- 服务器的IP地址 - 服务器的端口号 - 订阅关键字 -
- - - 实例化一个发布订阅类的客户端,需要指定ip地址,端口,及订阅关键字。
- To instantiate a publish-subscribe client, you need to specify the ip address, port, and subscription keyword. -
- 服务器的IP地址 - 服务器的端口号 - 订阅关键字 -
- - - 如果Redis服务器设置了密码,此处就需要进行设置。必须在 方法调用前设置。
- If the Redis server has set a password, it needs to be set here. Must be set before the method is called. -
-
- - - 获取或设置当前连接超时时间,主要对 方法有影响,默认值为 5000,也即是5秒。
- Get or set the current connection timeout period, which mainly affects the method. The default value is 5000, which is 5 seconds. -
-
- - - 从Redis服务器订阅一个或多个主题信息
- Subscribe to one or more topics from the redis server -
- 主题信息 - 订阅结果 -
- - - - - - 取消订阅多个主题信息,取消之后,当前的订阅数据就不在接收到。
- Unsubscribe from multiple topic information. After cancellation, the current subscription data will not be received. -
- 主题信息 - 取消订阅结果 -
- - - 取消已经订阅的主题信息 - - 主题信息 - 取消订阅结果 - - - - 连接Redis的服务器,如果已经初始化了订阅的Topic信息,那么就会直接进行订阅操作。 - - 是否创建成功 - - - - 关闭消息推送的界面 - - - - - 当接收到Redis订阅的信息的时候触发
- Triggered when receiving Redis subscription information -
- 主题信息 - 数据信息 -
- - - 当接收到Redis订阅的信息的时候触发 - - - - - 同步访问数据的客户端类,用于向服务器请求一些确定的数据信息 @@ -29371,6 +29883,98 @@ Get the log statistics object of the current dictionary class itself, count the data analysis times of all elements + + + 日志查看器的窗口类,用于分析统计日志数据,实例化的时候可以直接日志文件,然后直接显示出文件内容出来,然后可以根据日志的等级,或是关键字进行搜索信息
+ The window class of the log viewer is used to analyze the statistical log data, and when instantiating, you can directly log the file, + and then directly display the file content, and then you can search for information according to the level of the log or keyword +
+
+ + + 实例化一个默认的日志查看器的窗口
+ Instantiates a default log viewer window +
+
+ + + 指定一个日志路径实例化一个日志查看界面 + + 日志的路径 + + + + 获取或设置当前日志选择窗口的默认的路径信息
+ Get or set the default path information of the current log selection window +
+
+ + + + + + Required designer variable. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + 一个用于日志分析的控件 + + + + + 实例化一个控件信息 + + + + + 设置日志的数据源 + + 直接从日志文件中读到的数据或是来自网络的数据 + + + + 从现有的日志中筛选数据 + + 等级 + + + + 底层的数据分析筛选 + + + + + + + + 必需的设计器变量。 + + + + + 清理所有正在使用的资源。 + + 如果应释放托管资源,为 true;否则为 false。 + + + + 设计器支持所需的方法 - 不要修改 + 使用代码编辑器修改此方法的内容。 + + Modbus设备的接口,用来表示Modbus相关的设备对象,, , @@ -29422,6 +30026,37 @@ + + + Modbus的地址映射类 + + + + + 根据台达AS300的PLC的地址,解析出转换后的modbus协议信息,适用AS300系列,当前的地址仍然支持站号指定,例如s=2;D100
+ According to the PLC address of Delta AS300, the converted modbus protocol information is parsed, + and it is applicable to AS300 series. The current address still supports station number designation, for example, s=2;D100 +
+ 台达plc的地址信息 + 原始的对应的modbus信息 + 还原后的modbus地址 +
+ + + 维控的Lx5v的Modbus地址转换方法,主要注入到Modbus类,即可以在Modbus里使用维控的地址进行通信 + + 维控plc的地址信息 + 原始的对应的modbus信息 + 还原后的modbus地址 + + + + 英威腾 TS600 的modbus地址变换 + + 英威腾PLC的地址 + 默认的modbus功能码 + 还原后的modbus地址 + Modbus-Ascii通讯协议的类库,基于rtu类库完善过来,支持标准的功能码,也支持扩展的功能码实现,地址采用富文本的形式,详细见备注说明
@@ -29927,37 +30562,6 @@ - - - Modbus的地址映射类 - - - - - 根据台达AS300的PLC的地址,解析出转换后的modbus协议信息,适用AS300系列,当前的地址仍然支持站号指定,例如s=2;D100
- According to the PLC address of Delta AS300, the converted modbus protocol information is parsed, - and it is applicable to AS300 series. The current address still supports station number designation, for example, s=2;D100 -
- 台达plc的地址信息 - 原始的对应的modbus信息 - 还原后的modbus地址 -
- - - 维控的Lx5v的Modbus地址转换方法,主要注入到Modbus类,即可以在Modbus里使用维控的地址进行通信 - - 维控plc的地址信息 - 原始的对应的modbus信息 - 还原后的modbus地址 - - - - 英威腾 TS600 的modbus地址变换 - - 英威腾PLC的地址 - 默认的modbus功能码 - 还原后的modbus地址 - 服务器端提供的数据监视服务 @@ -32330,86 +32934,6 @@ The message is only sent to the server without triggering publish and subscribe, the message quality level is only valid for the HSL MQTT server - - - Mqtt的同步网络服务的单Api信息描述类
- Single Api information description class of Mqtt's synchronous network service -
-
- - - 当前的Api的路由信息,对于注册服务来说,是类名/方法名 - - - - - 当前的Api的路由说明 - - - - - 当前方法的签名 - - - - - 当前Api的调用次数 - - - - - 示例的 - - - - - 当前Api的调用总耗时,单位是秒 - - - - - 当前Api是否为方法,如果是方法,就为true,否则为false - - - - - 如果当前的API接口是支持Http的请求方式,当前属性有效,例如GET,POST - - - - - 当前的Api的方法是否是异步的Task类型 - - - - - 当前的Api关联的方法反射,本属性在JSON中将会忽略 - - - - - 当前的Api关联的方法反射,本属性在JSON中将会忽略 - - - - - 当前Api的方法的权限访问反射,本属性在JSON中将会忽略 - - - - - 当前Api绑定的对象的,实际的接口请求,将会从对象进行调用,本属性在JSON中将会忽略 - - - - - 使用原子的操作增加一次调用次数的数据信息,需要传入当前的消耗的时间,单位为100倍毫秒 - - 当前调用花费的时间,单位为100倍毫秒 - - - - 基于MRPC实现的远程设备访问的接口,实现了和基础PLC一样的访问功能,适用的设备为 将PLC实际的通信对象注册为 RPC 接口服务。
@@ -33777,6 +34301,31 @@ 取消下载操作的令牌 是否下载成功 + + + [文件引擎] 从远程服务器下载一个文件,生成一个Bitmap图片对象,需要指定文件类别,文件名,进度报告,可用于用户头像的存储
+ [File Engine] Download a file from a remote server and generate a Bitmap image object. You need to specify the file category, file name, and progress report, which can be used to store the user's avatar +
+ 文件的类别,例如 Files/Personal/Admin 按照斜杠来区分 + 文件名称,例如 123.txt + 进度报告,第一个参数是已完成字节数,第二个参数是总字节数 + 取消下载操作的令牌 + 如果下载成功,则携带图片资源对象 +
+ + + [文件引擎] 上传一个Bitmap图片对象到服务器指定的分类下面,需要指定分类信息,服务器保存的文件名,描述信息,支持进度报告
+ [File Engine] Upload a Bitmap image object to the category specified by the server, you need to specify the category information, + the file name saved by the server, description information, and support for progress reports +
+ 图片对象 + 文件的类别,例如 Files/Personal/Admin 按照斜杠来区分 + 在服务器保存的文件名称 + 文件的额外的描述信息 + 进度报告,第一个参数是已完成字节数,第二个参数是总字节数 + 取消上传操作的令牌 + 是否上传成功 +
[文件引擎] 上传文件给服务器,需要指定上传的数据内容,上传到服务器的分类信息,支持进度汇报功能。
@@ -33918,6 +34467,12 @@ + + + + + + @@ -34062,6 +34617,86 @@ + + + Mqtt的同步网络服务的单Api信息描述类
+ Single Api information description class of Mqtt's synchronous network service +
+
+ + + 当前的Api的路由信息,对于注册服务来说,是类名/方法名 + + + + + 当前的Api的路由说明 + + + + + 当前方法的签名 + + + + + 当前Api的调用次数 + + + + + 示例的 + + + + + 当前Api的调用总耗时,单位是秒 + + + + + 当前Api是否为方法,如果是方法,就为true,否则为false + + + + + 如果当前的API接口是支持Http的请求方式,当前属性有效,例如GET,POST + + + + + 当前的Api的方法是否是异步的Task类型 + + + + + 当前的Api关联的方法反射,本属性在JSON中将会忽略 + + + + + 当前的Api关联的方法反射,本属性在JSON中将会忽略 + + + + + 当前Api的方法的权限访问反射,本属性在JSON中将会忽略 + + + + + 当前Api绑定的对象的,实际的接口请求,将会从对象进行调用,本属性在JSON中将会忽略 + + + + + 使用原子的操作增加一次调用次数的数据信息,需要传入当前的消耗的时间,单位为100倍毫秒 + + 当前调用花费的时间,单位为100倍毫秒 + + + + 一个工业物联网的底层架构框架,专注于底层的技术通信及跨平台,跨语言通信功能,实现各种主流的PLC数据读写,实现modbus,机器人的各种协议读写等等, @@ -39865,51 +40500,6 @@ 类型的单位字节长度信息 - - - 台达PLC的串口通讯类,基于Modbus-Rtu协议开发,按照台达的地址进行实现。
- The serial communication class of Delta PLC is developed based on the Modbus-Rtu protocol and implemented according to Delta's address. -
- - 适用于DVP-ES/EX/EC/SS型号,DVP-SA/SC/SX/EH型号以及AS300型号,地址参考API文档,同时地址可以携带站号信息,举例:[s=2;D100],[s=3;M100],可以动态修改当前报文的站号信息。
- Suitable for DVP-ES/EX/EC/SS models, DVP-SA/SC/SX/EH models and AS300 model, the address refers to the API document, and the address can carry station number information, - for example: [s=2;D100],[s= 3;M100], you can dynamically modify the station number information of the current message. -
-
- - - 实例化一个默认的对象
- Instantiate a default object -
-
- - - 指定客户端自己的站号来初始化
- Specify the client's own station number to initialize -
- 客户端自身的站号 -
- - - - - - - - - - - - - - - - - - - - - 台达PLC的串口通讯类,基于Modbus-Ascii协议开发,按照台达的地址进行实现。
@@ -39998,148 +40588,6 @@ - - - 台达PLC的串口转网口透传类,基于Modbus-Rtu协议开发,但是实际的通信管道使用的是网络,但是实际的地址是台达的地址进行读写操作。
- Delta PLC's serial port to network port transparent transmission class is developed based on the Modbus-Rtu protocol, - but the actual communication channel uses the network, but the actual address is Delta's address for read and write operations. -
- - 适用于DVP-ES/EX/EC/SS型号,DVP-SA/SC/SX/EH型号以及AS300型号,地址参考API文档,同时地址可以携带站号信息,举例:[s=2;D100],[s=3;M100],可以动态修改当前报文的站号信息。
- Suitable for DVP-ES/EX/EC/SS models, DVP-SA/SC/SX/EH models and AS300 model, the address refers to the API document, and the address can carry station number information, - for example: [s=2;D100],[s= 3;M100], you can dynamically modify the station number information of the current message. -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 台达的系列信息 - - - - - 台达的Dvp系列,适用DVP-ES/EX/EC/SS型号,DVP-SA/SC/SX/EH型号 - - - - - 适用于AS300系列 - - - - - 台达PLC的网口通讯类,基于Modbus-Rtu协议开发,按照台达的地址进行实现。
- The tcp communication class of Delta PLC is developed based on the Modbus-Tcp protocol and implemented according to Delta's address. -
- - 适用于DVP-ES/EX/EC/SS型号,DVP-SA/SC/SX/EH型号以及AS300型号,地址参考API文档,同时地址可以携带站号信息,举例:[s=2;D100],[s=3;M100],可以动态修改当前报文的站号信息。
- Suitable for DVP-ES/EX/EC/SS models, DVP-SA/SC/SX/EH models and AS300 model, the address refers to the API document, and the address can carry station number information, - for example: [s=2;D100],[s= 3;M100], you can dynamically modify the station number information of the current message. -
-
- - - - - - - - - - - - - - - - 地址支持X,Y,M,SM,S,T,C,HC,其中X和Y地址使用DD.DD格式,范围 X0.0~X63.15, Y0.0~Y63.15,其中X地址使用的是02功能码,其余的都是01功能码。
- Address supports X, Y, M, SM, S, T, C, HC, where X and Y addresses use the DD.DD format, and the range is X0.0~X63.15, Y0.0~Y63.15, - where X addresses are used The one is 02 function code, and the rest are 01 function code. -
-
- - - - 地址支持Y,M,SM,S,T,C,HC,其中Y地址使用DD.DD格式,Y0.0~Y63.15,不支持X地址的写入。
- The address supports Y, M, SM, S, T, C, HC, where the Y address uses the DD.DD format, Y0.0~Y63.15, the writing of the X address is not supported. -
-
- - - - 地址支持Y,M,SM,S,T,C,HC,其中Y地址使用DD.DD格式,Y0.0~Y63.15,不支持X地址的写入。
- The address supports Y, M, SM, S, T, C, HC, where the Y address uses the DD.DD format, Y0.0~Y63.15, the writing of the X address is not supported. -
-
- - - - 字地址支持X,Y,SR,D,T,C,HC,E, 所有的地址都是十进制的方式,地址范围参照API文档事例,举例:X1,Y10,SR100,D10,T20,C20,HC200,E2
- Word address supports X, Y, SR, D, T, C, HC, E, all addresses are in decimal format, and the address range refers to the API document example, - for example: X1, Y10, SR100, D10, T20, C20, HC200 ,E2 -
-
- - - - 字地址支持Y,SR,D,T,C,HC,E, 所有的地址都是十进制的方式,地址范围参照API文档事例,举例:Y10,SR100,D10,T20,C20,HC200,E2
- Word address supports Y, SR, D, T, C, HC, E, all addresses are in decimal format, and the address range refers to the API document example, - for example: Y10, SR100, D10, T20, C20, HC200 ,E2 -
-
- - - - - - - - - - - - - - - 台达AS300的辅助帮助类信息 @@ -40224,6 +40672,193 @@ 台达的想关的辅助类 + + + 台达PLC的串口通讯类,基于Modbus-Rtu协议开发,按照台达的地址进行实现。
+ The serial communication class of Delta PLC is developed based on the Modbus-Rtu protocol and implemented according to Delta's address. +
+ + 适用于DVP-ES/EX/EC/SS型号,DVP-SA/SC/SX/EH型号以及AS300型号,地址参考API文档,同时地址可以携带站号信息,举例:[s=2;D100],[s=3;M100],可以动态修改当前报文的站号信息。
+ Suitable for DVP-ES/EX/EC/SS models, DVP-SA/SC/SX/EH models and AS300 model, the address refers to the API document, and the address can carry station number information, + for example: [s=2;D100],[s= 3;M100], you can dynamically modify the station number information of the current message. +
+
+ + + 实例化一个默认的对象
+ Instantiate a default object +
+
+ + + 指定客户端自己的站号来初始化
+ Specify the client's own station number to initialize +
+ 客户端自身的站号 +
+ + + + + + + + + + + + + + + + + + + + + + + + 台达PLC的串口转网口透传类,基于Modbus-Rtu协议开发,但是实际的通信管道使用的是网络,但是实际的地址是台达的地址进行读写操作。
+ Delta PLC's serial port to network port transparent transmission class is developed based on the Modbus-Rtu protocol, + but the actual communication channel uses the network, but the actual address is Delta's address for read and write operations. +
+ + 适用于DVP-ES/EX/EC/SS型号,DVP-SA/SC/SX/EH型号以及AS300型号,地址参考API文档,同时地址可以携带站号信息,举例:[s=2;D100],[s=3;M100],可以动态修改当前报文的站号信息。
+ Suitable for DVP-ES/EX/EC/SS models, DVP-SA/SC/SX/EH models and AS300 model, the address refers to the API document, and the address can carry station number information, + for example: [s=2;D100],[s= 3;M100], you can dynamically modify the station number information of the current message. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 台达PLC的网口通讯类,基于Modbus-Rtu协议开发,按照台达的地址进行实现。
+ The tcp communication class of Delta PLC is developed based on the Modbus-Tcp protocol and implemented according to Delta's address. +
+ + 适用于DVP-ES/EX/EC/SS型号,DVP-SA/SC/SX/EH型号以及AS300型号,地址参考API文档,同时地址可以携带站号信息,举例:[s=2;D100],[s=3;M100],可以动态修改当前报文的站号信息。
+ Suitable for DVP-ES/EX/EC/SS models, DVP-SA/SC/SX/EH models and AS300 model, the address refers to the API document, and the address can carry station number information, + for example: [s=2;D100],[s= 3;M100], you can dynamically modify the station number information of the current message. +
+
+ + + + + + + + + + + + + + + + 地址支持X,Y,M,SM,S,T,C,HC,其中X和Y地址使用DD.DD格式,范围 X0.0~X63.15, Y0.0~Y63.15,其中X地址使用的是02功能码,其余的都是01功能码。
+ Address supports X, Y, M, SM, S, T, C, HC, where X and Y addresses use the DD.DD format, and the range is X0.0~X63.15, Y0.0~Y63.15, + where X addresses are used The one is 02 function code, and the rest are 01 function code. +
+
+ + + + 地址支持Y,M,SM,S,T,C,HC,其中Y地址使用DD.DD格式,Y0.0~Y63.15,不支持X地址的写入。
+ The address supports Y, M, SM, S, T, C, HC, where the Y address uses the DD.DD format, Y0.0~Y63.15, the writing of the X address is not supported. +
+
+ + + + 地址支持Y,M,SM,S,T,C,HC,其中Y地址使用DD.DD格式,Y0.0~Y63.15,不支持X地址的写入。
+ The address supports Y, M, SM, S, T, C, HC, where the Y address uses the DD.DD format, Y0.0~Y63.15, the writing of the X address is not supported. +
+
+ + + + 字地址支持X,Y,SR,D,T,C,HC,E, 所有的地址都是十进制的方式,地址范围参照API文档事例,举例:X1,Y10,SR100,D10,T20,C20,HC200,E2
+ Word address supports X, Y, SR, D, T, C, HC, E, all addresses are in decimal format, and the address range refers to the API document example, + for example: X1, Y10, SR100, D10, T20, C20, HC200 ,E2 +
+
+ + + + 字地址支持Y,SR,D,T,C,HC,E, 所有的地址都是十进制的方式,地址范围参照API文档事例,举例:Y10,SR100,D10,T20,C20,HC200,E2
+ Word address supports Y, SR, D, T, C, HC, E, all addresses are in decimal format, and the address range refers to the API document example, + for example: Y10, SR100, D10, T20, C20, HC200 ,E2 +
+
+ + + + + + + + + + + + + + + + + + 台达的系列信息 + + + + + 台达的Dvp系列,适用DVP-ES/EX/EC/SS型号,DVP-SA/SC/SX/EH型号 + + + + + 适用于AS300系列 + + 台达PLC的相关的接口信息 @@ -40287,150 +40922,6 @@ - - - 台湾永宏公司的编程口协议,此处是基于tcp的实现,地址信息请查阅api文档信息,地址可以携带站号信息,例如 s=2;D100
- The programming port protocol of Taiwan Yonghong company, here is the implementation based on TCP, - please refer to the API information for the address information, The address can carry station number information, such as s=2;D100 -
- - 支持位访问:M,X,Y,S,T(触点),C(触点),字访问:RT(当前值),RC(当前值),D,R;具体参照API文档 - -
- - - 实例化默认的构造方法
- Instantiate the default constructor -
-
- - - 使用指定的ip地址和端口来实例化一个对象
- Instantiate an object with the specified IP address and port -
- 设备的Ip地址 - 设备的端口号 -
- - - - - - PLC的站号信息,需要和实际的设置值一致,默认为1
- The station number information of the PLC needs to be consistent with the actual setting value. The default is 1. -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 永宏编程口协议的虚拟PLC,可以用来和类做通信测试,支持简单数据的读写操作。
- The virtual PLC of Yonghong programming port protocol can be used to communicate with and class, - and support simple data read and write operations. -
-
- - - 实例化一个基于Programe协议的虚拟的永宏PLC对象,可以用来和进行通信测试。 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FatekProgram相关的辅助方法,例如报文构建,核心读写支持 @@ -40635,6 +41126,150 @@ + + + 台湾永宏公司的编程口协议,此处是基于tcp的实现,地址信息请查阅api文档信息,地址可以携带站号信息,例如 s=2;D100
+ The programming port protocol of Taiwan Yonghong company, here is the implementation based on TCP, + please refer to the API information for the address information, The address can carry station number information, such as s=2;D100 +
+ + 支持位访问:M,X,Y,S,T(触点),C(触点),字访问:RT(当前值),RC(当前值),D,R;具体参照API文档 + +
+ + + 实例化默认的构造方法
+ Instantiate the default constructor +
+
+ + + 使用指定的ip地址和端口来实例化一个对象
+ Instantiate an object with the specified IP address and port +
+ 设备的Ip地址 + 设备的端口号 +
+ + + + + + PLC的站号信息,需要和实际的设置值一致,默认为1
+ The station number information of the PLC needs to be consistent with the actual setting value. The default is 1. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 永宏编程口协议的虚拟PLC,可以用来和类做通信测试,支持简单数据的读写操作。
+ The virtual PLC of Yonghong programming port protocol can be used to communicate with and class, + and support simple data read and write operations. +
+
+ + + 实例化一个基于Programe协议的虚拟的永宏PLC对象,可以用来和进行通信测试。 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 基于串口的自由协议,需要在地址里传入报文信息,也可以传入数据偏移信息,默认为 @@ -41097,117 +41732,6 @@ - - - 富士PLC的SPB协议,详细的地址信息见api文档说明,地址可以携带站号信息,例如:s=2;D100,PLC侧需要配置无BCC计算,包含0D0A结束码
- Fuji PLC's SPB protocol. For detailed address information, see the api documentation, - The address can carry station number information, for example: s=2;D100, PLC side needs to be configured with no BCC calculation, including 0D0A end code -
-
- - - 使用默认的构造方法实例化对象
- Instantiate the object using the default constructor -
-
- - - 使用指定的ip地址和端口来实例化一个对象
- Instantiate an object with the specified IP address and port -
- 设备的Ip地址 - 设备的端口号 -
- - - - - - PLC的站号信息
- PLC station number information -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 富士的SPB虚拟的PLC,线圈支持X,Y,M的读写,其中X只能远程读,寄存器支持D,R,W的读写操作。
- Fuji's SPB virtual PLC, the coil supports X, Y, M read and write, - X can only be read remotely, and the register supports D, R, W read and write operations. -
-
- - - 实例化一个富士SPB的网口和串口服务器,支持数据读写操作 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 富士PLC的SPH通信协议,可以和富士PLC进行通信,默认CPU0,需要根据实际进行调整。
@@ -41426,6 +41950,117 @@ PLC返回的报文信息 是否成功的结果对象 + + + 富士PLC的SPB协议,详细的地址信息见api文档说明,地址可以携带站号信息,例如:s=2;D100,PLC侧需要配置无BCC计算,包含0D0A结束码
+ Fuji PLC's SPB protocol. For detailed address information, see the api documentation, + The address can carry station number information, for example: s=2;D100, PLC side needs to be configured with no BCC calculation, including 0D0A end code +
+
+ + + 使用默认的构造方法实例化对象
+ Instantiate the object using the default constructor +
+
+ + + 使用指定的ip地址和端口来实例化一个对象
+ Instantiate an object with the specified IP address and port +
+ 设备的Ip地址 + 设备的端口号 +
+ + + + + + PLC的站号信息
+ PLC station number information +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 富士的SPB虚拟的PLC,线圈支持X,Y,M的读写,其中X只能远程读,寄存器支持D,R,W的读写操作。
+ Fuji's SPB virtual PLC, the coil supports X, Y, M read and write, + X can only be read remotely, and the register supports D, R, W read and write operations. +
+
+ + + 实例化一个富士SPB的网口和串口服务器,支持数据读写操作 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 富士的SPH虚拟的PLC,支持M1.0,M3.0,M10.0,I0,Q0的位与字的读写操作。
@@ -42466,6 +43101,48 @@ + + + 基恩士的数字传感器的以太网模块,可以同时连接并读取多个传感器模块的功能代码 + + + + + 实例化基恩士的Qna兼容3E帧协议的通讯对象
+ Instantiate Keyence Qna compatible 3E frame protocol communication object +
+
+ + + 指定ip地址及端口号来实例化一个基恩士的Qna兼容3E帧协议的通讯对象
+ Specify an IP address and port number to instantiate a Keynes Qna compatible 3E frame protocol communication object +
+ PLC的Ip地址 + PLC的端口 +
+ + + + + + + + + 使用M0命令读取所有的传感器的数据信息 + + 命令信息 + 是否成功的结果对象 + + + + + + + 坚持设备的返回的数据,并校验是否成功 + + 设备的返回数据信息 + 是否成功的结果对象 + 基恩士SR2000系列扫码设备的通用接口 @@ -42619,48 +43296,6 @@ 计数器(接点) - - - 基恩士的数字传感器的以太网模块,可以同时连接并读取多个传感器模块的功能代码 - - - - - 实例化基恩士的Qna兼容3E帧协议的通讯对象
- Instantiate Keyence Qna compatible 3E frame protocol communication object -
-
- - - 指定ip地址及端口号来实例化一个基恩士的Qna兼容3E帧协议的通讯对象
- Specify an IP address and port number to instantiate a Keynes Qna compatible 3E frame protocol communication object -
- PLC的Ip地址 - PLC的端口 -
- - - - - - - - - 使用M0命令读取所有的传感器的数据信息 - - 命令信息 - 是否成功的结果对象 - - - - - - - 坚持设备的返回的数据,并校验是否成功 - - 设备的返回数据信息 - 是否成功的结果对象 - 基恩士PLC的数据通信类,使用QnA兼容3E帧的通信协议实现,使用ASCII的格式,地址格式需要进行转换成三菱的格式,详细参照备注说明
@@ -44909,6 +45544,31 @@ + + + MC协议的类型 + + + + + 基于二进制的MC协议 + + + + + 基于ASCII格式的MC协议 + + + + + 基于R系列的二进制的MC协议 + + + + + 基于R系列的ASCII格式的MC协议 + + 基于MC协议的ASCII格式的辅助类 @@ -45367,31 +46027,6 @@ - - - MC协议的类型 - - - - - 基于二进制的MC协议 - - - - - 基于ASCII格式的MC协议 - - - - - 基于R系列的二进制的MC协议 - - - - - 基于R系列的ASCII格式的MC协议 - - MelsecA3CNet1协议通信的辅助类 @@ -46172,39 +46807,6 @@ 是否位读取 解析后的结果对象 - - - 三菱MC-A1E协议的虚拟服务器,支持M,X,Y,D,W的数据池读写操作,支持二进制及ASCII格式进行读写操作,需要在实例化的时候指定。
- The Mitsubishi MC-A1E protocol virtual server supports M, X, Y, D, W data pool read and write operations, - and supports binary and ASCII format read and write operations, which need to be specified during instantiation. -
- - 本三菱的虚拟PLC仅限商业授权用户使用,感谢支持。 - 如果你没有可以测试的三菱PLC,想要测试自己开发的上位机软件,或是想要在本机实现虚拟PLC,然后进行IO的输入输出练习,都可以使用本类来实现,地址参考DEMO程序 - -
- - - 实例化一个默认参数的mc协议的服务器
- Instantiate a mc protocol server with default parameters -
- 是否是二进制,默认是二进制,否则是ASCII格式 -
- - - - - - - - - - - - - - - 基于Qna 兼容3C帧的格式一的通讯,具体的地址需要参照三菱的基本地址
@@ -46606,67 +47208,6 @@ - - - 三菱的串口通信的对象,适用于读取FX系列的串口数据,支持的类型参考文档说明
- Mitsubishi's serial communication object is suitable for reading serial data of the FX series. Refer to the documentation for the supported types. -
- - 一般老旧的型号,例如FX2N之类的,需要将设置为False,如果是FX3U新的型号,则需要将设置为True - - - - - -
- - - 实例化一个默认的对象 - - - - - - - - - - - - - - - - - 获取或设置是否动态修改PLC的波特率,如果为 True,那么如果本对象设置了波特率 115200,就会自动修改PLC的波特率到 115200,因为三菱PLC再重启后都会使用默认的波特率9600
- Get or set whether to dynamically modify the baud rate of the PLC. If it is True, then if the baud rate of this object is set to 115200, - the baud rate of the PLC will be automatically modified to 115200, because the Mitsubishi PLC is not After restart, the default baud rate of 9600 will be used -
-
- - - - - - - - - - - - - - - - - - - - - - - - 三菱串口协议的网络版,如果使用的是 FX3U编程口(fx2n) -> GOT1000(RS232)(或是GOT2000) -> 上位机(以太网) 的方式,那么就需要把设置为 True
@@ -46817,6 +47358,29 @@ 字节数据 是否成功 + + + 三菱PLC通讯类,采用UDP的协议实现,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为ascii通讯
+ Mitsubishi PLC communication class is implemented using UDP protocol and Qna compatible 3E frame protocol. + The Ethernet module needs to be configured first on the PLC side, and it must be ascii communication. +
+ + + + + + + +
+ + + + + + + + + 三菱PLC通讯类,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为ASCII通讯格式
@@ -46855,29 +47419,6 @@ - - - 三菱PLC通讯类,采用UDP的协议实现,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为ascii通讯
- Mitsubishi PLC communication class is implemented using UDP protocol and Qna compatible 3E frame protocol. - The Ethernet module needs to be configured first on the PLC side, and it must be ascii communication. -
- - - - - - - -
- - - - - - - - - 三菱PLC的数据类型,此处包含了几个常用的类型
@@ -47379,6 +47920,230 @@ 特殊链接存储器
+ + + 三菱的R系列的MC协议,支持的地址类型和 有区别,详细请查看对应的API文档说明 + + + + + 实例化三菱R系列的Qna兼容3E帧协议的通讯对象
+ Instantiate the communication object of Mitsubishi's Qna compatible 3E frame protocol +
+
+ + + 指定ip地址和端口号来实例化一个默认的对象
+ Specify the IP address and port number to instantiate a default object +
+ PLC的Ip地址 + PLC的端口 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 分析三菱R系列的地址,并返回解析后的数据对象 + + 字符串地址 + 是否解析成功 + + + + 从三菱地址,是否位读取进行创建读取的MC的核心报文 + + 地址数据 + 是否进行了位读取操作 + 带有成功标识的报文对象 + + + + 以字为单位,创建数据写入的核心报文 + + 三菱的数据地址 + 实际的原始数据信息 + 带有成功标识的报文对象 + + + + 以位为单位,创建数据写入的核心报文 + + 三菱的地址信息 + 原始的bool数组数据 + 带有成功标识的报文对象 + + + + 三菱MC-A1E协议的虚拟服务器,支持M,X,Y,D,W的数据池读写操作,支持二进制及ASCII格式进行读写操作,需要在实例化的时候指定。
+ The Mitsubishi MC-A1E protocol virtual server supports M, X, Y, D, W data pool read and write operations, + and supports binary and ASCII format read and write operations, which need to be specified during instantiation. +
+ + 本三菱的虚拟PLC仅限商业授权用户使用,感谢支持。 + 如果你没有可以测试的三菱PLC,想要测试自己开发的上位机软件,或是想要在本机实现虚拟PLC,然后进行IO的输入输出练习,都可以使用本类来实现,地址参考DEMO程序 + +
+ + + 实例化一个默认参数的mc协议的服务器
+ Instantiate a mc protocol server with default parameters +
+ 是否是二进制,默认是二进制,否则是ASCII格式 +
+ + + + + + + + + + + + + + + + + + 三菱PLC通讯类,采用UDP的协议实现,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为二进制通讯
+ Mitsubishi PLC communication class is implemented using UDP protocol and Qna compatible 3E frame protocol. + The Ethernet module needs to be configured first on the PLC side, and it must be binary communication. +
+ + + + + + + + + + + +
+ + + + + + + + + 三菱PLC通讯类,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为二进制通讯
@@ -47578,170 +48343,6 @@ - - - 三菱的R系列的MC协议,支持的地址类型和 有区别,详细请查看对应的API文档说明 - - - - - 实例化三菱R系列的Qna兼容3E帧协议的通讯对象
- Instantiate the communication object of Mitsubishi's Qna compatible 3E frame protocol -
-
- - - 指定ip地址和端口号来实例化一个默认的对象
- Specify the IP address and port number to instantiate a default object -
- PLC的Ip地址 - PLC的端口 -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 分析三菱R系列的地址,并返回解析后的数据对象 - - 字符串地址 - 是否解析成功 - - - - 从三菱地址,是否位读取进行创建读取的MC的核心报文 - - 地址数据 - 是否进行了位读取操作 - 带有成功标识的报文对象 - - - - 以字为单位,创建数据写入的核心报文 - - 三菱的数据地址 - 实际的原始数据信息 - 带有成功标识的报文对象 - - - - 以位为单位,创建数据写入的核心报文 - - 三菱的地址信息 - 原始的bool数组数据 - 带有成功标识的报文对象 - 三菱MC协议的虚拟服务器,支持M,X,Y,D,W的数据池读写操作,支持二进制及ASCII格式进行读写操作,需要在实例化的时候指定。
@@ -47824,31 +48425,65 @@ - + - 三菱PLC通讯类,采用UDP的协议实现,采用Qna兼容3E帧协议实现,需要在PLC侧先的以太网模块先进行配置,必须为二进制通讯
- Mitsubishi PLC communication class is implemented using UDP protocol and Qna compatible 3E frame protocol. - The Ethernet module needs to be configured first on the PLC side, and it must be binary communication. + 三菱的串口通信的对象,适用于读取FX系列的串口数据,支持的类型参考文档说明
+ Mitsubishi's serial communication object is suitable for reading serial data of the FX series. Refer to the documentation for the supported types.
- + 一般老旧的型号,例如FX2N之类的,需要将设置为False,如果是FX3U新的型号,则需要将设置为True - - - - - - + +
- - + + + 实例化一个默认的对象 + - - + + - + + + + + + + + + + + + 获取或设置是否动态修改PLC的波特率,如果为 True,那么如果本对象设置了波特率 115200,就会自动修改PLC的波特率到 115200,因为三菱PLC再重启后都会使用默认的波特率9600
+ Get or set whether to dynamically modify the baud rate of the PLC. If it is True, then if the baud rate of this object is set to 115200, + the baud rate of the PLC will be automatically modified to 115200, because the Mitsubishi PLC is not After restart, the default baud rate of 9600 will be used +
+
+ + + + + + + + + + + + + + + + + + + + + + @@ -51392,6 +52027,252 @@ + + + OpenSsl的连接对象,控制当前的 + + + + + 指定收发数据实例化一个对象 + + 发送数据的委托方法 + 接收数据的委托方法 + + + + 获取或设置当前的日志对象 + + + + + 连接 + + + + + 将PDU数据写入到当前的信息中 + + 原始数据信息 + + + + 将PDU数据写入到当前的信息中 + + 等待发送的字节列表 + + + + 收到了加密数据,写入到ssl里进行解密 + + + + + + 初始化方法 + + + + + 运行当前的SSL方法 + + + + + + + + + + + 西门子的数据对象信息 + + + + + RelationId + + + + + 第二个关联的信息 + + + + + ClassId + + + + + ClassFlags + + + + + AttributeId + + + + + 名称信息 + + + + + 数据对象关联的子对象信息 + + + + + 关联的节点信息 + + + + + + + + + + + + + + 写入一个uint类型的数据,使用动态长度表示方式,写入到字节流里去 + + 字节流 + 值信息 + + + + 写入一个ulong类型的数据,使用动态长度表示方式,写入到字节流里去 + + 字节流 + 值信息 + + + + 从缓存中获取动态长度的uint类型数据 + + 缓存值 + 索引信息 + 结果值 + + + + 从缓存中获取动态长度的ulong类型数据 + + 缓存值 + 索引信息 + 结果值 + + + + S7对象信息 + + + + + 将对象写入报文消息的方法 + + 消息报文的数据流 + + + + 获取字段的数量 + + + + + + 节点类对象 + + + + + 数据名称 + + + + + 数据ID信息,第一个为DB块的信息,第二个是数据信息,如果是结构体,则继续往后面拓展 + + + + + 类型代号 + + + + + 数组长度,如果小于0则表示标量的数据 + + + + + 当类型为结构体的时候,关联的其他结构体的ID信息 + + + + + 当类型为结构体的时候,标签的偏移信息 + + + + + 获取类型的文本描述 + + string info + + + + 获取LID的文本信息 + + + + + + + + + + + + 深度克隆一个对象 + + + + + + S7对象的类,表示一个对象信息 + + + + + 类型代号 + + + + + 内存数据 + + + + + 值对象 + + + + + 标记信息 + + + + + 关联的结构体的标识信息 + + Contains the methods to convert between and S7 representation of datetime values. @@ -52583,6 +53464,286 @@ message id informaion 包含结果对象的报文 -> Message containing the result object + + + 测试的基于S7 PLUS的协议,功能还未完成,无法调用 + + + + + 实例化一个西门子的S7协议的通讯对象
+ Instantiate a communication object for a Siemens S7 protocol +
+
+ + + 实例化一个西门子的S7协议的通讯对象并指定Ip地址
+ Instantiate a communication object for a Siemens S7 protocol and specify an IP address +
+ Ip地址 + 端口号信息 +
+ + + + + + 西门子相关的本地TSAP参数信息
+ A parameter information related to Siemens +
+
+ + + 西门子相关的远程TSAP参数信息
+ A parameter information related to Siemens +
+
+ + + 最近一次的PDU类型 + + + + + 获取当前西门子的PDU的长度信息,不同型号PLC的值会不一样。
+ Get the length information of the current Siemens PDU, the value of different types of PLC will be different. +
+
+ + + 获取当前的通信会话ID信息 + + + + + 获取当前的PLC的订货号 + + + + + + + + + + + + + + + + + + + + + + + + + + + 此处写入的数据需要带标志位,类型,数据信息,所以灵活的支持任意的数据写入,如果需要写入 uint8[] 数据本身,使用方法 + + + + + + + + + + + 使用类型代号为 0x0a 写入到指定的地址里,返回是否写入成功的结果对象 + + 地址信息 + 二进制的值 + 是否写入成功 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 浏览当前PLC的DB块列表,并且拿到用户自定义的DB块的关联ID信息
+ Browse the DB block list of the current PLC and get the associated ID information of the user-defined DB block +
+ DB块列表信息 +
+ + + 浏览PLC的点位信息 + + 点位结果列表 + + + + 批量读取多个节点数据信息,需要传入节点数组 + + 节点数组信息 + 成功的结果列表 + + + + + + + + + + + + + 将实际的数据写入到标签中去,支持批量写入的操作。需要传入实际的点位地址,以及封装后的数据内容。 + + 点位信息 + 封装过的数据 + 是否写入成功 + + + + + + + + + + + + + + + + + + + 发送数据信息 + + Pdu 报文信息 + 是否发送成功 + + + + + + + 构建S7完整的通信报文 + + 报文信息 + 报文 + + + + S7-Plus协议专用的数据流 + + + + + 使用指定的对象,是否所属权来实例化一个对象 + + 套接字对象 + 是否所属权 + 当前的PLC对象 + + + + + + + 西门子S7协议的虚拟服务器,支持TCP协议,模拟的是1200的PLC进行通信,在客户端进行操作操作的时候,最好是选择1200的客户端对象进行通信。
@@ -53910,48 +55071,44 @@ - + - 信捷PLC的XC,XD,XL系列的串口通讯类,底层使用ModbusRtu协议实现,每个系列支持的地址类型及范围不一样,详细参考DEMO程序说明
- XC, XD, XL series serial communication of Xinje PLC, the bottom layer is implemented by ModbusRtu protocol, - the address type and range supported by each series are different, please refer to the Demo for details -
- - 地址可以携带站号访问,例如 s=2;M100
- 对于XC系列适用于XC1/XC2/XC3/XC5/XCM/XCC系列,线圈支持X,Y,S,M,T,C,寄存器支持D,F,E,T,C
- 对于XD,XL系列适用于XD1/XD2/XD3/XD5/XDM/XDC/XD5E/XDME/XDH/XL1/XL3/XL5/XL5E/XLME, - 线圈支持X,Y,S,M,SM,T,C,ET,SEM,HM,HS,HT,HC,HSC 寄存器支持D,ID,QD,SD,TD,CD,ETD,HD,HSD,HTD,HCD,HSCD,FD,SFD,FS
-
-
- - - 实例化一个默认的对象 + 信捷内部TCP的虚拟服务器类,基于Modbus的虚拟服务器扩展而来,从服务上只支持modbus地址读写,从客户端额外支持M,D,SD,SM,HD 五个数据区
+ Xinjie's internal TCP virtual server class, based on Modbus virtual server extension, + only supports modbus address reading and writing from the service, and additionally supports M, D, SD, SM, HD five data areas from the client
- + - 指定客户端自己的站号来初始化
- Specify the client's own station number to initialize -
- 客户端自身的站号 -
- - - 通过指定站号以及PLC的系列来实例化一个新的对象
- Instantiate a new object by specifying the station number and PLC series -
- PLC的系列 - 站号信息 -
- - - 获取或设置当前的信捷PLC的系列,默认XC系列 + 实例化一个默认参数的mc协议的服务器
+ Instantiate a mc protocol server with default parameters
- + + + + + + + + + + + + + - + + + 将状态码,数据打包成一个完成的回复报文信息 + + 原始的命令数据 + 状态信息 + 数据 + 状态信息 + + @@ -54021,44 +55178,48 @@ XL系列
- + - 信捷内部TCP的虚拟服务器类,基于Modbus的虚拟服务器扩展而来,从服务上只支持modbus地址读写,从客户端额外支持M,D,SD,SM,HD 五个数据区
- Xinjie's internal TCP virtual server class, based on Modbus virtual server extension, - only supports modbus address reading and writing from the service, and additionally supports M, D, SD, SM, HD five data areas from the client + 信捷PLC的XC,XD,XL系列的串口通讯类,底层使用ModbusRtu协议实现,每个系列支持的地址类型及范围不一样,详细参考DEMO程序说明
+ XC, XD, XL series serial communication of Xinje PLC, the bottom layer is implemented by ModbusRtu protocol, + the address type and range supported by each series are different, please refer to the Demo for details +
+ + 地址可以携带站号访问,例如 s=2;M100
+ 对于XC系列适用于XC1/XC2/XC3/XC5/XCM/XCC系列,线圈支持X,Y,S,M,T,C,寄存器支持D,F,E,T,C
+ 对于XD,XL系列适用于XD1/XD2/XD3/XD5/XDM/XDC/XD5E/XDME/XDH/XL1/XL3/XL5/XL5E/XLME, + 线圈支持X,Y,S,M,SM,T,C,ET,SEM,HM,HS,HT,HC,HSC 寄存器支持D,ID,QD,SD,TD,CD,ETD,HD,HSD,HTD,HCD,HSCD,FD,SFD,FS
+
+
+ + + 实例化一个默认的对象 - + - 实例化一个默认参数的mc协议的服务器
- Instantiate a mc protocol server with default parameters + 指定客户端自己的站号来初始化
+ Specify the client's own station number to initialize +
+ 客户端自身的站号 +
+ + + 通过指定站号以及PLC的系列来实例化一个新的对象
+ Instantiate a new object by specifying the station number and PLC series +
+ PLC的系列 + 站号信息 +
+ + + 获取或设置当前的信捷PLC的系列,默认XC系列 - - - - - - - - - - - - - + - - - 将状态码,数据打包成一个完成的回复报文信息 - - 原始的命令数据 - 状态信息 - 数据 - 状态信息 - - + @@ -55166,6 +56327,22 @@ 原始的数据信息 是否解析成功的结果对象 + + + 一个强类型的资源类,用于查找本地化的字符串等。 + + + + + 返回此类使用的缓存的 ResourceManager 实例。 + + + + + 重写当前线程的 CurrentUICulture 属性,对 + 使用此强类型资源类的所有资源查找执行重写。 + + ABB机器人的web api接口的客户端,可以方便快速的获取到abb机器人的一些数据信息
@@ -60175,6 +61352,41 @@ + + + websocket 协议的 op的枚举信息 + + + + + 连续消息分片 + + + + + 文本消息分片 + + + + + 二进制消息分片 + + + + + 连接关闭 + + + + + 心跳检查 + + + + + 心跳检查 + + diff --git a/HighWayIot.Plc/HighWayIot.Plc.csproj b/HighWayIot.Plc/HighWayIot.Plc.csproj index b6e2b18..0dcc92f 100644 --- a/HighWayIot.Plc/HighWayIot.Plc.csproj +++ b/HighWayIot.Plc/HighWayIot.Plc.csproj @@ -32,6 +32,10 @@ 4 + + False + ..\HighWayIot.Library\HslCommunication.dll + @@ -59,10 +63,5 @@ - - - 12.1.3 - - \ No newline at end of file diff --git a/HighWayIot.Plc/PlcConnect.cs b/HighWayIot.Plc/PlcConnect.cs index d24140b..7c71b05 100644 --- a/HighWayIot.Plc/PlcConnect.cs +++ b/HighWayIot.Plc/PlcConnect.cs @@ -38,6 +38,10 @@ namespace HighWayIot.Plc }; var a = plc.ConnectServer(); logHelper.Info($"Plc连接 信息:[{a.Message}] 是否成功:[{a.IsSuccess.ToString()}] 错误代码:[{a.ErrorCode}]"); + if (!reslt.IsSuccess) + { + logHelper.Info("链接失败:"+reslt.Message); + } } catch (Exception ex) { diff --git a/HighWayIot.Winform/Program.cs b/HighWayIot.Winform/Program.cs index 30a819c..72ee4ff 100644 --- a/HighWayIot.Winform/Program.cs +++ b/HighWayIot.Winform/Program.cs @@ -31,7 +31,7 @@ namespace HighWayIot.Winform //Console.OutputEncoding = System.Text.Encoding.UTF8; //Console.InputEncoding = System.Text.Encoding.UTF8; - + var b= PlcConnect.IsConnect; AllocConsole();//调用系统API,调用控制台窗口 // 设置控制台编码为系统默认编码(解决乱码问题)