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