FieldServer FS-8700-123 instruction manual Map Descriptor Example 10 Reading from a SubDevice/Port

Page 18

FS-8700-123 MetOne Particle Counter Serial Driver Manual

Page 18 of 26

4.14.Map Descriptor Example 10 – Reading from a SubDevice/Port

If there is a requirement to read data from a specific sub-device or port., any of the preceding examples can be modified by specifying whether the message must be directed at a Sub Device or Port on a Device and also specifying the Sub Device or Port number. This is done by specifying the ‘Met1_SubDev_or_Port’ and ‘Address’ parameters. The same technique is used to write commands or times to SubDevices or Ports.

In this example the current record is read from the Sub Deice #3 on the device named Met1. The driver will use the device name to look up the Node_ID (or device number) on the device descriptor (see chapter 4.3Client Side Node Descriptors ). The driver will select the device, select the sub device and finally will read the current record.

Map_Descriptors

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name,

Data_Array_Name,

Data_Array_Offset,

Function,

Node_Name

Met1_SubDev_or_Port,

Address,

Met1_Function,

Length,

Scan_Interval

Read Record,

DA_DATA,

0,

Rdbc,

MET1,

SubDevice,

3,

Current Record,

20,

1.0s

 

 

 

 

 

 

 

 

 

 

Driver will select this device. (Driver finds the device number by looking at the definition of the Node named MET1.)

Then driver will select ‘SubDevice’

Then driver will read

number 3.

the current record.

Use the keyword ‘Port’ to select a

 

specific port.

 

Number SubDevices 1..64

 

Number Ports 0..63

 

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 18
Contents MetOne Particle Counters Applicability & EffectivityTable of Contents MetOne Particle Counter Serial Description FS-8700-123 MetOne Particle Counter Serial Driver Manual Hardware Connections Hardware Connection Tips / Hints RS-232 PortConfiguring the FieldServer as a MetOne PC Serial Client Data Arrays/DescriptorsClient Side Connection Descriptions Client Side Node DescriptorsHF CNC Driver Related Map Descriptor Parameters Timing ParametersDatimes Rdbc MET1 Map Descriptor Example 3 Read the operating mode Datimes Wrbx MET1Map 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 Appendix A.1. Driver Operating and Error Statistics FYIAppendix A.2. Driver Exposed Operating and Error Statistics UINT32Page This page Intentionally Left Blank