AllenBradleyHelperPackCommandSingleService 方法 |
将所有的cip指定进行打包操作。
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static byte[] PackCommandSingleService(
byte[] command,
ushort code = 178,
bool isConnected = false,
ushort sequence = 0
)
Public Shared Function PackCommandSingleService (
command As Byte(),
Optional code As UShort = 178,
Optional isConnected As Boolean = false,
Optional sequence As UShort = 0
) As Byte()
public:
static array<unsigned char>^ PackCommandSingleService(
array<unsigned char>^ command,
unsigned short code = 178,
bool isConnected = false,
unsigned short sequence = 0
)
static member PackCommandSingleService :
command : byte[] *
?code : uint16 *
?isConnected : bool *
?sequence : uint16
(* Defaults:
let _code = defaultArg code 178
let _isConnected = defaultArg isConnected false
let _sequence = defaultArg sequence 0
*)
-> byte[]
参数
- command
- 类型:SystemByte
指令信息 - code (Optional)
- 类型:SystemUInt16
服务器的代号信息 - isConnected (Optional)
- 类型:SystemBoolean
是否基于连接的服务 - sequence (Optional)
- 类型:SystemUInt16
当使用了基于连接的服务时,当前CIP消息号信息
返回值
类型:
Byte包含服务的信息
参见