Documentation

MbusSerialServerBase Class

This base class implements common functionality for both serial Modbus protocols.
Inheritance Hierarchy
SystemObject
  FieldTalk.Modbus.SlaveMbusSlaveServer
    FieldTalk.Modbus.SlaveMbusSerialServerBase
      FieldTalk.Modbus.SlaveMbusAsciiSlaveProtocol
      FieldTalk.Modbus.SlaveMbusRtuSlaveProtocol

Namespace:  FieldTalk.Modbus.Slave
Assembly:  FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntax
public class MbusSerialServerBase : MbusSlaveServer

The MbusSerialServerBase type exposes the following members.

Constructors
  NameDescription
Public methodMbusSerialServerBase
Creates new instance
Top
Properties
  NameDescription
Public propertybaudRate
Baud rate property in bps
Public propertydataBits
Data bits property
Public propertyparity
Parity property
Public propertyportName
Serial port identifier property
Public propertystopBits
Stop bits property
Public propertytimeout
Time-out port property
(Inherited from MbusSlaveServer.)
Top
Methods
  NameDescription
Public methodaddDataTable
Associates a protocol object with a Data Provider and a Modbus slave ID.
(Inherited from MbusSlaveServer.)
Public methodDispose
Implement IDisposable.
(Inherited from MbusSlaveServer.)
Public methodenableRs485Mode
Enables RS485 mode.
Protected methodFinalize
Destructor.
(Inherited from MbusSlaveServer.)
Public methodgetConnectionStatus
Checks if a Modbus master is polling periodically.
(Inherited from MbusSlaveServer.)
Public methodgetSuccessCounter
Returns how often a message transfer was successful.
(Inherited from MbusSlaveServer.)
Public methodgetTimeout
Returns the currently set master time-out supervision value.
(Inherited from MbusSlaveServer.)
Public methodgetTotalCounter
Returns how often a message transfer has been executed.
(Inherited from MbusSlaveServer.)
Public methodisStarted
Returns whether server has been started up.
(Inherited from MbusSlaveServer.)
Public methodresetSuccessCounter
Resets successful message transfer counter.
(Inherited from MbusSlaveServer.)
Public methodresetTotalCounter
Resets total message transfer counter.
(Inherited from MbusSlaveServer.)
Public methodserverLoop
Modbus slave server loop
(Inherited from MbusSlaveServer.)
Public methodsetTimeout
Configures master transmit time-out supervision.
(Inherited from MbusSlaveServer.)
Public methodshutdownServer
Shuts down the Modbus Server.
(Inherited from MbusSlaveServer.)
Public methodstartupServer
Opens a serial Modbus protocol and the associated serial port with the port parameters configured via properties
Public methodstartupServer(String, Int32, Int32, Int32, Int32)
Opens a serial Modbus protocol and the associated serial port with the port parameters configured via properties
Top
Fields
  NameDescription
Public fieldStatic memberSER_DATABITS_7
7 data bits
Public fieldStatic memberSER_DATABITS_8
8 data bits
Public fieldStatic memberSER_PARITY_EVEN
Even parity
Public fieldStatic memberSER_PARITY_NONE
No parity
Public fieldStatic memberSER_PARITY_ODD
Odd parity
Public fieldStatic memberSER_STOPBITS_1
1 stop bit
Public fieldStatic memberSER_STOPBITS_2
2 stop bits
Top
Remarks
These methods apply to RTU and ASCII protocol flavours via inheritance.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also