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
命名空间:
HslCommunication.Reflection
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public HslDeviceAddressAttribute(
string address,
int length,
Type deviceType,
string encoding
)
Public Sub New (
address As String,
length As Integer,
deviceType As Type,
encoding As String
)
public:
HslDeviceAddressAttribute(
String^ address,
int length,
Type^ deviceType,
String^ encoding
)
new :
address : string *
length : int *
deviceType : Type *
encoding : string -> HslDeviceAddressAttribute
参数
- address
- 类型:SystemString
真实的地址信息 - length
- 类型:SystemInt32
读取的数据长度 - deviceType
- 类型:SystemType
设备类型 - encoding
- 类型:SystemString
如果是字符串类型的数据的话,就是字符串编码
参见