FieldServer FS-8700-123 Map Descriptor Example 3 Read the operating mode, Datimes Wrbx MET1

Page 11

FS-8700-123 MetOne Particle Counter Serial Driver Manual

Page 11 of 26

4.6.Map Descriptor Example 2 – Write Hold (or Sample) Times to a Device.

In this example the driver writes the hold time to the field device. The time is specified in seconds. A max of 23 hours 59 minutes and 59 seconds can be specified. To write Sample Times simply change the Met1_Function to ‘Sample Time. The driver extracts the time from the response and stores the hours at the specified offset, the minutes in the next Data Array location and the seconds in the 3rd location.

//Client Side Map Descriptors

Map_Descriptors

 

 

 

 

 

 

Map_Descriptor_Name,

Data_Array_Name,

Data_Array_Offset,

Function,

Node_Name

Met1_Function,

Length

Write_Time,

DA_TIMES,

0,

WRBX,

MET1,

Hold Time ,

1

 

 

 

 

 

 

 

The location in the Data Array

The driver will extract the time in seconds from the Data Array specified here and use it to form the command message to the field device.

This function ‘wrbx’ tells the driver to only send the command each time the value found in the specified DA:offset is updated. Update means each time some other protocol writes to this DA:offset

Change

this

to

Tells

the

‘Sample

Time’

to

FieldServer that

command a sample

one

element of

time

or

make two

the data array is

Map

Descriptors

reserved for this

each with the correct

Map Descriptor.

time function.

 

 

 

4.7.Map Descriptor Example 3 – Read the operating mode.

In this example the driver reads the operating mode from the field device. The driver stores a single element of data extracted from the response. The driver stores a ‘C’ to indicate the field device is counting, a ‘H’ to indicate the device is holding and an ‘S’ to indicate that it has stopped. If the mode is not recognized the driver store s a ‘?’. If another protocol reads these states from the FieldServer it will probably display the ASCII value corresponding to each mode letter: ‘C’=67 ‘H’=72 and ‘S’=83

//Client Side Map Descriptors

Map_Descriptors

 

 

 

 

 

 

 

Map_Descriptor_Name,

Data_Array_Name,

Data_Array_Offset,

Function,

Node_Name

Met1_Function,

Length,

Scan_Interval

Write_Time,

DA_MODE,

0,

rdbc,

MET1,

Mode ,

1,

1.0s

 

 

 

 

 

 

 

 

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 11
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 ClientHF CNC Client Side Connection DescriptionsClient Side Node Descriptors 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