点击或拖拽改变大小

HslDeviceAddressAttribute 类

应用于Hsl组件库读取的动态地址解析,具体用法为创建一个类,创建数据属性,如果这个属性需要绑定PLC的真实数据,就在属性的特性上应用本特性。
Applied to the dynamic address resolution read by the Hsl component library, the specific usage is to create a class and create data attributes. If this attribute needs to be bound to the real data of the PLC, this feature is applied to the characteristics of the attribute.
继承层次
SystemObject
  SystemAttribute
    HslCommunication.ReflectionHslDeviceAddressAttribute

命名空间:  HslCommunication.Reflection
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:10.2.2.0 (10.2.2.0)
语法
public class HslDeviceAddressAttribute : Attribute

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, 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
Top
属性
  名称说明
公共属性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
公共属性Length
读取的数据长度
Length of data read
公共属性TypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(继承自 Attribute。)
Top
方法
  名称说明
公共方法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。)
公共方法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.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见