MemobusHelper 类 |
命名空间: HslCommunication.Profinet.YASKAWA.Helper
MemobusHelper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
MemobusHelper | 初始化 MemobusHelper 类的一个新实例 |
名称 | 说明 | |
---|---|---|
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. |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |