MelsecFxSerialHelperBuildReadWordCommand 方法 |
根据类型地址长度确认需要读取的指令头
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<List<byte[]>> BuildReadWordCommand(
string address,
ushort length,
bool isNewVersion
)
Public Shared Function BuildReadWordCommand (
address As String,
length As UShort,
isNewVersion As Boolean
) As OperateResult(Of List(Of Byte()))
public:
static OperateResult<List<array<unsigned char>^>^>^ BuildReadWordCommand(
String^ address,
unsigned short length,
bool isNewVersion
)
static member BuildReadWordCommand :
address : string *
length : uint16 *
isNewVersion : bool -> OperateResult<List<byte[]>>
参数
- address
- 类型:SystemString
起始地址 - length
- 类型:SystemUInt16
长度 - isNewVersion
- 类型:SystemBoolean
是否是新版的串口访问类
返回值
类型:
OperateResultListByte带有成功标志的指令数据
参见