AllenBradleyHelperPackRequestHeader 方法 (UInt16, UInt32, Byte, Byte) |
将CommandSpecificData的命令,打包成可发送的数据指令
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static byte[] PackRequestHeader(
ushort command,
uint session,
byte[] commandSpecificData,
byte[] senderContext = null
)
Public Shared Function PackRequestHeader (
command As UShort,
session As UInteger,
commandSpecificData As Byte(),
Optional senderContext As Byte() = Nothing
) As Byte()
public:
static array<unsigned char>^ PackRequestHeader(
unsigned short command,
unsigned int session,
array<unsigned char>^ commandSpecificData,
array<unsigned char>^ senderContext = nullptr
)
static member PackRequestHeader :
command : uint16 *
session : uint32 *
commandSpecificData : byte[] *
?senderContext : byte[]
(* Defaults:
let _senderContext = defaultArg senderContext null
*)
-> byte[]
参数
- command
- 类型:SystemUInt16
实际的命令暗号 - session
- 类型:SystemUInt32
当前会话的id - commandSpecificData
- 类型:SystemByte
CommandSpecificData命令 - senderContext (Optional)
- 类型:SystemByte
[缺少 "M:HslCommunication.Profinet.AllenBradley.AllenBradleyHelper.PackRequestHeader(System.UInt16,System.UInt32,System.Byte[],System.Byte[])" 的 <param name="senderContext"/> 文档]
返回值
类型:
Byte最终可发送的数据命令
参见