FieldServer FS-8700-17 instruction manual Driver Stats, Array Element Contents

Page 27

FS-8700-17 Optomux

Driver Manual

6.5Driver Stats

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 SK_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

 

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

 

12

OPTO_STAT_POLL_BYTES_SENT

 

FieldServer Technologies 1991 Tarob Court, Milpitas, California 95035 (408) 262-2299 fax: (408) 262-9042

Visit our website: www.fieldserver.com E-mail: support@fieldserver.com

Page 25

Image 27
Contents FS-8700-17 Optomux Table of Contents Optomux Driver Description Optomux System Driver Scope of SupplyFS-X40 Hardware ConnectionsData Arrays Configuring the FieldServer as a Optomux Driver ClientClient Side Nodes Client Side ConnectionsFieldServer Related Map Descriptor Parameters Client Side Map DescriptorsDriver Related Map Descriptor Parameters Bit, Packed Timing Parameters SET Time Delay Generate N Pulses Read and Average InputsMap Descriptor Example 1 Read on/off Status DEVICE77STAT , DiscinputsRead Status FS-8700-17 Optomux Driver Manual Read STATUS, Responsearr Map Descriptor Example 3 Command Response/Completion StatusDEVICE77STAT , Cntrposns Map Descriptor Example 4 Triggered ActionDEVICE77STAT , Anadata PULSE77 Timedata This example, module positions 1 and 5 are pulsedWrbc , DEV77 , 16 , 10.0s CLRLOW77 LowarrayConfiguring the FieldServer as a Optomux Server Module Positions Command Response StatusDriver Notes DataArrayName, DABitName, DAByteNameOptomux Commands FS-8700-17 Optomux Driver Manual Read Specified module positions get set Affected. The data period of pulses Only one module position may be Calculated and read. Data read gets Driver Stats Array Element ContentsRevision History