background image

5

2. DNP3 Protocol Primer

PXM 4/6/8K DNP3 Ethernet Communications User Manual

   MN150005EN   January 2017   www.eaton.com

2.2 Link Layer Responsibility

The link layer has the responsibility of making the physical 

link reliable.  It does this by providing error detection and 

duplicate frame detection.  The link layer sends and receives 

packets, which in DNP3 terminology are called frames. 

Sometimes transmission of more than one frame is neces-

sary to transport all of the information from one device to 

another.
A DNP3 frame consists of a header and data section.  The 

header specifies the frame size, contains data link control 

information and identifies the DNP3 source and destination 

device addresses.  The data section is commonly called the 

payload and contains data passed down from the layers 

above.

DNP3 Frame

Header

Data Section

Header

Sync

Length

Link Control Destination Source

CRC

Figure 4. DNP3 Header and Data Sections. 

Every frame begins with two sync bytes that help the 

receiver determine where the frame begins.  The length 

specifies the number of octets in the remainder of the 

frame, not including CRC check octets.  The link control 

octet is used for the sending and receiving link layers to 

coordinate their activities.

2.2.1 Addressing

The destination address specifies which DNP3 device 

should process the data, and the source address identi-

fies which DNP3 device sent the message.  Having both 

destination and source addresses satisfies at least one 

requirement for peer-to-peer communications because the 

receiver knows where to direct its responses.  65,520 indi-

vidual addresses are available.  Every DNP3 device must 

have a unique address within the collection of devices send-

ing and receiving messages to and from each other.  Three 

destination addresses are reserved by DNP3 to denote an 

all-call message; that is, the frame should be processed 

by all receiving DNP3 devices.  One address is a universal 

address, the details of which are not given here, and twelve 

addresses are reserved for special needs in the future.

2.2.2 CRC Checks

The data payload in the link frame contains a pair of CRC 

octets for every 16 data octets.  This provides a high degree 

of assurance that communication errors can be detected.  

The maximum number of octets in the data payload is 250, 

not including CRC octets.  (The maximum length link layer 

frame is 292 octets if all the CRC and header octets are 

counted.)

2.2.3 Link Layer Confirmation

One often hears the term “link layer confirmation” when 

DNP3 is discussed.  A feature of DNP3’s link layer is the 

ability for the transmitter of the frame to request the receiv-

er to confirm that the frame arrived.  Using this feature is 

optional, and it is often not employed because there are 

other methods for confirming receipt of data.  It provides 

an extra degree of assurance of reliable communications.  

If a confirmation is not received, the link layer may retry 

the transmission.  Some disadvantages to using link layer 

confirmation are the extra time required for confirmation 

messages and waiting for multiple timeouts when retries 

are configured.

2.2.4 Transport  Layer

The transport layer has the responsibility of breaking long 

application layer messages into smaller packets sized for the 

link layer to transmit, and, when receiving, to reassemble 

frames into longer application layer messages.  In DNP3 the 

transport layer is incorporated into the application layer.  The 

transport layer requires only a single octet overhead to do 

its job.  Therefore, since the link layer can handle only 250 

data octets, and one of those is used for the transport func-

tion, each link layer frame can hold as many as 249 applica-

tion layer octets.

2.2.5 Application Layer Fragments

Application layer messages are broken into fragments.  

Maximum fragment size is determined by the size of the 

receiving device’s buffer.  The normal range is 2048 to 4096 

bytes.  A message that is larger than one fragment requires 

multiple fragments.  Fragmenting messages is the responsi-

bility of the application layer.
Note that an application layer fragment of size 2,048 must 

be broken into 9 frames by the transport layer, and a frag-

ment size of 4,096 needs 17 frames.  Interestingly, it has 

been learned by experience that communications are some-

times more successful for systems operating in high noise 

environments if the fragment size is significantly reduced.

Summary of Contents for Power Xpert PXM 4000

Page 1: ...PXM 4 6 8K DNP3 Ethernet Communications User Manual PXM 4 6 8K DNP3 ...

Page 2: ...d Event Data 6 2 4 Unsolicited Responses 7 2 5 Implementation Levels 7 2 6 Summary 7 3 DNP DEVICE PROFILE 8 4 IMPLEMENTATION TABLE 12 5 DNP3 ETHERNET COMMUNICATION SETUP CONFIGURATION UTILITY 16 5 1 DNP3 Node Identification 17 5 2 Global Settings 18 5 3 Communication 19 5 4 DNP3 Input Output Setup 23 5 5 Procedure to Create the DNP3 Database Configuration 25 5 6 Assigning a Dead Band 28 APPENDIX A...

