User manual

Transferring Data Using Communication Blocks
33002479 06 07/2008 171
Get Remote Statistics
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 (see Operational Function Codes, p. 151).
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 (0 ... 37).
Note: The size of databuf must be at least the size of this entry.
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.