device stats |
A vector updated with communication statistics on an
ongoing basis. Each element of the vector contains a counter
representing the total number of I/O transactions for a specific
condition. These values are incremented indefinitely. To count on a
timed bases (e.g. daily), an application should copy values into
other attributes (see also clear
stats).. Use the following names, defined in modbus.h,
as offsets into the vector:
Index Value |
Index Name |
Contents |
0 |
TRANS_ATTEMPTS |
Transactions attempted to the RTU. |
1 |
TRANS_SUCCESSFUL |
Successful transactions to the RTU. |
2 |
WRITE_ERR |
Transactions failed; unable to write data to the
device. |
3 |
READ_ERR |
Transactions failed; unable to read data from the
communication port. |
4 |
TIMEOUT_ERR |
Transactions failed due to lack of RTU response. |
5 |
DCD_TIMEOUT |
N/A |
6 |
CTS_TIMEOUT |
N/A |
7 |
CRC_ERR |
N/A |
8 |
BYTE_ERR |
Transactions failed due bad character count in a
returned response. |
9 |
EXCEPTION_RET |
Transactions in which an exception response was
returned by the RTU. |
|