初始化上传
This commit is contained in:
18
常用工具集/Utility/Network/Modbus/SharpModbus/IModbusCommand.cs
Normal file
18
常用工具集/Utility/Network/Modbus/SharpModbus/IModbusCommand.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace SharpModbus
|
||||
{
|
||||
public interface IModbusCommand
|
||||
{
|
||||
byte Code { get; }
|
||||
byte Slave { get; }
|
||||
ushort Address { get; }
|
||||
int RequestLength { get; }
|
||||
int ResponseLength { get; }
|
||||
void FillRequest(byte[] request, int offset);
|
||||
object ParseResponse(byte[] response, int offset);
|
||||
object ApplyTo(IModbusModel model);
|
||||
void FillResponse(byte[] response, int offset, object value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user