SiemensFetchWriteNetBuildReadCommand 方法 |
生成一个读取字数据指令头的通用方法
A general method for generating a command header to read a Word data
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildReadCommand(
string address,
ushort count
)
Public Shared Function BuildReadCommand (
address As String,
count As UShort
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildReadCommand(
String^ address,
unsigned short count
)
static member BuildReadCommand :
address : string *
count : uint16 -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
起始地址,格式为M100,I100,Q100,DB1.100 -> Starting address, formatted as M100,I100,Q100,DB1.100 - count
- 类型:SystemUInt16
读取数据个数 -> Number of Read data
返回值
类型:
OperateResultByte带结果对象的报文数据 -> Message data with a result object
参见