| Page 14 of 32 |
5.4.4.Map Descriptor Example.
This example shows a number of server Map Descriptors used to define a table called ‘DISPLAY’. If a Client sends a read table request the driver responds by sending all the appropriate data for every Map Descriptor with the same table name (provided that the node’s match too. ). The fields are returned in the order in which you define them in the configuration file.
// Server Side Map Descriptors |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
Map Descriptors |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map_Descriptor_Name, | Function, | Node_Name, | Table_Name, | Field_Name, | Field_Description, | Field_Units, | On_String, | Off_String, | Data_Array_Name, | Data_Array_Offset, | Length, | ||||||
Display_MD01, |
| passive, | Node_1, | DISPLAY, | MODE | , | Desired Mode , | , |
| ON | , | OFF | , | TABLE_DISPLAY, | 01 | , | 1, |
Display_MD02 | , | passive, | Node_1, | DISPLAY, | ALARM | , | Equipment Status, | , |
| ALARM | , | NORMAL, | TABLE_DISPLAY, | 02 | , | 1, | |
Display_MD03 | , | passive, | Node_1, | DISPLAY, | CSPT | , | Controlling Setp., | dF | , | NUMERIC , |
| TABLE_DISPLAY, | 03 | , | 1, | ||
Display_MD04 | , | passive, | Node_1, | DISPLAY, | SPT | , | Controlling Temp, | dF | , | NUMERIC, |
| TABLE_DISPLAY, | 04, |
| 1, | ||
Display_MD05 | , | passive, | Node_1, | DISPLAY, | RAT | , | Space Temp, | dF | , | NUMERIC , |
| TABLE_DISPLAY, | 05, |
| 1, | ||
Display_MD06 | , | passive, | Node_1, | DISPLAY, | SAT | , | Supply Air Temp., | dF | , | NUMERIC, |
| TABLE_DISPLAY, | 06, |
| 1, | ||
Display_MD07 | , | passive, | Node_1, | DISPLAY, | FANSTAT, | Fan Mode, | , |
| ON, |
| OFF | , | TABLE_DISPLAY, | 07, |
| 1, | |
Display_MD08 | , | passive, | Node_1, | DISPLAY, | CCAP | , | Cooling Capacity, | % | , | NUMERIC, | - | , | TABLE_DISPLAY, | 08, |
| 1, | |
Display_MD09 | , | passive, | Node_1, | DISPLAY, | HCAP | , | Heating Capacity, | % | , | NUMERIC, | - | , | TABLE_DISPLAY, | 09, |
| 1, | |
Display_MD10 | , | passive, | Node_1, | DISPLAY, | FLTSTAT, | Filter Status, | , |
| DIRTY, |
| CLEAN , | TABLE_DISPLAY, | 10, |
| 1, | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
All the Server Map Descriptors are passive.
By using the NUMERIC keyword, the driver is told to report the value of the variable HCAP as a number. Thus the driver sends the value of the array named TABLE_DISPLAY offset 9 to the Client.
If the value of the array named TABLE_DISPLAY, offset 10 is a 1 then the FieldServer will report he FLTSTAT variable as DIRTY. If it is zero then the variable’s state will be reported as clean.
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