FS-8700-123 MetOne Particle Counter Driver Manual
Page 16 of 22
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
5.13
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 Device #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. The driver will select the device, select the sub device and finally 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
5.14
Map Descriptor Example 11 – Selecting a Sub-Device/Port
This procedure is automatic. Support for this message is provided for testing purposes only.
The driver uses the Address parameter to learn the number of the Sub-Device or Port to be selected.
When the device responds the driver stores the Sub-Device/ Port number the Data Array element specified in the configuration.
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Met1_SubDev_or_Port , Address , Met1_Function
, Length
Select Device
, DA_MODE_CTRL
, 0
, Rdbc
, MET1
, Port
, 0
, SubDevice/Port Select , 1
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’ number 3.
Use the keyword ‘Port’ to select a specific
port.
Number SubDevices 1...64
Number Ports 0...63
Then driver will read the
current record.
Driver will send a port select message to the port
specified with the address parameter.
When using this type of Map Descriptor the driver does
not send a device select message first.
Set Met1_Function =
SubDevice/Port Select