FieldServer FS-8700-47 instruction manual Map Descriptor Example 6 Unsolicited Messages

Page 24

FS-8700-47 DNP 3.0 Driver Manual

Page 24 of 51

 

 

5.3.9.Map Descriptor Example 5 – Serving Objects which have a time field

Some Data Objects have a time field associated with them, e.g. Frozen Analog Input with Time of Freeze (Object = 31, Variation 3). When this object is served the Server must provide the value of the frozen input as well as the time of the freeze. The driver extracts the object’s value from the Primary Data Array. The object’s time is extracted from a secondary Data Array. If a secondary Data Array is not specified, the driver serves the current FieldServer time in UTC (Universal Coordinated Time). If a secondary Data Array is specified, the driver extracts the value and multiplies it by 1000 before serving it. Thus the Secondary Data Array is assumed to contain the number of seconds since Jan 1 1970 and not the number of milliseconds.

//Server Side Map Descriptors

Map_Descriptors

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Address

,Length

,dnpDataType

,dnpDataVari

,DA_Byte_Name

Serve_FrozenAI_vari3

,DA_AI

,0

,Server

,Node_A

,0

,100

,31

,3

,DA_AI_TIMES

 

 

 

 

 

 

 

 

 

 

5.3.10.Map Descriptor Example 6 – Unsolicited Messages

A driver configured as an active Server can send unsolicited messages (not responses to a poll) to a remote Client when data changes.

In this example, 100 elements of the Data Array called DA_AI are monitored. If the data in any one of these elements is updated (even if the value doesn’t change) then the driver generates a once off write message to the remote node called Node_A.

Subscriptions

 

 

 

Data_Array_Name

,Data_Array_Offset

,Node_Name

,COV_Deadband

DA_Class0_bin

,1

,Node_A

,1

DA_Class0_bin

,3

,Node_A

,1

DA_Class0_ana

,0

,Node_A

,2.0

 

 

 

 

The function 30 tells the driver to send the message as an unsolicited message.

//Client Side Map Descriptors

Map_Descriptors

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name ,Data_Array_Name ,Data_Array_Offset

,Function

,Node_Name

,Address

,Length

,dnpDataType

,dnpDataVari

,DnpFunction

EventMsg1

,DA_AI

,0

,Wrbx

,Node_A

,0

,100

,30

,0

,130

This is how you specify the Data Array that will contain the time (in seconds). The driver uses the value found at the offset specified by Data_Array_Offset. You should use a Data Array whose format is UINT32 as only that format provides sufficient precision to store the big numbers required to specify the number of seconds since Jan 1, 1970.

Example: 1095135207 == Aprox Sept 14th 2004

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 24
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. Advanced Topics Appendix A.1. DNP 3.0 Protocol Appendix A.2. DNP Driver FunctionalityAppendix A.3. DNP Objects mapped to FieldServer Data Arrays 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.15. Link Reset Appendix A.13. DnpSubTypeAppendix A.14. Communication Stats 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