FieldServer FS-8700-47 instruction manual Map Descriptor Example 4 Reading Class Data

Page 14

FS-8700-47 DNP 3.0 Driver Manual

Page 14 of 51

 

 

4.4.7.Map Descriptor Example 4 – Reading Class Data

In this example we read class data. A class is a structure of different data types and variations. Vendors group data into classes based on the relationships and importance of the data. In this example you will see that only one of the Map Descriptors is active – the class data read. The remaining passive Map Descriptors are used to process the response from the class data read. The response may consist of a number of data object types and variations and is dependent on the vendor’s implementation of DNP. Some vendors allow users to configure what objects constitute a class.

This Map Descriptor requests class 1 data from the DNP device.

// Class 1 Data

 

 

 

 

 

 

 

 

 

 

 

 

 

Map_Descriptors

 

 

 

 

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name

,Scan_Interval

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Address

,Length

,dnpSubType

,dnpDataType

,dnpDataVari

,dnpQualifier

,dnpAssociate

,timeout

Class1-Data

,13.0s

,DA_A3

,0

,Rdbc

,Node_A

,0

,100

,value

,60

,1

,6

,1

,5.0s

Map_Descriptors

 

 

 

 

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name

,Scan_Interval

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Address

,Length

,dnpSubType

,dnpDataType

,dnpDataVari

,dnpAssociate

 

 

Class1-di

,3.0s

,CL_1

,0

,Passive

,Node_A

,0

,156

,value

,1

,0

,1

 

 

Class1-do

,3.0s

,CL_2

,0

,Passive

,Node_A

,0

,9

,value

,10

,0

,1

 

 

Class1-co

,3.0s

,CL_3

,0

,Passive

, Node_A

,0

,39

,value

,20

,0

,1

 

 

Class1-ai-1

,3.0s

,CL_4

,0

,Passive

,Node_A

,0

,100

,value

,30

,0

,1

 

 

Class1-ai-2

,3.0s

,CL_5

,0

,Passive

,Node_A

,100

,100

,value

,30

,0

,1

 

 

Class1-ai-3

,3.0s

,CL_6

,0

,Passive

,Node_A

,200

,100

,value

,30

,0

,1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

These Map Descriptors process the data that the device returns. If more data is returned that you have defined Map Descriptors for then it will be abandoned.

The common value for dnpAssociate ties these Map Descriptors together and tells the driver to use them both to process the response data.

4.4.8.Map Descriptor Example 5 – Read an unknown quantity of points (Qualifier 6)

In this example the qualifier has been set to 6. This is the qualifier the protocol uses to request all possible points of a particular object type and variation. Ensure that there is sufficient length to store all possible data.

//Client Side Map Descriptors

Map-Descriptors

 

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Address

,Length

,Scan_Interval

,dnpDataType

,dnpDataVari

,DnpQualifier

ReadAll_AI’s

,DA_AI

,0

,Rdbc

,Node_A

,0

,100

,5.0s

,30

,1

,6

 

 

 

 

 

 

 

 

 

 

 

Enough space has been reserved for 100 objects. If the response contains more then there will be an error.

The Qualifier of 6 tells the driver to request all data objects.

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

Image 14
Contents Driver Manual FS-8700-47 DNP Table of Contents FS-8700-47 DNP 3.0 Driver Manual Table of Contents DNP 3.0 Driver Description Page FS-8700-47 DNP 3.0 Driver Manual Hardware Connections Connection NotesConfiguring the FieldServer as a DNP 3.0 Driver Client Data ArraysClient Side Connection Descriptors Client Side Node DescriptorsDriver Specific Map Descriptor Parameters Timing Parameters Map Descriptor Example 1 Simple Read Map Descriptor Example 3 Simple Read Extract Value & Status Map Descriptor Example 4 Reading Class Data Map Descriptor Example 6 Read an unknown variation Configuring the FieldServer as a DNP 3.0 Driver Server Server Side Connection DescriptorsServer Side Node Descriptors Driver Specific Map Descriptor Parameters Map Descriptor Example 1 Discrete Data Map Descriptor Example 2 Class DataMap Descriptor Example 3 Class Data another example RTUMap Descriptor Example 4 Default Variation Variation zero Map Descriptor Example 5 ClassDataServingCtrl AnaInputs Map Descriptor Example 6 Unsolicited Messages Server Side Limitations Appendix A.3. DNP Objects mapped to FieldServer Data Arrays Appendix A. Advanced Topics Appendix A.1. DNP 3.0 ProtocolAppendix A.2. DNP Driver Functionality Appendix A.4. Channel Idle, Master & Slave IdleAppendix A.5. DLL Layer Functionality in the Master Appendix A.6. App Layer Functionality in the MasterAppendix A.7. Internal Indications, Object 80 and Dnpii Incoming Internal Indications BytesPage Internal Indications reported in Responses ServerIIArrayResponses to Polls for Object 80 Internal Indications Appendix A.8. DNPStats DnpstatsAppendix A.9. DNP 3.0 Data Objects Counter Change Event All Variations See notes in Appendix A.10 for function code FS-8700-47 DNP 3.0 Driver Manual Appendix A.11. Controlling the DNP 3.0 Driver’s Qualifier Appendix A.12. FieldServer DNP Node NumberAppendix A.14. Communication Stats Appendix A.15. Link ResetAppendix A.13. DnpSubType Appendix A.16. Controlling DA Offsets Appendix A.17. dnpIndexStyleAppendix A.18. Real Time Clock Synchronization DatimePage Appendix A.19. Select and Operate Page Page Appendix A.20. Multiple requests in a single poll Appendix B. Driver Error Messages Page Page Page FYI