FieldServer FS-8700-123 instruction manual Map Descriptor Example 7 Read the Current Record

Page 15

FS-8700-123 MetOne Particle Counter Serial Driver Manual

Page 15 of 26

4.11.Map Descriptor Example 7 – Read the Current Record

In this example the driver reads the current record and stores the values in the specified Data Array. A single record comprises the following data: status; date and time and a count for 1 or more locations. The driver has no advance knowledge of the number of count fields to expect in the response. It simply stores them in consecutive locations in the Data Arrays. To map these counts to an upstream protocol, the order of the count fields must be known. The driver can store a maximum of 20 count fields. The Map Descriptor length must be set to a value that allows for enough data to be stored bearing in mind that it requires 8 DA elements to store the status, date and time and period.

One of these Map Descriptors is required for each device from which the current record is to be read..

// Client Side Map Descriptors

 

 

 

 

 

 

Map_Descriptors

 

 

 

 

 

 

 

Map_Descriptor_Name,

Data_Array_Name,

Data_Array_Offset,

Function,

Node_Name

Met1_Function,

Length,

Scan_Interval

Read Record,

DA_DATA,

0,

Rdbc,

MET1,

Current Record,

20,

1.0s

 

 

 

 

 

 

 

 

Driver stores the current record information in the Data Array specified here, starting at the specified offset. The data is arranged as follows.

0Status Byte

1 Date - Month

2 Date - Day

3 Date - Year

4 Time - Hours

5 Time - Minutes

6 Time - Seconds

7 Period

8 Count #1

9 Count #2

10 Count #3 …

The length must be set to a value large enough to store the 8 fixed data items and the variable number of count fields.

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

Image 15
Contents Applicability & Effectivity MetOne Particle CountersTable of Contents MetOne Particle Counter Serial Description FS-8700-123 MetOne Particle Counter Serial Driver Manual Hardware Connections RS-232 Port Hardware Connection Tips / HintsData Arrays/Descriptors Configuring the FieldServer as a MetOne PC Serial ClientClient Side Connection Descriptions Client Side Node DescriptorsHF CNC Timing Parameters Driver Related Map Descriptor ParametersDatimes Rdbc MET1 Datimes Wrbx MET1 Map Descriptor Example 3 Read the operating modeMap Descriptor Example 4 Start / Stop Counting Map Descriptor Example 5 Change Mode Map Descriptor Example 6 Select Device Map Descriptor Example 7 Read the Current Record Map Descriptor Example 8 Dumping the Current Record DACURRD01LBL ,0 Map Descriptor Example 10 Reading from a SubDevice/Port Map Descriptor Example 11 Selecting a Sub-Device/Port Configuring the FieldServer as a MetOne PC Serial Server Appendix A. Driver Error Messages Page FYI Appendix A.1. Driver Operating and Error StatisticsUINT32 Appendix A.2. Driver Exposed Operating and Error StatisticsPage This page Intentionally Left Blank