AllenBradleyNetBuildWriteCommand 方法 (String, UInt16, Byte, Int32) |
Create a written message instruction
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法 protected virtual OperateResult<byte[]> BuildWriteCommand(
string address,
ushort typeCode,
byte[] data,
int length = 1
)
Protected Overridable Function BuildWriteCommand (
address As String,
typeCode As UShort,
data As Byte(),
Optional length As Integer = 1
) As OperateResult(Of Byte())
protected:
virtual OperateResult<array<unsigned char>^>^ BuildWriteCommand(
String^ address,
unsigned short typeCode,
array<unsigned char>^ data,
int length = 1
)
abstract BuildWriteCommand :
address : string *
typeCode : uint16 *
data : byte[] *
?length : int
(* Defaults:
let _length = defaultArg length 1
*)
-> OperateResult<byte[]>
override BuildWriteCommand :
address : string *
typeCode : uint16 *
data : byte[] *
?length : int
(* Defaults:
let _length = defaultArg length 1
*)
-> OperateResult<byte[]>
参数
- address
- 类型:SystemString
The address of the tag name - typeCode
- 类型:SystemUInt16
Data type - data
- 类型:SystemByte
Source Data - length (Optional)
- 类型:SystemInt32
In the case of arrays, the length of the array
返回值
类型:
OperateResultByteMessage information that contains the result object
参见