| Page 30 of 48 |
Appendix B.6. Advanced Map Descriptor Example 2:Collecting Error Messages
The
// 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, | errors, | 5 | |
A2, | DA_AI1, | 1, | passive, | Node_A | 0, | 1, | bitErrors, | 5 | |
|
|
|
|
|
|
|
|
|
|
The 'errors' key word returns 14 bytes, thus the DA_AI1 should be a BYTE array. Each byte will have values
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
Example: Bit 09 is a HUMIDITY SENSOR PROBLEM for a
Server is a DAP |
|
and is reading |
|
status | BitErrors is a synonym |
information. | for errors. The data is |
| extracted using a |
| different data format. |
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, | special, | 1, | 4, | 10, | 1, | 5 | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It would be sensible for | Specials can | Performs a | If parameter | See Appendix B.4 | |
DAP status | |||||
DA_AI3 to be an array of | be used as | 'special' is used, | for descriptions on | ||
query | |||||
Floats because extraction | rdbc and | additional | how these | ||
| |||||
method#1 returns a floating | passive Map |
| parameters must | extraction | |
point number. | Descriptors. |
| be specified. | methods work. |
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.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com Tel: (408)