SiemensS7NetBuildWriteByteCommand 方法 (S7AddressData, ListByte, Int32) |
生成一个写入字节数据的指令 -> Generate an instruction to write byte data
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteByteCommand(
S7AddressData[] s7Address,
List<byte[]> data,
int msgId
)
Public Shared Function BuildWriteByteCommand (
s7Address As S7AddressData(),
data As List(Of Byte()),
msgId As Integer
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteByteCommand(
array<S7AddressData^>^ s7Address,
List<array<unsigned char>^>^ data,
int msgId
)
static member BuildWriteByteCommand :
s7Address : S7AddressData[] *
data : List<byte[]> *
msgId : int -> OperateResult<byte[]>
参数
- s7Address
- 类型:HslCommunication.Core.AddressS7AddressData
起始地址,示例M100,I100,Q100,DB1.100 -> Start Address, example M100,I100,Q100,DB1.100 - data
- 类型:System.Collections.GenericListByte
原始的字节数据 -> Raw byte data - msgId
- 类型:SystemInt32
message id informaion
返回值
类型:
OperateResultByte包含结果对象的报文 -> Message containing the result object
参见