Interface IModbusSerialMaster
Modbus Serial Master device.
Inherited Members
System.IDisposable.Dispose()
Namespace: NModbus
Assembly: NModbus.dll
Syntax
public interface IModbusSerialMaster : IModbusMaster, IDisposable
Properties
| Improve this Doc View SourceTransport
Transport for used by this master.
Declaration
IModbusSerialTransport Transport { get; }
Property Value
| Type | Description |
|---|---|
| IModbusSerialTransport |
Methods
| Improve this Doc View SourceReturnQueryData(Byte, UInt16)
Serial Line only. Diagnostic function which loops back the original data. NModbus only supports looping back one ushort value, this is a limitation of the "Best Effort" implementation of the RTU protocol.
Declaration
bool ReturnQueryData(byte slaveAddress, ushort data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | slaveAddress | Address of device to test. |
| System.UInt16 | data | Data to return. |
Returns
| Type | Description |
|---|---|
| System.Boolean | Return true if slave device echoed data. |