MbusDataTableInterfacereadEnronRegistersTable Method |
Implement this function only if your slave device
has to process register ranges as Daniel/ENRON 32-bit
registers.
Namespace:
FieldTalk.Modbus.Slave
Assembly:
FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntaxprotected virtual bool readEnronRegistersTable(
int startRef,
int[] regArr
)
Protected Overridable Function readEnronRegistersTable (
startRef As Integer,
<OutAttribute> regArr As Integer()
) As Boolean
protected:
virtual bool readEnronRegistersTable(
int startRef,
[InAttribute] [OutAttribute] array<int>^ regArr
)
Parameters
- startRef
- Type: SystemInt32
Start register (Range: 1 - 65536) - regArr
- Type: SystemInt32
Buffer which has to be filled with the reply data (Length: 0 - 62)
Return Value
Type:
Boolean true 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 using the Daniel/ENRON frame format.
false indicates that the requested range is not to be
processed using the Daniel/ENRON frame format.
A subsequent call to readHoldingRegistersTable() will be made to
process the range in standard Modbus frame format.
Remarks
If a register range is processed as Daniel/ENRON register then
this range is not available as normal Holding Register range.
Required:
Yes
Default Implementation:
Returns 0 which indicates that the requested register range
is processed as standard Modbus registers by a subsequent
call to readHoldingRegistersTable().
Note: Daniel/ENRON is a prorietary 32-bit format which uses a
non-standard Modbus frame and not understood by most master devices.
See Also