Documentation

MbusDataTableInterface Class

This class defines the interface between a Modbus slave Server Engine and your application. Descendants of this class are referred to as Data Providers.
Inheritance Hierarchy
SystemObject
  FieldTalk.Modbus.SlaveMbusDataTableInterface

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

The MbusDataTableInterface type exposes the following members.

Methods
  NameDescription
Protected methodgetMasterInfo
Retrieves a MasterInfo object which will hold additional information about the currently processed Modbus request. This is the protocol type, the slave ID, the IP address and the transaction ID of the current request.
Protected methodCode examplereadCoilsTable
Override this method to implement a Data Provider function to read Coils.
Protected methodreadDeviceIdentification
Override this method to implement Read Device Identification objects to support Modbus function 43 (hex 2B) subfunction 14 (hex 0E).
Protected methodreadEnronRegistersTable
Implement this function only if your slave device has to process register ranges as Daniel/ENRON 32-bit registers.
Protected methodreadExceptionStatus
Override this method to implement a function with reports the eight exception status coils (bits) within the slave device.
Protected methodreadFileRecord
Override this method to implement a Data Provider function to read File Records which is Modbus function code 20 (14 hex).
Protected methodCode examplereadHoldingRegistersTable
Override this method to implement a Data Provider function to read Holding Registers.
Protected methodCode examplereadInputDiscretesTable
Override this method to implement a Data Provider function to read Coils.
Protected methodCode examplereadInputRegistersTable
Override this method to implement a Data Provider function to read Input Registers.
Protected methodreportRunIndicatorStatus
Override this method to implement a function which reports the Run Indicator of a device.
Protected methodreportSlaveId
Override this method to implement a function which reports the Slave ID.
Protected methodtimeOutHandler
Override this method to implement a function to handle master poll time-outs.
Protected methodCode examplewriteCoilsTable
Override this method to implement a Data Provider function to write Coils.
Protected methodwriteEnronRegistersTable
Implement this function only if your slave device has to process register ranges as Daniel/ENRON 32-bit registers.
Protected methodwriteFileRecord
Override this method to implement a Data Provider function to write File Records which is Modbus function code 21 (15 hex).
Protected methodCode examplewriteHoldingRegistersTable
Override this method to implement a Data Provider function to write Holding Registers.
Top
Remarks
To create an application specific Data Provider derive a new class from MbusDataTableInterface and override the required data access methods.
See Also