beautypg.com

FieldServer Optomux FS-8700-17 User Manual

Page 24

background image

FS-8700-17_Opto22.doc Manual

Page 22 of 24

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]

In addition to the standard FieldServer communication statistics described in the FieldServer User’s Manual the
Optomux Driver can also expose some driver statistics by writing data to a Data Array. A special Map Descriptor is
required. The driver recognizes the Map Descriptor by its name which must be "opto22-stats”.

The following example shows how this special Map Descriptor can be configured.

Nodes

Node_name

, Node_ID

, Protocol

Null_Node

, 0

, Optomux

Data_Arrays

Data_Array_Name

, Data_Format

, Data_Array_Length

OPTO22_STATS

, UINT32

, 300

Map_Descriptors

Map_descriptor_Name , Data_Array_Name , Node_name

, Length

Opto22-stats

, OPTO22_STATS

, Null_Node

, 300


When the driver sees this Map Descriptor it uses the Data Array OPTO22_STATS (in this example) to store driver
specific statistics. Only one of these Map Descriptors may be specified per FieldServer.

The driver stores the following data.--+

Array Element Contents

Description

0

OPTO_STAT_BAD_FUNCTION

The Opto22_Function has a bad value.

1

OPTO_STAT_DYNAMIC_MASK

Mask cannot be specified in a CSV file with a zero value.

2

OPTO_STAT_TIMEOUT

3

OPTO_STAT_STREAMING

4

OPTO_STAT_NAK

5

OPTO_STAT_PROTOCOL

6

OPTO_STAT_IC_TIMEOUT

7

OPTO_STAT_DEVICE_MSG_RECD

8

OPTO_STAT_DEVICE_BYTES_RECD

9

OPTO_STAT_DEVICE_FUNCTION

10

OPTO_STAT_NO_START

11

OPTO_STAT_MSG_IGNORED

12

OPTO_STAT_POLL_MSG_SENT

13

OPTO_STAT_POLL_BYTES_SENT