FS-8705-06 GPA (General Purpose ASCII) Manual Page 10 of 15
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldserver.com
Tel: (408) 262-2299 Fax: (408) 262-9042 Toll_Free: 888-509-1970 email: support@fieldserver.com
4.5. Map Descriptor Example.
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. Read appendix xxxxxx to learn how the driver knows when a stream
has ended and it should process and strore 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 making them
so may facilitate
trouble shooting.
The name of the
Data Array where
the incoming data
should be stored.
The 1
s
t
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.