FieldServer FS-8704-49 instruction manual DAAI1 Rdbc

Models: FS-8704-49

1 48
Download 48 pages 32.01 Kb
Page 30
Image 30

FS-8700-49_Data_Aire_DAP

Page 30 of 48

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

 

 

 

 

 

 

 

 

 

 

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

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,

dap-stat,

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) 262-2299 Fax: (408) 262-2269 Toll_Free: 888-509-1970 email: support@FieldServer.com

Page 30
Image 30
FieldServer FS-8704-49 instruction manual DAAI1 Rdbc