FieldServer FS-8700-47 Appendix A.13. DnpSubType, Appendix A.14. Communication Stats

Page 38

FS-8700-47 DNP 3.0 Driver Manual

Page 38 of 51

 

 

Appendix A.13. DnpSubType

DNP objects often contain more than one element of information, e.g. Object 30, variation 1 is a 32- bit analog input. When the DNP device is polled for data for this object the device returns a data structure which contains a 32 bit value for the input and an 8 bit status byte indicating the input’s quality. Alternatively the FieldServer defaults to the value subtype.

By using the value or flags in the field for dnpSubType you could have the FieldServer extract the value or the status byte and place them in the data array associated with the Map Descriptor. In this example it would have made no sense to try and extract a time as there is no time field associated with object 30, variation 1.

 

Permitted Values

 

Description

 

Value

 

 

 

The driver extracts the value of the object being read.

 

Flags

 

 

 

The driver extracts the quality/status byte of the object.

 

Time1

 

 

 

The driver extracts the time field from the object.

 

Time2

 

 

 

The driver extracts a second time field from the object if the object has more

 

 

 

 

than one.

 

 

 

 

 

 

 

 

 

 

Used with a write Map Descriptor with the dnpFunction set to 5 (Direct

 

 

 

 

 

Operation with no Ack). The driver uses multiple consecutive elements from

 

 

 

 

 

the data array to build the write command.

 

Combo

 

 

 

When used with Object 12 Variation 1.

 

 

 

 

The 1st array element is used as a byte to fill in the control code field.

 

(NB - only valid with

 

The 2nd array element is used as a byte to fill in the count field.

 

 

The 3rd array element is used as a UINT32 to fill in the on time field.

 

Object

12,

Variation

 

The 4th array element is used as a UINT32 to fill in the off time field.

1;

 

 

 

The status field is always set to zero.

 

Object

41,

Variation

 

1 & 2)

 

 

 

When used with Object 41 Variation 1 & 2

 

 

 

 

 

 

 

 

 

 

The 1st array element is used as a INT32 (variation 1) or INT16 (variation2)

 

 

 

 

 

to fill in the requested value field.

 

 

 

 

 

The 2nd Array Element is used as a byte to fill in the control status field. (See

 

 

 

 

 

the definition of object 12 for a description of this field.)

Appendix A.14. Communication Stats

The driver counts bytes on the connection and messages on the Map Descriptors. Thus if a Map Descriptor is used to generate a poll then the transmit messages increment and when a response is received, its received messages will increase. The byte count of these messages will be counted on the connection and not on the Map Descriptor. The connection also counts messages and bytes that form connection related messages such as link resets, confirms, acks, naks….

Appendix A.15. Link Reset

The Link Reset message forms part of the Data Link layer of the DNP 3.0 protocol. It is used to establish and check a connection. When configured as a Client, the driver sends a Link Reset and waits for the Server to respond before starting data transfer. When configured as a Server, the driver will not respond to messages until the remote Client has sent a Link Reset. The following example configuration will override this default behavior.

Example

// Server Side Connections

 

 

 

Connections

 

 

 

 

Port

,Baud

,Parity

,Protocol

,Application

P8

,9600

,None

,DNP

,NoLink

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