点击或拖拽改变大小

ModbusInfoCheckRtuMessageMatch 方法

检查当前发送和接收的modbusrtu报文是否站号匹配,匹配返回 1,此处进行匹配的时候,还有一定的容错范围

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

参数

send
类型:SystemByte
发送的数据
receive
类型:SystemByte
接收的数据

返回值

类型:Int32
modbus的报文是否站号匹配
参见