ModbusInfoCheckRtuMessageMatch 方法 |
检查当前发送和接收的modbusrtu报文是否站号匹配,匹配返回 1,此处进行匹配的时候,还有一定的容错范围
命名空间:
HslCommunication.ModBus
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static int CheckRtuMessageMatch(
byte[] send,
byte[] receive
)
Public Shared Function CheckRtuMessageMatch (
send As Byte(),
receive As Byte()
) As Integer
public:
static int CheckRtuMessageMatch(
array<unsigned char>^ send,
array<unsigned char>^ receive
)
static member CheckRtuMessageMatch :
send : byte[] *
receive : byte[] -> int
参数
- send
- 类型:SystemByte
发送的数据 - receive
- 类型:SystemByte
接收的数据
返回值
类型:
Int32modbus的报文是否站号匹配
参见