Page 3: ...ze the breakers and voltage regulators DNP3 uses the term outstation to denote remote comput ers as are found in the field The term master is used for the computers in the control centers DNP3 provides the rules for remotely located computers and master station computers to communicate data and control commands DNP3 is a non proprietary protocol that is available to anyone by visiting the web site...

Page 4: ...gical analog quantities such as those used for set points Figure 1 Master and Outstation Relationship The elements of the arrays are labeled 0 through N 1 where N is the number of blocks shown for the respective data type In DNP3 terminology the element numbers are called the point indexes Indexes are zero based in DNP3 that is the lowest element is always identified as zero Indexes are zero based...

Page 5: ... matching DNP3 User s code at the other end More will be said about data types and software lay ers later but first we want to examine a few typical system architectures where DNP3 is used Figure 2 Common System Architectures 2 1 3 System Architecture Figure 2 shows common system architectures in use today At the top is a simple one on one system having one master station and one outstation The ph...

Page 6: ... database where it is retrievable by a master station on the left side of the figure This design is often seen in substations where the data concentrator col lects information from local intelligent devices for transmis sion to the master station Figure 3 Master and Outstation Relationship Layering 2 1 4 TCP IP Many vendors offer products that operate using TCP IP to transport DNP3 messages in lie...

Page 7: ...rame contains a pair of CRC octets for every 16 data octets This provides a high degree of assurance that communication errors can be detected The maximum number of octets in the data payload is 250 not including CRC octets The maximum length link layer frame is 292 octets if all the CRC and header octets are counted 2 2 3 Link Layer Confirmation One often hears the term link layer confirmation wh...

Page 8: ...ion numbers as fol lows 1 A 32 bit integer value with flag 2 A 16 bit integer value with flag 3 A 32 bit integer value 4 A 16 bit integer value 5 A 32 bit floating point value with flag and 6 A 64 bit floating point value with flag Note N The flag referred to is a single octet with bit fields indicating whether the source is on line the data source restarted communications are lost with a downstre...

Page 9: ...sly transmits a response without having received a specific request for the data Not all out stations have this capability This mode is useful when the system has many outstations and the master requires noti fication as soon as possible after a change occurs Rather than waiting for a master station polling cycle to get around to it the outstation simply transmits the change Before configuring a s...

Page 10: ...lave Notable objects functions and or qualifiers supported in addition to the Highest DNP Levels Supported For static non change event object requests request qualifier codes 07 and 08 limited quantity and 17 and 28 index are supported 16 16 bit and 32 bit Analog Change Events with Time are supported Floating Point Analog Output Status and Output Block Objects 40 are supported The read function code...

Page 11: ...essages Timeouts while waiting for Data Link Confirm None Fixed at ____ Variable Configurable Complete Appl Fragment None Fixed at ____ Variable Configurable Application Confirm None Fixed at 10 Sec Variable Configurable Complete Appl Response None Fixed at ____ Variable Configurable Others Transmission Delay configurable Select Operate Arm Timeout configurable 0 sec to 30 sec Need Time Interval configurab...

Page 12: ...ne or the other Reports time tagged Binary Input Change Events when no specific variation requested Never Binary Input Change With Time Binary Input Change With Relative Time Configurable to Binary Input Change With Time and Binary Input Change With Relative Time Sends Unsolicited Responses Never Configurable Only certain objects Sometimes ENABLE DISABLE UNSOLICITED Sends Static Data in Unsolicited R...

Page 13: ...l Over at No Counters Reported Configurable 16 Bits 32 Bits Other Value _____ Point by point list attached Sends Multi Fragment Responses Yes No Configurable as Always or When reporting Event Data Sequential File Transfer Support Append File Mode Yes No Custom Status Code Strings Yes No Permissions Field Yes No File Events Assigned to Class Yes No File Events Send Immediately Yes No Multiple Blocks ...

Page 14: ...mited qty 17 28 index 129 response 00 01 start stop 17 28 index see note 2 1 2 Binary Input with Status 1 read 00 01 start stop 06 no range or all 07 08 limited qty 17 28 index 129 response 00 01 start stop 17 28 index see note 2 2 0 Binary Input Change Any Variation 1 read 06 no range or all 07 08 limited qty 2 1 Binary Input Change without Time 1 read 06 no range or all 07 08 limited qty 129 res...

