点击或拖拽改变大小

MemobusHelper 类

Memobus的辅助类对象
继承层次
SystemObject
  HslCommunication.Profinet.YASKAWA.HelperMemobusHelper

命名空间:  HslCommunication.Profinet.YASKAWA.Helper
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法
public class MemobusHelper

MemobusHelper 类型公开以下成员。

构造函数
  名称说明
公共方法MemobusHelper
初始化 MemobusHelper 类的一个新实例
Top
方法
  名称说明
公共方法Equals
Determines whether the specified object is equal to the current object.
(继承自 Object。)
受保护的方法Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
公共方法GetHashCode
Serves as the default hash function.
(继承自 Object。)
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法静态成员Read
批量读取字节数组信息,需要指定地址和长度,返回原始的字节数组
Batch read byte array information, need to specify the address and length, return the original byte array
公共方法静态成员ReadAsync
批量读取字节数组信息,需要指定地址和长度,返回原始的字节数组
Batch read byte array information, need to specify the address and length, return the original byte array
公共方法静态成员ReadBool
批量读取Boolean数组信息,需要指定地址和长度,返回Boolean 数组
Batch read Boolean array information, need to specify the address and length, return Boolean array
公共方法静态成员ReadBoolAsync
批量读取Boolean数组信息,需要指定地址和长度,返回Boolean 数组
Batch read Boolean array information, need to specify the address and length, return Boolean array
公共方法静态成员ReadRandom(IMemobus, String)
随机读取扩展的保持寄存器的内容,也即读取不连续地址的字数据,可以指定多个地址,然后一次性读取所有的数据,然后解析出实际的数据
Randomly read the contents of the extended hold register, that is, read word data of discontinuous addresses, you can specify multiple addresses, then read all the data at once, and then parse out the actual data
公共方法静态成员ReadRandom(IMemobus, UInt16)
随机读取扩展的保持寄存器的内容,也即读取不连续地址的字数据,可以指定多个地址,然后一次性读取所有的数据,然后解析出实际的数据
Randomly read the contents of the extended hold register, that is, read word data of discontinuous addresses, you can specify multiple addresses, then read all the data at once, and then parse out the actual data
公共方法静态成员ReadRandomAsync(IMemobus, String)
随机读取扩展的保持寄存器的内容,也即读取不连续地址的字数据,可以指定多个地址,然后一次性读取所有的数据,然后解析出实际的数据
Randomly read the contents of the extended hold register, that is, read word data of discontinuous addresses, you can specify multiple addresses, then read all the data at once, and then parse out the actual data
公共方法静态成员ReadRandomAsync(IMemobus, UInt16)
随机读取扩展的保持寄存器的内容,也即读取不连续地址的字数据,可以指定多个地址,然后一次性读取所有的数据,然后解析出实际的数据
Randomly read the contents of the extended hold register, that is, read word data of discontinuous addresses, you can specify multiple addresses, then read all the data at once, and then parse out the actual data
公共方法ToString
Returns a string that represents the current object.
(继承自 Object。)
公共方法静态成员Write(IMemobus, String, Boolean)
写入单个的Boolean数据,返回是否成功
Write a single Boolean data, and return whether the write was successful
公共方法静态成员Write(IMemobus, String, Boolean)
批量写入Boolean数组数据,返回是否成功
Batch write Boolean array data, return whether the write was successful
公共方法静态成员Write(IMemobus, String, Byte)
写入原始的byte数组数据到指定的地址,返回是否写入成功
Write the original byte array data to the specified address, and return whether the write was successful
公共方法静态成员代码示例Write(IMemobus, String, Int16, FuncString, Int16, OperateResult)
写入short数据,返回是否成功
Write short data, returns whether success
公共方法静态成员代码示例Write(IMemobus, String, UInt16, FuncString, UInt16, OperateResult)
写入ushort数据,返回是否成功
Write ushort data, return whether the write was successful
公共方法静态成员WriteAsync(IMemobus, String, Boolean)
写入单个的Boolean数据,返回是否成功
Write a single Boolean data, and return whether the write was successful
公共方法静态成员WriteAsync(IMemobus, String, Boolean)
批量写入Boolean数组数据,返回是否成功
Batch write Boolean array data, return whether the write was successful
公共方法静态成员WriteAsync(IMemobus, String, Byte)
写入原始的byte数组数据到指定的地址,返回是否写入成功
Write the original byte array data to the specified address, and return whether the write was successful
公共方法静态成员代码示例WriteAsync(IMemobus, String, Int16, FuncString, Int16, TaskOperateResult)
写入short数据,返回是否成功
Write short data, returns whether success
公共方法静态成员代码示例WriteAsync(IMemobus, String, UInt16, FuncString, UInt16, TaskOperateResult)
写入ushort数据,返回是否成功
Write ushort data, return whether the write was successful
公共方法静态成员WriteRandom
随机写入扩展的保持寄存器的内容,也即写入不连续的地址的字数据,字节数组的长度必须为地址数组长度的两倍,才能正确写入。
Write the contents of the extended hold registers randomly, that is, write word data for discontinuous addresses, and the byte array must be twice the length of the address array to be written correctly.
公共方法静态成员WriteRandomAsync
随机写入扩展的保持寄存器的内容,也即写入不连续的地址的字数据,字节数组的长度必须为地址数组长度的两倍,才能正确写入。
Write the contents of the extended hold registers randomly, that is, write word data for discontinuous addresses, and the byte array must be twice the length of the address array to be written correctly.
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见