HslDeviceAddressAttribute 类 |
命名空间: HslCommunication.Reflection
HslDeviceAddressAttribute 类型公开以下成员。
名称 | 说明 | |
---|---|---|
HslDeviceAddressAttribute(String) |
实例化一个地址特性,指定地址信息,用于单变量的数据 Instantiate an address feature, specify the address information, for single variable data | |
HslDeviceAddressAttribute(String, Int32) |
实例化一个地址特性,指定地址信息和数据长度,通常应用于数组的批量读取 Instantiate an address feature, specify address information and data length, usually used in batch reading of arrays | |
HslDeviceAddressAttribute(String, Type) |
实例化一个地址特性,指定地址信息,用于单变量的数据,并指定设备类型 Instantiate an address feature, specify address information, data for a single variable, and specify the device type | |
HslDeviceAddressAttribute(String, Int32, String) |
实例化一个地址特性,指定地址信息和数据长度,通常应用于数组的批量读取 Instantiate an address feature, specify address information and data length, usually used in batch reading of arrays | |
HslDeviceAddressAttribute(String, Int32, Type) |
实例化一个地址特性,指定地址信息和数据长度,通常应用于数组的批量读取,并指定设备的类型,可用于不同种类的PLC Instantiate an address feature, specify address information and data length, usually used in batch reading of arrays, and specify the type of equipment, which can be used for different types of PLCs | |
HslDeviceAddressAttribute(String, Int32, Type, String) |
实例化一个地址特性,指定地址信息和数据长度,通常应用于数组的批量读取,并指定设备的类型,可用于不同种类的PLC Instantiate an address feature, specify address information and data length, usually used in batch reading of arrays, and specify the type of equipment, which can be used for different types of PLCs |
名称 | 说明 | |
---|---|---|
Address |
数据的地址信息,真实的设备的地址信息 Data address information, real device address information | |
DeviceType |
设备的类型,如果指定了特殊的PLC,那么该地址就可以支持多种不同PLC The type of equipment, if a special PLC is specified, then the address can support a variety of different PLCs | |
Encoding |
如果关联了字符串类型的数据,则表示指定的字符编码,默认 ASCII 编码
| |
Length |
读取的数据长度 Length of data read | |
TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (继承自 Attribute。) |
名称 | 说明 | |
---|---|---|
Equals | Returns a value that indicates whether this instance is equal to a specified object. (继承自 Attribute。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetDataLength |
获取数据的数量信息,如果小于0,则返回1
Get the quantity information of the data, if it is less than 0, return 1
| |
GetEncoding |
获取当前关联的编码信息,通常用于解析字符串的操作 Gets the encoding information of the current association, usually used for string parsing operations | |
GetHashCode | Returns the hash code for this instance. (继承自 Attribute。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (继承自 Attribute。) | |
Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (继承自 Attribute。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
ToString | Returns a string that represents the current object. (重写 ObjectToString.) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |