AllenBradleyHelperPackRequestHeader 方法 (UInt16, UInt32, UInt32, Byte) |
将CommandSpecificData的命令,打包成可发送的数据指令
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static byte[] PackRequestHeader(
ushort command,
uint error,
uint session,
byte[] commandSpecificData
)
Public Shared Function PackRequestHeader (
command As UShort,
error As UInteger,
session As UInteger,
commandSpecificData As Byte()
) As Byte()
public:
static array<unsigned char>^ PackRequestHeader(
unsigned short command,
unsigned int error,
unsigned int session,
array<unsigned char>^ commandSpecificData
)
static member PackRequestHeader :
command : uint16 *
error : uint32 *
session : uint32 *
commandSpecificData : byte[] -> byte[]
参数
- command
- 类型:SystemUInt16
实际的命令暗号 - error
- 类型:SystemUInt32
错误号信息 - session
- 类型:SystemUInt32
当前会话的id - commandSpecificData
- 类型:SystemByte
CommandSpecificData命令
返回值
类型:
Byte最终可发送的数据命令
参见