Map descriptor example 1 – data recording – FieldServer FS-8700-115 User Manual

Page 9

Advertising
background image

FS-8700-115 ASCII Driver (General Purpose)

Page 9 of 13

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]

5.4

Map Descriptor Example 1 – Data Recording

In this example, we provide a Map Descriptor to capture data from a scale and store it in a Data Array called ‘DA_Scale’. The 1

st

element converted from the

ASCII steam will be store at offset zero in the Data Array. The driver will convert and store floating point numbers because the Data_Type is a floating point
type. A maximum of 10 number fields can be processed and stored. The driver only converts and stores the data when the ASCII stream ends. Refer to
Appendix A.1 for information on how the driver knows when a stream has ended and it should process and store data.

Map_Descriptors

Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Data_Type , Length
Store_Weights

, DA_Scale

, 0

, Passive

, Node_A

, Float_Reg

, 10

Map Descriptor
Names do not need
to be unique but
unique names may
facilitate trouble
shooting.

The name of the
Data Array where
the incoming data
should be stored.

The 1

st

element of

converted data will be
stored at this location in
the DA. Subsequent data
is stored in consecutive
locations.

Driver waits passively for
incoming data. There is
no polling.

Connects this Map
Descriptor to a Node
Descriptor which in turn
points to a connection
descriptor.

When the driver processes the stream it
should (in this case) treat the data as
floating point data. Ensure that the
format of the Data is suitable to store a
floating point value

A maximum of
10 value items
will be stored.

Advertising