Page 15: ...ll 07 08 limited qty 17 28 index 129 response 00 01 start stop 17 28 index see note 2 21 2 16 Bit Frozen Counter with Flag 1 read 00 01 start stop 06 no range or all 07 08 limited qty 17 28 index 129 response 00 01 start stop 17 28 index see note 2 21 5 32 Bit Frozen Counter with Time Of Freeze 1 read 00 01 start stop 06 no range or all 129 response 00 01 start stop 17 28 index see note 1 21 6 16 ...

Page 16: ...op 06 no range or all 07 08 limited qty 17 28 index 129 response 00 01 start stop 17 28 index see note 2 30 3 default see note 1 32 Bit Analog Input without Flag 1 read 00 01 start stop 06 no range or all 07 08 limited qty 17 28 index 129 response 00 01 start stop 17 28 index see note 2 30 4 16 Bit Analog Input without Flag 1 read 00 01 start stop 06 no range or all 07 08 limited qty 17 28 index 1...

Page 17: ...put Status 1 read 00 01 start stop 06 no range or all 07 08 limited qty 17 28 index 129 response 00 01 start stop 17 28 index see note 2 40 3 Short floating point Analog Output Status 1 read 00 01 start stop 06 no range or all 07 08 limited qty 17 28 index 129 response 00 01 start stop 17 28 index see note 2 50 0 Time and Date 50 1 default see note 1 Time and Date 1 read 07 limited qty 1 129 respo...

Page 18: ...easy to use web based interface is provided to configure DNP parameters and database as per user requirement Installer can get connected to meter by enter ing IP address of meter in a web browser No separate software installation is required to configure DNP3 stack Below sections explain each steps of DNP3 configuration in detail Figure 5 DNP3 Setup Page DNP3 configuration setup is located at Setu...

Page 19: ...y 2017 www eaton com 5 1 DNP3 Node Identification Figure 6 DNP3 Node Identification Page If the User wishes to change parameters then the User first needs to press Edit option and Authenticate self to avoid unauthorized access After Authentication the param eters shall be editable as shown in Figure 7 Figure 7 DNP3 Setup Edit Page ...

Page 20: ...00 as port number 5 2 Global Settings When this page is selected the User can configure the fol lowing parameters 1 DNP Select Operation Timeout This parameter is used for Select Before Operate SBO operation on digital outputs relays If the SBO mode is used by the master to operate meter s digital outputs then DNP Select operation timeout parameter is used In this particular operation the DNP3 mas...

Page 21: ... Ethernet Communications User Manual MN150005EN January 2017 www eaton com Figure 8 DNP3 Global Settings Setup Edit Page 5 3 Communication The User can set the DNP3 stack communication related parameter in this web page There are layer wise sections for easy parameter settings ...

Page 22: ...n application layer frame sent by the PXM meter 2 Application Layer Multiple Fragment Responses Allowed This parameter indicates weather the PXM meter is allowed to send multiple application fragments in response to the request from the DNP master It is possible that data which needs to be sent to the DNP master may not fit into a single application fragment In such case if this option is selected...

Page 23: ...n the PXM meter shall expect a data link confirmation from the DNP master If the data link frame contains static information then the PXM meter shall not expect a data link con firmation from the DNP master Figure 10 Link Layer Confirmation Choices Choosing this option may add overhead at the DNP master Therefore it needs to be selected carefully Always The PXM meter shall always expect or wait fo...

Page 24: ...e There will be no time synchronization between the DNP master and PXM meter The PXM meter shall never set the time sync flag in IIN bytes Figure 11 Time Synchronization Type Page Interval The PXM meter will periodically set the time sync flag to request time synchronization to match the time date of the master When the time sync flag is set by the PXM meter it is up to the DNP master to achieve t...

Page 25: ...of PXM meter parameters vari ables which can be added to the PXM DNP slave database Using the DNP Input Output web page the User can select and configure the required meter parameters for the spe cific requirement List in Appendix A has been prepared by keeping reference to the MODBUS address and length For the encoding of these parameters the User should refer to the MODBUS section Figure 12 show...

Page 26: ...assword these buttons will not be operational The User needs to press the Edit button and enter credentials to access these options 1 Load Config The User can load a pre configured DNP database configuration from a file into the User interface to save efforts This file must be generated using the web interface and must be present on the computer where the web interface is being used Upon selecting...

