点击或拖拽改变大小

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 中) 版本:11.8.2.0 (11.8.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 (继承自 Attribute。)
Top
方法
  名称说明
公共方法Equals (继承自 Attribute。)
受保护的方法Finalize (继承自 Object。)
公共方法GetDataLength
获取数据的数量信息,如果小于0,则返回1 Get the quantity information of the data, if it is less than 0, return 1
公共方法GetHashCode (继承自 Attribute。)
公共方法GetType (继承自 Object。)
公共方法IsDefaultAttribute (继承自 Attribute。)
公共方法Match (继承自 Attribute。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ToString (重写 ObjectToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见