6100 MPS-B Programming Manual
WRITING APPLICATIONS THAT USE 6100 MPS-B
FETCH STATISTICS Request
FETCH STATISTICS Request
The FETCH STATISTICS request reads, returns, and optionally,
clears the current line statistics. The statistics are obtained
from a block of 16-bit counters. Each counter contains a value
in the range from 0 to 65535.
This request can be issued at any time, and does not affect the
line state.
The request buffer format is:
Function := 5
Modifier := 0 if read only, or
1 if read and reset
Request ID := A unique value from 1 to 32767,
application-dependent
Text Out := Doesn’t matter
Text In := Length of line statistics data block, in
bytes (should be at least 40)
Text := Doesn’t matter
The response buffer format is:
Function := 5
Status := 0 if the operation completed successfully, or
a code greater than zero if an error occurred
Request ID := The same as in the request
Text Out := 0
Text In := Length of line statistics data block, or
2 if status detail code is present in Text field
Text := line statistics data block, or
Byte 0 = status detail code; Byte 1 = 0
3-26