| Page 19 of 51 |
|
|
5.3.4.Map Descriptor Example 1 – Discrete Data.
In this example the following Map Descriptor will be used allow a remote device to request discrete input data.
// Server Side Map Descriptors |
|
|
|
|
|
|
|
| |
Map_Descriptors |
|
|
|
|
|
|
|
|
|
Map_Descriptor_Name | ,Data_Array_Name | ,Data_Array_Offset | ,Function | ,Node_Name | ,Address | ,Length | ,Scada_Hold_Timeout | ,dnpDataType | ,dnpDataVari |
A1 | ,DA_DI1 | ,0 | ,Passive | ,Node_A | ,0 | ,10 | ,5 | ,1 | ,1 |
|
|
|
|
|
|
|
|
|
|
The DNP 3.0 driver will use data from this array to form the response.
This Map Descriptor can respond to a read/write poll from a remote DNP device.
This Map Descriptor will be used to process any poll whose objects match and whose addresses fall inside the address and length range specified by this Map Descriptor.
This is Map Descriptor will process commands for a DNP Object Type 1 variation 1 Map Descriptor i.e. binary input.
5.3.5.Map Descriptor Example 2 – Class Data
Class data is a composite set of data comprising data points from different data types. In this example the Map Descriptors have been created to serve class 0 data. Map Descriptors associated with the Class 0 Map Descriptor tell the driver which data to serve as the class data. When a request is received it is matched against a Class Map Descriptor. If a matching Map Descriptor is found the driver builds a response using the data requested in the associated Map Descriptors. In this example 10 Digital Inputs and 2 Analog Inputs will be served as the response.
//Server Side Map Descriptors
Map_Descriptors |
|
|
|
|
|
|
|
|
|
Map_Descriptor_Name | ,Data_Array_Name | ,Data_Array_Offset | ,Function | ,Node_Name | ,Address | ,Length | ,DnpAssoc | ,dnpDataType | ,dnpDataVari |
ServeClass0Data | ,DA_Dummy | ,0 | ,Server | ,Node_A | ,0 | ,1 | ,1 | ,60 | ,0 |
ServeClass0Data_DI | ,DA_DI | ,0 | ,Server | ,Node_A | ,0 | ,10 | ,1 | ,1 | ,1 |
ServeClass0Data_AI | ,DA_AI | ,0 | ,Server | ,Node_A | ,0 | ,2 | ,1 | ,30 | ,1 |
|
|
|
|
|
|
|
|
|
|
These are Server Map | The dnpAssoc field forms the association |
Descriptors | between these Map Descriptors. |
’ServeClass0Data’ defines the Map Descriptor used to respond to request for Class 0 Data. (Type=60 vari=0).
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