GeHelperBuildReadCoreCommand 方法 |
构建一个读取数据的报文信息,需要指定操作的数据代码,读取的参数信息
To construct a message information for reading data, you need to specify the data code of the operation and the parameter information to be read
命名空间:
HslCommunication.Profinet.GE
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildReadCoreCommand(
long id,
byte code,
byte[] data
)
Public Shared Function BuildReadCoreCommand (
id As Long,
code As Byte,
data As Byte()
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildReadCoreCommand(
long long id,
unsigned char code,
array<unsigned char>^ data
)
static member BuildReadCoreCommand :
id : int64 *
code : byte *
data : byte[] -> OperateResult<byte[]>
参数
- id
- 类型:SystemInt64
消息号 - code
- 类型:SystemByte
操作代码 - data
- 类型:SystemByte
数据参数
返回值
类型:
OperateResultByte包含是否成功的报文信息
参见