DLT645Helper 类 |
命名空间: HslCommunication.Instrument.DLT.Helper
DLT645Helper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
DLT645Helper | 初始化 DLT645Helper 类的一个新实例 |
名称 | 说明 | |
---|---|---|
AnalysisBytesAddress |
从用户输入的地址信息中解析出真实的地址及数据标识
| |
AnalysisIntegerAddress |
从用户输入的地址信息中解析出真实的地址及数据标识
| |
BroadcastTime |
广播指定的时间,强制从站与主站时间同步,传入DateTime时间对象,没有数据返回。 Broadcast the specified time, force the slave station to synchronize with the master station time, pass in the DateTime time object, and no data will be returned. | |
BroadcastTimeAsync |
广播指定的时间,强制从站与主站时间同步,传入DateTime时间对象,没有数据返回。 Broadcast the specified time, force the slave station to synchronize with the master station time, pass in the DateTime time object, and no data will be returned. | |
BuildDlt645EntireCommand |
将指定的地址信息,控制码信息,数据域信息打包成完整的报文命令
| |
ChangeBaudRate |
更改通信速率,波特率可选 600,1200,2400,4800,9600,19200,其他值无效,可以携带地址域信息,s=1;9600 Change the communication rate, the baud rate can be 600, 1200, 2400, 4800, 9600, 19200, other values are invalid, you can carry address domain information, s=1;9600 | |
ChangeBaudRateAsync |
更改通信速率,波特率可选 600,1200,2400,4800,9600,19200,其他值无效,可以携带地址域信息,s=1;9600 Change the communication rate, the baud rate can be 600, 1200, 2400, 4800, 9600, 19200, other values are invalid, you can carry address domain information, s=1;9600 | |
CheckReceiveDataComplete |
判断DLT645的报文是否是完整的
| |
CheckResponse |
检查当前的DLT仪表设备反馈数据信息是否正确
| |
CheckResponseCS |
检查设备返回的报文信息,是否校验码确认通过
| |
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。) | |
FindHeadCode68H |
寻找0x68字节开头的位置信息
| |
FreezeCommand |
对设备发送冻结命令,默认点对点操作,地址域为 99999999999999 时为广播,数据域格式说明:MMDDhhmm(月日时分),
99DDhhmm表示月为周期定时冻结,9999hhmm表示日为周期定时冻结,999999mm表示以小时为周期定时冻结,99999999表示瞬时冻结 Send a freeze command to the device, the default point-to-point operation, when the address field is 9999999999999, it is broadcast, and the data field format description: MMDDhhmm (month, day, hour and minute), 99DDhhmm means the month is the periodic fixed freeze, 9999hhmm means the day is the periodic periodic freeze, and 999999mm means the hour It is periodic timed freezing, 99999999 means instantaneous freezing | |
FreezeCommandAsync |
对设备发送冻结命令,默认点对点操作,地址域为 99999999999999 时为广播,数据域格式说明:MMDDhhmm(月日时分),
99DDhhmm表示月为周期定时冻结,9999hhmm表示日为周期定时冻结,999999mm表示以小时为周期定时冻结,99999999表示瞬时冻结 Send a freeze command to the device, the default point-to-point operation, when the address field is 9999999999999, it is broadcast, and the data field format description: MMDDhhmm (month, day, hour and minute), 99DDhhmm means the month is the periodic fixed freeze, 9999hhmm means the day is the periodic periodic freeze, and 999999mm means the hour It is periodic timed freezing, 99999999 means instantaneous freezing | |
Function1C |
功能码1C的操作,主要用来控制跳闸(控制类型1A),合闸允许(控制类型1B)
| |
GetAddressByteFromString |
将地址解析成BCD码的地址,并且扩充到12位,不够的补0操作
| |
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 |
根据指定的数据标识来读取相关的原始数据信息,地址标识根据手册来,从高位到地位,例如 00-00-00-00,分割符可以任意特殊字符或是没有分隔符。 Read the relevant original data information according to the specified data identifier. The address identifier is based on the manual, from high to position, such as 00-00-00-00. The separator can be any special character or no separator. | |
ReadAddress |
读取设备的通信地址,仅支持点对点通讯的情况,返回地址域数据,例如:149100007290 Read the communication address of the device, only support point-to-point communication, and return the address field data, for example: 149100007290 | |
ReadAddressAsync |
读取设备的通信地址,仅支持点对点通讯的情况,返回地址域数据,例如:149100007290 Read the communication address of the device, only support point-to-point communication, and return the address field data, for example: 149100007290 | |
ReadAsync |
根据指定的数据标识来读取相关的原始数据信息,地址标识根据手册来,从高位到地位,例如 00-00-00-00,分割符可以任意特殊字符或是没有分隔符。 Read the relevant original data information according to the specified data identifier. The address identifier is based on the manual, from high to position, such as 00-00-00-00. The separator can be any special character or no separator. | |
ReadDouble |
读取指定地址的所有的double数据信息,一般来说,一个地址只有一个数据,但是少部分的地址存在多个数据,然后全部转换为double数据信息 Read all the double data information of the specified address, in general, an address has only one data, but a small number of addresses exist multiple data, and then all converted to double data information | |
ReadDoubleAsync |
读取指定地址的所有的double数据信息,一般来说,一个地址只有一个数据,但是少部分的地址存在多个数据,然后全部转换为double数据信息 Read all the double data information of the specified address, in general, an address has only one data, but a small number of addresses exist multiple data, and then all converted to double data information | |
ReadStringArray |
读取指定地址的所有的字符串数据信息,一般来说,一个地址只有一个数据,但是少部分的地址存在多个数据,例如 01-01-00-00 正向有功总需求及发生时间 Read all the string data information of the specified address, in general, there is only one data for one address, but there are multiple data for a small number of addresses, such as 01-01-00-00 Forward active total demand and occurrence time | |
ReadStringArrayAsync |
读取指定地址的所有的字符串数据信息,一般来说,一个地址只有一个数据,但是少部分的地址存在多个数据,例如 01-01-00-00 正向有功总需求及发生时间 Read all the string data information of the specified address, in general, there is only one data for one address, but there are multiple data for a small number of addresses, such as 01-01-00-00 Forward active total demand and occurrence time | |
ToString | Returns a string that represents the current object. (继承自 Object。) | |
Write(IDlt645, String, String, String, Byte) |
根据指定的数据标识来写入相关的原始数据信息,地址标识根据手册来,从高位到地位,例如 00-00-00-00,分割符可以任意特殊字符或是没有分隔符。 Read the relevant original data information according to the specified data identifier. The address identifier is based on the manual, from high to position, such as 00-00-00-00. The separator can be any special character or no separator. | |
Write(IDlt645, String, String, String, String) |
将指定的数据写入到仪表中,,地址标识根据手册来,从高位到地位,例如 00-00-00-00,分割符可以任意特殊字符或是没有分隔符。 Write the data to the gauge, address identification according to the manual, from high bit to position, such as 00-00-00-00, the separator can be any special character or no delimiter. | |
WriteAddress |
写入设备的地址域信息,仅支持点对点通讯的情况,需要指定地址域信息,例如:149100007290 Write the address domain information of the device, only support point-to-point communication, you need to specify the address domain information, for example: 149100007290 | |
WriteAddressAsync |
写入设备的地址域信息,仅支持点对点通讯的情况,需要指定地址域信息,例如:149100007290 Write the address domain information of the device, only support point-to-point communication, you need to specify the address domain information, for example: 149100007290 | |
WriteAsync(IDlt645, String, String, String, Byte) |
根据指定的数据标识来写入相关的原始数据信息,地址标识根据手册来,从高位到地位,例如 00-00-00-00,分割符可以任意特殊字符或是没有分隔符。 Read the relevant original data information according to the specified data identifier. The address identifier is based on the manual, from high to position, such as 00-00-00-00. The separator can be any special character or no separator. | |
WriteAsync(IDlt645, String, String, String, String) |
将指定的数据写入到仪表中,,地址标识根据手册来,从高位到地位,例如 00-00-00-00,分割符可以任意特殊字符或是没有分隔符。 Write the data to the gauge, address identification according to the manual, from high bit to position, such as 00-00-00-00, the separator can be any special character or no delimiter. |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |