beautypg.com

Appendix c.2. statistics, To appendix c.2 – FieldServer FS-8700-80 User Manual

Page 34

background image

McQuay Micro Tech Open Protocol Driver Manual

Page 34 of 43

FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web: www.fieldserver.com

Tel: (408) 262 2299 Fax: (408) 262 2269 Toll Free: (888) 509 1970 email: [email protected]

Appendix C.2. Statistics

The driver reports statistics according to the standard FieldServer communication statistics listed in the following
table:

Statistic

Description

NAK

Each time a negative acknowledgement message is received.

CHECKSUM Each time that a message is received that contains a non-ASCII character.
NOISE

An acknowledgement message contains an unrecognized code.

NO START

Each time a message is received that doesn’t begin with a space.

PROTOCOL

All other errors are reported as protocol errors


Specific driver statistics can also be exposed by writing data to a Data Array called . "McQuay-stats”. A special Map
Descriptor is required.

The following data is stored. The location in the Data Array is obtained by multiplying the port number by 50 and
then using the location offset indicated in the table below.

Location Statistic

0

MCQ_STAT_PASSWORD

10

MCQ_STAT_NAK

11

MCQ_STAT_NOISE

12

MCQ_STAT_NOISE_CODE

13

MCQ_STAT_NON_ASCII_CHARS

14

MCQ_STAT_BAD_START_BYTE

15

MCQ_STAT_OTHER_CMPLT_ERR

16

MCQ_STAT_CLIENT_BYTES_RCVD

Location Statistic

17

MCQ_STAT_CLIENT_FRAGS_RCVD

18

MCQ_STAT_CLIENT_MSGSS_RCVD

19

MCQ_STAT_CLIENT_BYTES_SENT

20

MCQ_STAT_CLIENT_FRAGS_SENT

21

MCQ_STAT_CLIENT_MSGSS_SENT

22

MCQ_STAT_SERVER_BYTES_SENT

23

MCQ_STAT_SERVER_MSGSS_SENT

24

MCQ_STAT_SERVER_NAKS_SENT


The following example shows the configuration of this Map Descriptor. This section of text may be copoied directly
into the CSV file.

Nodes

Node_Name

, Station

, Port

, Protocol , PLC_Type

Mcq_stats

, 0

, P1

, McQuay , 200CFC

Data_Arrays

Data_Array_Name

, Data_Format

, Data_Array_Length

DA_MCQ_STATS

, UINT32

, 2000

Map_Descriptors

Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Address , Length
McQuay-Stats

, DA_MCQ_STATS , 0 , Passive , Mcq_stats , 1 , 2000


The Data Array DA_MCQ_STATS (in this example) is used to store driver specific statistics. Only one of these Map
Descriptors may be specified per FieldServer.