Files
Modbus.Net/NA200H/ModBus.Net/ModbusTcpProtocalLinker.cs
parallelbgls@outlook.com aa1cbf85ba 2014-08-25 update 1
2014-08-25 16:21:57 +08:00

31 lines
628 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModBus.Net
{
public class ModbusTcpProtocalLinker : TcpProtocalLinker
{
public override bool CheckRight(byte[] content)
{
if (content[1] > 127)
{
throw new ModbusProtocalErrorException(content[2]);
}
return true;
}
public ModbusTcpProtocalLinker() : base()
{
}
public ModbusTcpProtocalLinker(string IP) : base(IP)
{
}
}
}