FieldServer FS-8700-123 Map Descriptor Example 10 - Reading from a SubDevice/Port, number

Models: FS-8700-123

1 26
Download 26 pages 63.02 Kb
Page 18
Image 18
4.14.Map Descriptor Example 10 – Reading from a SubDevice/Port

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

Page 18
Image 18
FieldServer FS-8700-123 Map Descriptor Example 10 - Reading from a SubDevice/Port, Then driver will select ‘SubDevice’