AllenBradleyNetPackCommandWithHeader 方法 |
对当前的命令进行打包处理,通常是携带命令头内容,标记当前的命令的长度信息,需要进行重写,否则默认不打包
The current command is packaged, usually carrying the content of the command header, marking the length of the current command,
and it needs to be rewritten, otherwise it is not packaged by default
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.0.0 (12.1.0.0)
语法public override byte[] PackCommandWithHeader(
byte[] command
)
Public Overrides Function PackCommandWithHeader (
command As Byte()
) As Byte()
public:
virtual array<unsigned char>^ PackCommandWithHeader(
array<unsigned char>^ command
) override
abstract PackCommandWithHeader :
command : byte[] -> byte[]
override PackCommandWithHeader :
command : byte[] -> byte[]
参数
- command
- 类型:SystemByte
发送的数据命令内容
返回值
类型:
Byte打包之后的数据结果信息
备注
对发送的命令打包之后,直接发送给真实的对方设备了,例如在AB-PLC里面,就重写了打包方法,将当前的会话ID参数传递给PLC设备
After packaging the sent command, it is directly sent to the real counterpart device. For example, in AB-PLC,
the packaging method is rewritten and the current session ID parameter is passed to the PLC device.
参见