AllenBradleyNetBuildReadCommand 方法 (String, UInt16) |
创建一个读取标签的报文指定,标签地址可以手动动态指定slot编号,例如 slot=2;AAA
Build a read command bytes, The label address can manually specify the slot number dynamically, for example slot=2;AAA
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public virtual OperateResult<byte[]> BuildReadCommand(
string[] address,
ushort[] length
)
Public Overridable Function BuildReadCommand (
address As String(),
length As UShort()
) As OperateResult(Of Byte())
public:
virtual OperateResult<array<unsigned char>^>^ BuildReadCommand(
array<String^>^ address,
array<unsigned short>^ length
)
abstract BuildReadCommand :
address : string[] *
length : uint16[] -> OperateResult<byte[]>
override BuildReadCommand :
address : string[] *
length : uint16[] -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
the address of the tag name - length
- 类型:SystemUInt16
Array information, if not arrays, is 1
返回值
类型:
OperateResultByteMessage information that contains the result object
参见