McHelper 方法 |
McHelper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
ErrorStateReset |
LED 熄灭 出错代码初始化 LED off Error code initialization | |
ErrorStateResetAsync |
LED 熄灭 出错代码初始化 LED off Error code initialization | |
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。) | |
GetReadBoolLength |
返回按照位单位读取的最低的长度信息
| |
GetReadWordLength |
返回按照字单位读取的最低的长度信息
| |
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(IReadWriteMc, String) |
读取单个的Boolean数据信息 Read a single Boolean data message | |
ReadBool(IReadWriteMc, String, UInt16, Boolean) |
批量读取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 | |
ReadExtend | [商业授权] 读取扩展的数据信息,需要在原有的地址,长度信息之外,输入扩展值信息 [Authorization] To read the extended data information, you need to enter the extended value information in addition to the original address and length information | |
ReadExtendAsync | [商业授权] 读取扩展的数据信息,需要在原有的地址,长度信息之外,输入扩展值信息 [Authorization] To read the extended data information, you need to enter the extended value information in addition to the original address and length information | |
ReadMemory | [商业授权] 读取缓冲寄存器的数据信息,地址直接为偏移地址 [Authorization] Read the data information of the buffer register, the address is directly the offset address | |
ReadMemoryAsync | [商业授权] 读取缓冲寄存器的数据信息,地址直接为偏移地址 [Authorization] Read the data information of the buffer register, the address is directly the offset address | |
ReadPlcType |
读取PLC的型号信息,例如 Q02HCPU Read PLC model information, such as Q02HCPU | |
ReadPlcTypeAsync |
读取PLC的型号信息,例如 Q02HCPU Read PLC model information, such as Q02HCPU | |
ReadRandom(IReadWriteMc, String) |
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。收到结果后,需要自行解析数据 Randomly read PLC data information, which can be combined across addresses and types, but each address can only read one word, which is the content of 2 bytes. After receiving the results, you need to parse the data yourself | |
ReadRandom(IReadWriteMc, String, UInt16) |
使用块读取PLC的数据信息,可以跨地址,跨类型组合,每个地址是任意的长度。收到结果后,需要自行解析数据,目前只支持字地址,比如D区,W区,R区,不支持X,Y,M,B,L等等 Read the data information of the PLC randomly. It can be combined across addresses and types. Each address is of any length. After receiving the results, you need to parse the data yourself. Currently, only word addresses are supported, such as D area, W area, R area. X, Y, M, B, L, etc | |
ReadRandomAsync(IReadWriteMc, String) |
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。收到结果后,需要自行解析数据 Randomly read PLC data information, which can be combined across addresses and types, but each address can only read one word, which is the content of 2 bytes. After receiving the results, you need to parse the data yourself | |
ReadRandomAsync(IReadWriteMc, String, UInt16) |
使用块读取PLC的数据信息,可以跨地址,跨类型组合,每个地址是任意的长度。收到结果后,需要自行解析数据,目前只支持字地址,比如D区,W区,R区,不支持X,Y,M,B,L等等 Read the data information of the PLC randomly. It can be combined across addresses and types. Each address is of any length. After receiving the results, you need to parse the data yourself. Currently, only word addresses are supported, such as D area, W area, R area. X, Y, M, B, L, etc | |
ReadRandomInt16 |
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。收到结果后,自动转换为了short类型的数组 Randomly read PLC data information, which can be combined across addresses and types, but each address can only read one word, which is the content of 2 bytes. After receiving the result, it is automatically converted to an array of type short. | |
ReadRandomInt16Async |
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。收到结果后,自动转换为了short类型的数组 Randomly read PLC data information, which can be combined across addresses and types, but each address can only read one word, which is the content of 2 bytes. After receiving the result, it is automatically converted to an array of type short. | |
ReadRandomUInt16 |
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。收到结果后,自动转换为了ushort类型的数组 Randomly read PLC data information, which can be combined across addresses and types, but each address can only read one word, which is the content of 2 bytes. After receiving the result, it is automatically converted to an array of type ushort. | |
ReadRandomUInt16Async |
随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。收到结果后,自动转换为了ushort类型的数组 Randomly read PLC data information, which can be combined across addresses and types, but each address can only read one word, which is the content of 2 bytes. After receiving the result, it is automatically converted to an array of type ushort. | |
ReadSmartModule | [商业授权] 读取智能模块的数据信息,需要指定模块地址,偏移地址,读取的字节长度 [Authorization] To read the extended data information, you need to enter the extended value information in addition to the original address and length information | |
ReadSmartModuleAsync | [商业授权] 读取智能模块的数据信息,需要指定模块地址,偏移地址,读取的字节长度 [Authorization] To read the extended data information, you need to enter the extended value information in addition to the original address and length information | |
RemoteReset |
远程Reset操作 Remote Reset Operation | |
RemoteResetAsync |
远程Reset操作 Remote Reset Operation | |
RemoteRun |
远程Run操作 Remote Run Operation | |
RemoteRunAsync |
远程Run操作 Remote Run Operation | |
RemoteStop |
远程Stop操作 Remote Stop operation | |
RemoteStopAsync |
远程Stop操作 Remote Stop operation | |
ToString | Returns a string that represents the current object. (继承自 Object。) | |
Write(IReadWriteMc, String, Byte) |
写入原始的byte数组数据到指定的地址,返回是否写入成功 Write the original byte array data to the specified address, and return whether the write was successful | |
Write(IReadWriteMc, String, Boolean, Boolean) |
批量写入Boolean数组数据,返回是否成功 Batch write Boolean array data, return whether the write was successful | |
WriteAsync(IReadWriteMc, String, Byte) |
写入原始的byte数组数据到指定的地址,返回是否写入成功 Write the original byte array data to the specified address, and return whether the write was successful | |
WriteAsync(IReadWriteMc, String, Boolean, Boolean) |
批量写入Boolean数组数据,返回是否成功 Batch write Boolean array data, return whether the write was successful |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |