| 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
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