Page 27: ...e to Meter option the newly configured database will not be effective After using this option the web interface will prompt the User if the PXM meter needs to be rebooted or not The User may choose to reboot immediately or must reboot meter manual ly later so that the modified DNP database becomes effective 5 5 Procedure to Create the DNP3 Database Configuration Appendix A provides a list of meter...

Page 28: ... selection list are deleted 3 Delete Deletes selected parameters in the selection list on particular a tab For example if the Delete button is pressed on Binary Counter tab then a particular select ed parameter i e binary counter in the selection list is deleted 4 Up Moves a particular parameter to a higher DNP index than its existing position When the list is populated and it is required to chang...

Page 29: ...27 5 DNP3 Ethernet Communication Setup Configuration Utility PXM 4 6 8K DNP3 Ethernet Communications User Manual MN150005EN January 2017 www eaton com Figure 18 Delete Button ...

Page 30: ...0 Amps or greater than 510 Amps When this particular event is triggered the value of IA which caused the event becomes reference for next event comparison For binary counters if the difference delta between refer ence value and current value is greater than the dead band then an event is triggered This is because the counter value cannot decrement When an event is triggered the value which caused ...

Page 31: ...Analog Input 32 Bit 18 VCN Volts Analog Input 32 Bit 19 VLNavg Volts Analog Input 32 Bit 20 VNG Volts Analog Input 32 Bit 21 Real Power Watts Watts Analog Input 32 Bit 22 Reactive Power VAr VAr Analog Input 32 Bit 23 Apparent Power VA VA Analog Input 32 Bit 24 PFd Displacement Power Factor 0 Analog Input 32 Bit 25 PFa Apparent True Power Factor 0 Analog Input 32 Bit 26 Frequency Hz Analog Input 32...

Page 32: ... Bit 57 Reverse Wh kWh Counter 32 Bit 58 Reverse Wh Roll Over Counter kWh Counter 16 Bit 59 Sum Total Wh kWh Counter 32 Bit 60 Sum Total Wh Roll Over Counter kWh Counter 16 Bit 61 Delivered Leading VArh kvarh Counter 32 Bit 62 Delivered Leading VArh Roll Over Counter kvarh Counter 16 Bit 63 Received Lagging VArh kvarh Counter 32 Bit 64 Received Lagging VArh Roll Over Counter kvarh Counter 16 Bit 6...

Page 33: ...er kWh Counter 16 Bit 101 Real Reverse Energy Rate A kWh Counter 32 Bit 102 Real Reverse Energy Rate A Roll Over Counter kWh Counter 16 Bit 103 Real Reverse Energy RTP kWh Counter 32 Bit 104 Real Reverse Energy RTP Roll Over Counter kWh Counter 16 Bit 105 Total Real Reverse Energy kWh Counter 32 Bit 106 Total Real Reverse Energy Roll Over Counter kWh Counter 16 Bit 107 Real Net Energy Rate A kWh C...

Page 34: ...Energy RTP kvarh Counter 32 Bit 140 Reactive Net Energy RTP Roll Over Counter kvarh Counter 16 Bit 141 Total Reactive Net Energy kvarh Counter 32 Bit 142 Total Reactive Net Energy Roll Over Counter kvarh Counter 16 Bit 143 Reactive Total Energy Rate A kvarh Counter 32 Bit 144 Reactive Total Energy Rate A Roll Over Counter kvarh Counter 16 Bit 145 Reactive Total Energy RTP kvarh Counter 32 Bit 146 ...

Page 35: ...Bit 183 Even Harmonic Distortion Magnitude Phase C Current Amps Analog Input 32 Bit 184 Even Harmonic Distortion Magnitude VCA Volts Analog Input 32 Bit 185 Even Harmonic Distortion Magnitude VCN Volts Analog Input 32 Bit 186 Odd Harmonic Distortion Magnitude Neutral Current Ampere Analog Input 32 Bit 187 Odd Harmonic Distortion Magnitude AUX VAB Volts Analog Input 32 Bit 188 Odd Harmonic Distorti...

Page 36: ...gnitude Phase B Current Amps Analog Input 32 Bit 220 Total Harmonic Distortion Magnitude VBC Volts Analog Input 32 Bit 221 Total Harmonic Distortion Magnitude VBN Volts Analog Input 32 Bit 222 Total Harmonic Distortion Magnitude Phase C Current Amps Analog Input 32 Bit 223 Total Harmonic Distortion Magnitude VCA Volts Analog Input 32 Bit 224 Total Harmonic Distortion Magnitude VCN Volts Analog Inp...

Page 37: ...alog Input 32 Bit 266 Voltage Phasor VCN Quadrature Volts Analog Input 32 Bit 267 Voltage Phasor VAB Direct Volts Analog Input 32 Bit 268 Voltage Phasor VAB Quadrature Volts Analog Input 32 Bit 269 Voltage Phasor VBC Direct Volts Analog Input 32 Bit 270 Voltage Phasor VBC Quadrature Volts Analog Input 32 Bit 271 Voltage Phasor VCA Direct Volts Analog Input 32 Bit 272 Voltage Phasor VCA Quadrature ...

Page 38: ...eactive Demand Power Peak Dmd Rate RTP var Analog Input 32 Bit 305 Last Month Net Reactive Demand Power Peak Dmd Rate A var Analog Input 32 Bit 306 Last Month Net Reactive Demand Power Peak Dmd Rate RTP var Analog Input 32 Bit 307 Last Month Sum Reactive Demand Power Peak Dmd Rate A var Analog Input 32 Bit 308 Last Month Sum Reactive Demand Power Peak Dmd Rate RTP var Analog Input 32 Bit 309 Last ...

Page 39: ...and Current Peak Dmd Rate A Amps Analog Input 32 Bit 348 Last Reset Demand Current Peak Dmd Rate RTP Amps Analog Input 32 Bit 349 Last Reset Fwd Real Demand Power Peak Dmd Rate A Watts Analog Input 32 Bit 350 Last Reset Fwd Real Demand Power Peak Dmd Rate RTP Watts Analog Input 32 Bit 351 Last Reset Fwd Real Power Accum Rate A kWh Counter 32 Bit 352 Last Reset Fwd Real Power Accum Rate A Roll Over...

Page 40: ...t 386 Last Reset Net Reactive Demand Power Peak Dmd Rate RTP var Analog Input 32 Bit 387 Last Reset Net Reactive Power Accum Rate A kvarh Counter 32 Bit 388 Last Reset Net Reactive Power Accum Rate A Roll Over Counter kvarh Counter 16 Bit 389 Last Reset Net Reactive Power Accum Rate RTP kvarh Counter 32 Bit 390 Last Reset Net Reactive Power Accum Rate RTP Roll Over Counter kvarh Counter 16 Bit 391...

Page 41: ... Month Demand Q Fwd Rate A Peak Vars Analog Input 32 Bit 426 Current Month Demand Q Fwd Rate RTP Peak Vars Analog Input 32 Bit 427 Current Month Demand Q Net Rate A Peak Vars Analog Input 32 Bit 428 Current Month Demand Q Net Rate RTP Peak Vars Analog Input 32 Bit 429 Current Month Demand Q Sum Rate A Peak Vars Analog Input 32 Bit 430 Current Month Demand Q Sum Rate RTP Peak Vars Analog Input 32 B...

Page 42: ... Form C Relay 2 Status 0 Digital Output 16 Bit 458 Form C Relay 3 Status 0 Digital Output 16 Bit 459 Discrete Input 1 Count 0 Counter 16 Bit 460 Discrete Input 2 Count 0 Counter 16 Bit 461 Discrete Input 3 Count 0 Counter 16 Bit 462 Discrete Input 4 Count 0 Counter 16 Bit 463 Discrete Input 5 Count 0 Counter 16 Bit 464 Discrete Input 6 Count 0 Counter 16 Bit 465 Discrete Input 7 Count 0 Counter 16...

Page 43: ...41 Appendix A Points List PXM 4 6 8K DNP3 Ethernet Communications User Manual MN150005EN January 2017 www eaton com Notes ...

Page 44: ... such contract The sole source governing the rights and remedies of any purchaser of this equipment is the contract between the purchaser and Eaton NO WARRANTIES EXPRESSED OR IMPLIED INCLUDING WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE OR MERCHANTABILITY OR WARRANTIES ARISING FROM COURSE OF DEALING OR USAGE OF TRADE ARE MADE REGARDING THE INFORMATION RECOMMENDATIONS AND DESCRIPTIONS CONTAINED ...

Reviews: