Description
A get remote statistics operation can be used to read data from remote nodes on the network. With each query, the remote communications processor supplies a complete table of statistics even if the query does not refer to the entire table. It then copies only the words that you queried into identified $MW addresses.
An operation can take
several cycles to complete; it does not require a master data transaction
path. To program an MBP_MSTR
block to get remote
statistics, use function code 7.
Network Implementation
A get remote statistics operation can be performed on Modbus Plus and TCP/IP Ethernet networks.
Control Block Usage for Modbus Plus
Register |
Meaning |
---|---|
CONTROL[1] |
7 = get remote statistics |
CONTROL[2] |
Indicates the error status |
CONTROL[3] |
Number of addresses to be read from the statistics data field (1 ... 54).
|
CONTROL[4] |
First address from which the node statistics must be read. The number of available statistics registers cannot be exceeded. |
CONTROL[5] ... CONTROL[9] |
Routing address 1 ... 5 of the node. The last byte in the routing path that is not 0 is the destination node. |
Control Block Usage for TCP/IP Ethernet
Register |
Meaning |
---|---|
CONTROL[1] |
7 = get remote statistics |
CONTROL[2] |
Indicates the error status |
CONTROL[3] |
Number of addresses to be read from the statistics data field (1 ... 38).
|
CONTROL[4] |
First address from which the node statistics must be read. The number of available statistics registers cannot be exceeded. |
CONTROL[5] |
Most significant byte: network adapter module slot |
CONTROL[6] ... CONTROL[9] |
Each address contains 1 byte of the 32-bit IP address, where the value in CONTROL[6] is the MSB and the value in CONTROL[9] is the LSB. |