Interface IModbusMessage
A message built by the master (client) that initiates a Modbus transaction.
Namespace: NModbus
Assembly: NModbus.dll
Syntax
public interface IModbusMessage
Properties
| Improve this Doc View SourceFunctionCode
The function code tells the server what kind of action to perform.
Declaration
byte FunctionCode { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
MessageFrame
Composition of the slave address and protocol data unit.
Declaration
byte[] MessageFrame { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
ProtocolDataUnit
Composition of the function code and message data.
Declaration
byte[] ProtocolDataUnit { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
SlaveAddress
Address of the slave (server).
Declaration
byte SlaveAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
TransactionId
A unique identifier assigned to a message when using the IP protocol.
Declaration
ushort TransactionId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceInitialize(Byte[])
Initializes a modbus message from the specified message frame.
Declaration
void Initialize(byte[] frame)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | frame | Bytes of Modbus frame. |