Description

A Get Local Statistics operation reads the data from the local node in one cycle and does not require a master transaction path.To program an MBP_MSTR block to Get Local Statistics, use function code 3.

Network Implementation

A Get Local Statistics operation can be performed on Modbus Plus and TCP/IP Ethernet networks.

Control Block Usage for Modbus Plus

Register

Meaning

CONTROL[1]

3 = get local statistics

CONTROL[2]

Indicates the error status

CONTROL[3]

Number of addresses to be read from local statistics (1 ... 54)

Note: The size of databuf must be at least the size of this entry.

CONTROL[4]

First address from which the statistics table must be read (Reg1=0)

CONTROL[5]

Routing register 1 is used to specify the address (routing path address 1 of 5) of the node during a network transfer.

The last byte in the routing path that is not 0 is the destination mode.

Control Block Usage for TCP/IP Ethernet

Register

Meaning

CONTROL[1]

3 = get local statistics

CONTROL[2]

Indicates the error status

CONTROL[3]

Number of addresses to be read from local statistics (1 ... 38)

Note: The size of databuf must be the size of this entry.

CONTROL[4]

First address from which the statistics table must be read (Reg1=0)

CONTROL[5]

Routing register

Most significant byte: Network adapter module slot

CONTROL[6]

...

CONTROL[9]

Not used