Driver Manual |
4.4.5 Map Descriptor Example 2
In this example two map descriptors are provided. They both read table 16 of a series 9 device. You will see though that the 2nd map descriptor has an extra keyword to override the default format. Read section 6.1 form more information on default data formats.
//Reads elements 1 through 7 from table 5 in a series 9 device. According to the product specification the 8th element is stored using a different format and thus using this map descriptor to read mixed data type will produce unexpected results.
Map_Descriptors
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, node_name, Address, Length, Cana_Series, Cana_table, Scan_Interval
TABLE05_1 | ,TBL05_DATA ,0 | , rdbc , DEV11 , 1 | , 6 | , 9 | , 5 | , 1.0s |
//Reads the Boiler Limit Time (Offset 10) from table 5 in a series 9 device According to the product specification the Boiler Limit Time is stored as a Swapped Integer. The Default format this driver uses for the table is Byte.
Map_Descriptors
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, node_name, Address, Length, Cana_Series, Cana_table, Cana_format, Scan_Interval
TABLE05_2 | ,TBL05_DATA , 0 | , rdbc , DEV11 , 7 | , 1 | , 9 | , 5 | , swap_int , 1.0s |
Any name that is meaningful to you. The driver validates map descriptors and reports errors referring to the map
descriptor name.With the offset equal to zero the data is placed in the array element equal to the address.
The offset is added to the address when determining the element of the data array to be used for storage.
This is the offset of the
Boiler Limit Time in Table 5.
This parameter
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 (408)
Visit our website: www.fieldserver.com
Page 7