Documentation
FieldTalk Modbus Slave Library for .NET
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.
SystemObject
FieldTalk.Modbus.SlaveMbusDataTableInterface
FieldTalk.Modbus.SlaveMbusDataTableInterface
Namespace: FieldTalk.Modbus.Slave
Assembly: FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
The MbusDataTableInterface type exposes the following members.
| Name | Description | |
|---|---|---|
| getMasterInfo | 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. | |
| readCoilsTable | Override this method to implement a Data Provider
function to read Coils. | |
| readDeviceIdentification | Override this method to implement Read Device
Identification objects to support Modbus function 43 (hex 2B)
subfunction 14 (hex 0E). | |
| readEnronRegistersTable | Implement this function only if your slave device
has to process register ranges as Daniel/ENRON 32-bit
registers. | |
| readExceptionStatus | Override this method to implement a function with
reports the eight exception status coils (bits) within the
slave device. | |
| readFileRecord | Override this method to implement a Data Provider function to read
File Records which is Modbus function code 20 (14 hex). | |
| readHoldingRegistersTable | Override this method to implement a Data Provider
function to read Holding Registers. | |
| readInputDiscretesTable | Override this method to implement a Data Provider
function to read Coils. | |
| readInputRegistersTable | Override this method to implement a Data Provider
function to read Input Registers. | |
| reportRunIndicatorStatus | Override this method to implement a function which reports the Run Indicator
of a device. | |
| reportSlaveId | Override this method to implement a function which
reports the Slave ID. | |
| timeOutHandler | Override this method to implement a function to
handle master poll time-outs. | |
| writeCoilsTable | Override this method to implement a Data Provider
function to write Coils. | |
| writeEnronRegistersTable | Implement this function only if your slave device has to process
register ranges as Daniel/ENRON 32-bit registers. | |
| writeFileRecord | Override this method to implement a Data Provider function to write
File Records which is Modbus function code 21 (15 hex). | |
| writeHoldingRegistersTable | Override this method to implement a Data Provider
function to write Holding Registers. |
To create an application specific Data Provider derive a new class from
MbusDataTableInterface and override the required data access methods.