Documentation
FieldTalk Modbus Slave Library for .NET
MbusDataTableInterfacereadInputRegistersTable Method |
Override this method to implement a Data Provider
function to read Input Registers.
Namespace: FieldTalk.Modbus.Slave
Assembly: FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Parameters
- startRef
- Type: SystemInt32
Start register (Range: 1 - 65536) - regArr
- Type: SystemInt16
Buffer which has to be filled with the reply data (Length: 0 - 125)
Return Value
Type: Booleantrue indicates a successful access and that valid reply data is contained in regArr. The Server Engine will reply the data passed in regArr to the master.
false indicates that access has been denied or is out of range. The Server Engine will reply to the master with an exception reply message
When a slave receives a poll request for the 3:00000 data table it
calls this method to retrieve the data.
Required: Yes
Default Implementation: Returns false which indicates to Server Engine that this address range is unsupported.
A simple and very common implementation is to map the Input Registers
to the same address space than the Holding Registers table: