点击或拖拽改变大小

ModbusInfoCheckAsciiReceiveDataComplete 方法 (Byte, Int32)

当消息头报文的长度定义为-1的时候,则使用动态的长度信息,可以使用本方法来判断一个消息是否处于完整的状态。
If the length of the message header is defined as -1, this method can be used to determine whether a message is in the complete state by using dynamic length information.

命名空间:  HslCommunication.ModBus
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static bool CheckAsciiReceiveDataComplete(
	byte[] modbusAscii,
	int length
)

参数

modbusAscii
类型:SystemByte

[缺少 "M:HslCommunication.ModBus.ModbusInfo.CheckAsciiReceiveDataComplete(System.Byte[],System.Int32)" 的 <param name="modbusAscii"/> 文档]

length
类型:SystemInt32

[缺少 "M:HslCommunication.ModBus.ModbusInfo.CheckAsciiReceiveDataComplete(System.Byte[],System.Int32)" 的 <param name="length"/> 文档]

返回值

类型:Boolean
是否是完整的消息
参见