FieldServer FS-8704-49 Computer Drive User Manual


 
FS-8700-49_Data_Aire_DAP Page 30 of 48
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: support@FieldServer.com
Appendix B.6. Advanced Map Descriptor Example 2:Collecting Error Messages
The DAP-II Status query returns 14 bytes of errors & status information. The arrangement and meaning of these bytes is defined by
the Data Aire Corporation and is also dependent on the type of DAPII module being polled.
// Client Side Map Descriptors
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_name, Address, Length, DA_Func, DA_Field, Scan_Interval
A1, DA_AI1, 0, RDBC, Node_A, 0, 1, dap-stat, errors, 5
A2, DA_AI1, 1, passive, Node_A 0, 1, dap-stat, bitErrors, 5
Appendix B.7. Advanced Map Descriptor Example 3: Using Special DA Field
// Client Side Map Descriptors
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_name, Address, Length, DA_Func, DA_Field, DA_Method, DA_Bytecnt, DA_Offset, DA_Elecnt, Scan_Interval
A1, DA_AI3, 0, RDBC, Node_A, 0, 1, dap-stat, special, 1, 4, 10, 1, 5
The 'errors' key word returns 14 bytes,
thus the DA_AI1 should be a BYTE
array. Each byte will have values 0-15
to represent the value of the bits in
each byte.
The bitErrors extracts the same data
from the DAP but presents it as a
series of 14x8 bits. Thus DA_DI1
should be a BIT array
Data arrangement and meaning of each
error is defined by Data Aire Corp.
Example: Bit 24 is a LOW TEMP
WARNING for DAPII-044/8/9 units.
Example: Bit 09 is a HUMIDITY SENSOR
PROBLEM for a DAPII-080 unit
BitErrors is a synonym
for errors. The data is
extracted using a
different data fo
rmat.
Server is a DAP
and is reading
status
information.
It would be sensible for
DA_AI3 to be an array of
Floats because extraction
method#1 returns a floating
point number.
If parameter
'special' is used,
additional
parameters must
be specified.
Specials can
be used as
rdbc and
passive Map
Descriptors.
See Appendix B.4
for descriptions on
how these
extraction
methods work.
Performs a
DAP status
query
From the data bytes
returned by the
Server, extract 4 bytes
starting at byte 10 and
apply method 1 to
convert the bytes
before writing them to
the FieldServer Data
Array.