MelsecFxSerialHelperBuildWriteWordCommand 方法 |
根据类型地址以及需要写入的数据来生成指令头
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteWordCommand(
string address,
byte[] value,
bool isNewVersion
)
Public Shared Function BuildWriteWordCommand (
address As String,
value As Byte(),
isNewVersion As Boolean
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteWordCommand(
String^ address,
array<unsigned char>^ value,
bool isNewVersion
)
static member BuildWriteWordCommand :
address : string *
value : byte[] *
isNewVersion : bool -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
起始地址 - value
- 类型:SystemByte
实际的数据信息 - isNewVersion
- 类型:SystemBoolean
是否是新版的串口访问类
返回值
类型:
OperateResultByte带有成功标志的指令数据
参见