点击或拖拽改变大小

OmronFinsNetPackCommandWithHeader 方法

对当前的命令进行打包处理,通常是携带命令头内容,标记当前的命令的长度信息,需要进行重写,否则默认不打包
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.Omron
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法
public override byte[] PackCommandWithHeader(
	byte[] command
)

参数

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.
参见