Interface IModbusFunctionService
A Modbus slave message handler.
Assembly: NModbus.dll
Syntax
public interface IModbusFunctionService
Properties
|
Improve this Doc
View Source
FunctionCode
The function code that this handles
Declaration
byte FunctionCode { get; }
Property Value
Type |
Description |
System.Byte |
|
Methods
|
Improve this Doc
View Source
GetRtuRequestBytesToRead(Byte[])
Gets the number of bytes to read for a request
Declaration
int GetRtuRequestBytesToRead(byte[] frameStart)
Parameters
Type |
Name |
Description |
System.Byte[] |
frameStart |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetRtuResponseBytesToRead(Byte[])
Gets the number of bytes to read for a response
Declaration
int GetRtuResponseBytesToRead(byte[] frameStart)
Parameters
Type |
Name |
Description |
System.Byte[] |
frameStart |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
HandleSlaveRequest(IModbusMessage, ISlaveDataStore)
Declaration
IModbusMessage HandleSlaveRequest(IModbusMessage request, ISlaveDataStore dataStore)
Parameters
Returns