SiemensMPIBuildWriteCommand 方法 |
生成一个写入PLC数据信息的报文内容
Generate a message content to write PLC data information
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteCommand(
byte station,
string address,
byte[] values
)
Public Shared Function BuildWriteCommand (
station As Byte,
address As String,
values As Byte()
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteCommand(
unsigned char station,
String^ address,
array<unsigned char>^ values
)
static member BuildWriteCommand :
station : byte *
address : string *
values : byte[] -> OperateResult<byte[]>
参数
- station
- 类型:SystemByte
PLC的站号 - address
- 类型:SystemString
地址 - values
- 类型:SystemByte
数据值
返回值
类型:
OperateResultByte是否写入成功
参见