Show / Hide Table of Contents

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 Source

FunctionCode

The function code tells the server what kind of action to perform.

Declaration
byte FunctionCode { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

MessageFrame

Composition of the slave address and protocol data unit.

Declaration
byte[] MessageFrame { get; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

ProtocolDataUnit

Composition of the function code and message data.

Declaration
byte[] ProtocolDataUnit { get; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

SlaveAddress

Address of the slave (server).

Declaration
byte SlaveAddress { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

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 Source

Initialize(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.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX