没有合适的资源?快使用搜索试试~ 我知道了~
DNP3应用层协议规范
需积分: 31 46 下载量 86 浏览量
2017-10-13
11:48:59
上传
评论
收藏 1.53MB PDF 举报
温馨提示
试读
135页
此文档是DNP3协议规范第二卷,该文档详细描述了DNP3应用层协议规范。
资源推荐
资源详情
资源评论
DNP3 SPECIFICATION
Volume 2
APPLICATION LAYER
Version 2.01
3 February 2007
DNP3 Specification, Volume 2, Application Layer DNP3Spec-V2-ApplicationLayer-20070203
3 February 2007 Page 2
DISCLAIMER STATEMENT
DNP Users Group documents and publications are not consensus documents. Information contained in this and other
works has been obtained from sources believed to be reliable, and reviewed by credible members of the DNP Users
Group and/or the DNP Users Group Technical Committee. Neither the DNP Users Group nor any
authors/developers of DNP documentation guarantee, and each such person expressly disclaims responsibility for
ensuring, the accuracy or completeness of any information published herein, and neither the DNP Users Group nor
its authors/developers shall be responsible for any errors, omissions, or damages arising out of use of this document.
Likewise, while the author/developer and publisher believe that the information and guidance given in this work
serves as an enhancement to users, all parties must rely upon their own skill and judgment when making use of it.
Neither the author nor the publisher assumes any liability to anyone for any loss or damage caused by any error or
omission in the work, whether such error or omission is the result of negligence or any other cause. Any and all such
liability is disclaimed.
This statement was developed by the DNP Users Group Technical Committee and represents the considered
judgment of a group of software developers with expertise in the subject field. The DNP Users Group is a global
forum for users and implementers of the protocol and promotes implementers and developer information and
interaction exchange. This work is published with the understanding that the DNP Users Group and its
authors/developers are supplying information through this publication, not attempting to render engineering or other
professional services. If such services are required, the assistance of an appropriate professional should be sought.
The DNP Users Group is not responsible for any statements and/or opinions advanced in this publication.
NOTICE OF RIGHTS - DNP USERS GROUP
The contents of this manual are the property of the DNP Users Group. Revisions or additions to the definition and
functionality of the DNP Protocol cannot be made without express written agreement from the DNP Users Group or
its duly authorized party. In addition, no part of this document may be altered or revised or added to in any form or
by any means, except as permitted by written agreement with the DNP Users Group or a Party duly authorized by
the DNP Users Group.
The DNP Users Group has made every reasonable attempt to ensure the completeness and accuracy of this
document. However, the information contained in this manual is subject to change without notice, and does not
represent a commitment on the part of the DNP Users Group. Copies of the latest documentation are available
through the DNP Users web site at www.dnp.org.
TRADEMARK AND COPYRIGHT NOTICES
DNP is a trademark of the DNP Users Group. Any brand and product names mentioned in this document are
trademarks or registered trademarks of their respective companies.
Copyright © 1991 – 2007 DNP Users Group. All rights reserved.
DNP3 Specification, Volume 2, Application Layer DNP3Spec-V2-ApplicationLayer-20070203
3 February 2007 Page 3
REVISION HISTORY
Version Date Reason for Changes
0.01 23-Jul-1992 Initial release.
0.02 08-Nov-1992
Redesign of qualifier, clarification of function code usage, added support for
multi-fragments, changed terminology to match IEC definitions. Removed all
references to TIME-SYNCHRONIZATION in the Application Layer as this is
a Data Link function. Re-defined application control (AC) octet to handle
sequencing of fragments and added diagrams to illustrate this. Changed name
of document.
0.03 28-May-1997 Document reformatted.
2.00 4-Jan-2007
Completely rewritten with additional clarifications added. References to Harris
Corporation removed. Incorporated new and revised features and clarifications
from DNP3 Technical Bulletins.
2.01 3-Feb-2007 Changed DNP User Group to DNP Users Group and footer at bottom of page
DNP3 Specification, Volume 2, Application Layer DNP3Spec-V2-ApplicationLayer-20070203
3 February 2007 Page 4
Contents
1
APPLICATION LAYER PREFACE .......................................................................................9
1.1 Layering ..............................................................................................................................9
1.2 Introduction to Points and Point Types ...............................................................................9
1.3 Introduction to Indexes, Groups and Variations ...............................................................10
1.3.1 Indexes .......................................................................................................................10
1.3.2 Groups........................................................................................................................11
1.3.3 Variations ...................................................................................................................11
1.4 DNP3 Objects....................................................................................................................11
1.5 Static, Event and Class Data..............................................................................................12
1.5.1 Static...........................................................................................................................12
1.5.2 Events.........................................................................................................................12
1.5.3 Classes........................................................................................................................13
1.6 Outstation Event Buffering ...............................................................................................13
2 MESSAGE STRUCTURE .....................................................................................................15
2.1 Application Layer Fragments............................................................................................15
2.2 Application Layer Fragment Structure..............................................................................15
2.2.1 General Fragment Structure .......................................................................................15
2.2.2 Application Request Header.......................................................................................16
2.2.3 Application Response Header ....................................................................................16
2.2.4 Application Control Octet ..........................................................................................16
2.2.4.1 FIR Field ............................................................................................................17
2.2.4.2 FIN Field............................................................................................................17
2.2.4.3 CON Field..........................................................................................................17
2.2.4.4 UNS Field ..........................................................................................................18
2.2.4.5 SEQ Field...........................................................................................................18
2.2.5 Function Code Octet ..................................................................................................18
2.2.6 Internal Indications.....................................................................................................23
2.2.7 Object Headers ...........................................................................................................25
2.2.7.1 Object Group......................................................................................................25
2.2.7.2 Object Variation.................................................................................................26
2.2.7.3 Qualifier and Range Fields ................................................................................27
2.2.7.4 Qualifier Examples ............................................................................................31
3 FRAGMENT RULES ............................................................................................................35
4 DETAILED FUNCTION CODE PROCEDURES ................................................................38
4.1 Function Code 0 ................................................................................................................38
4.2 Function Code 1 (0x01).....................................................................................................38
4.2.1 Read Rules .................................................................................................................39
4.2.2 Examples....................................................................................................................40
4.3 Function Code 2 (0x02).....................................................................................................44
4.3.1 Rules...........................................................................................................................45
4.3.2 Examples....................................................................................................................45
4.4 Function Codes 3 (0x03) and 4 (0x04) .............................................................................47
4.4.1 Select-Operate Philosophy .........................................................................................47
4.4.2 Multiple Control Objects............................................................................................47
4.4.2.1 CROBs and AOBs .............................................................................................48
4.4.2.2 Pattern Control Blocks and Masks.....................................................................48
4.4.3 Control-related Rules .................................................................................................48
4.4.4 Examples....................................................................................................................50
DNP3 Specification, Volume 2, Application Layer DNP3Spec-V2-ApplicationLayer-20070203
3 February 2007 Page 5
4.5 Function Codes 5 (0x05) and 6 (0x06) .............................................................................53
4.5.1 Rules...........................................................................................................................54
4.6 Function Codes 7 (0x07) and 8 (0x08) .............................................................................54
4.6.1 Objects in Freeze Requests ........................................................................................55
4.6.2 Examples....................................................................................................................55
4.7 Function Codes 9 (0x09) and 10 (0x0A)...........................................................................55
4.8 Function Codes 11 (0x0B) and 12 (0x0C) ........................................................................56
4.8.1 Examples....................................................................................................................57
4.9 Function Codes 13 (0x0D) and 14 (0x0E) ........................................................................58
4.9.1 Examples....................................................................................................................58
4.10 Function Code 15 (0x0F) .............................................................................................59
4.11 Function Codes 16 (0x10) and 17 (0x11) and 18 (0x12).............................................59
4.11.1 Examples..................................................................................................................59
4.12 Function Code 19 (0x13) .............................................................................................60
4.13 Function Code 20 (0x14) and 21 (0x15)......................................................................61
4.13.1 Examples..................................................................................................................61
4.14 Function Code 22 (0x16) .............................................................................................62
4.14.1 Examples..................................................................................................................64
4.15 Function Code 23 (0x17) .............................................................................................64
4.15.1 Rules.........................................................................................................................65
4.15.2 Example....................................................................................................................65
4.16 Function Code 24 (0x18) .............................................................................................66
4.16.1 Rules.........................................................................................................................66
4.16.2 Example....................................................................................................................66
4.17 Function Codes 25 (0x19), 26 (0x1A), 27 (0x1B) and 30 (0x1E) ...............................67
4.17.1 Preliminary Notes.....................................................................................................67
4.17.1.1 File Handles .....................................................................................................67
4.17.1.2 File Command Status Objects..........................................................................68
4.17.1.3 File Transport Status Objects...........................................................................68
4.17.1.4 Additional Information ....................................................................................68
4.17.2 Opening a File..........................................................................................................68
4.17.2.1 Request Messages ............................................................................................69
4.17.2.2 Response Messages..........................................................................................69
4.17.2.3 Examples..........................................................................................................70
4.17.3 Closing a File ...........................................................................................................72
4.17.3.1 Example ...........................................................................................................72
4.17.4 Deleting a File ..........................................................................................................73
4.17.4.1 Example ...........................................................................................................73
4.17.5 Aborting a File Transfer...........................................................................................74
4.17.5.1 Example ...........................................................................................................75
4.18 Function Code 28 (0x1C).............................................................................................75
4.18.1 Example....................................................................................................................76
4.19 Function Code 29 (0x1D) ............................................................................................77
4.19.1 Example....................................................................................................................78
4.20 Function Code 31 (0x1F) .............................................................................................78
4.21 Function Code 129 (0x81) ...........................................................................................78
4.22 Function Code 130 (0x82) ...........................................................................................79
5 DETAILED IIN BIT DESCRIPTIONS .................................................................................80
5.1 IIN1.0 - All-Stations Message Received [ALL_STATIONS] ..........................................80
5.2 IIN1.1 – Additional Class 1 Event Data Is Available [CLASS_1_EVENTS] ..................81
5.3 IIN1.2 – Additional Class 2 Event Data Is Available [CLASS_2_EVENTS] ..................81
5.4 IIN1.3 – Additional Class 3 Event Data Is Available [CLASS_3_EVENTS] ..................81
剩余134页未读,继续阅读
资源评论
wangdawei_1980
- 粉丝: 1
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功