Sunteți pe pagina 1din 44

DNP3 Master Protocol

Documentation for Cybectec part number P-SMPR-0201


The information in this document applies to software version 3.0 or later and is subject to change without
notice.

Quebec City

730 Commerciale Street


Suite 200
Saint-Jean-Chrysostome, Quebec
Canada G6Z 2C5
Phone: 418-834-0009
Fax:
514-227-5256
Montreal

1290 St. Denis Street


Suite 400
Montreal, Quebec
Canada H2X 3J7
Phone: 514-845-6195
Fax:
514-227-5256

Revision History
Version

Date

Author

Comments

2007-02-27

Johanne Lavalle

Cooper integration, no major changes for version 4.


Tx during SBO default changed to no checkmark.

2007-01-15

Jonathan Fortier

Added support for Qualifier Code 0x27

2006-07-11

Frdric Vallires

Test mode function.

2006-01-20

Rmi Dutil

No major changes with respect to version 2.0.

Contents
Tables ............................................................................................................................................. iii
1.

Introduction ............................................................................................................................. 1

2.

Features.................................................................................................................................... 2
2.1 Communication ..................................................................................................................... 2
2.2 Interoperability...................................................................................................................... 2
2.2.1
DNP3 Device Profile................................................................................................. 3
2.2.2
Implementation Table.............................................................................................. 6
2.3 Device Data Retrieval........................................................................................................... 10
2.4 Device Control..................................................................................................................... 10
2.4.1
Analog output control operations ............................................................................ 10
2.4.2
Binary output control operations ............................................................................. 10
2.4.2.1
OPEN/CLOSE operations using two PULSE points ..................................... 11

3.

Configuration Settings ........................................................................................................... 12


3.1 General Settings .................................................................................................................. 12
3.2 Redundancy Settings ........................................................................................................... 15
3.3 Analog Input Settings .......................................................................................................... 18
3.4 Binary Input Settings ........................................................................................................... 18
3.5 Counter Input Settings......................................................................................................... 18
3.6 Frozen Counter Input Settings .............................................................................................. 19
3.7 Analog Output Settings ........................................................................................................ 19
3.8 Binary Output Settings ......................................................................................................... 19
3.9 Comma-Separated Values File Format ................................................................................... 21
3.9.1
General Settings Line Definition .............................................................................. 21
3.9.2
Redundancy Settings Line Definition ....................................................................... 22
3.9.3
Switched Connection Settings Line Definition ........................................................... 23
3.9.4
Switched Connection Schedule Settings Line Definition ............................................. 24
3.9.5
Analog Input Line Definition ................................................................................... 25
3.9.6
Binary Input Line Definition .................................................................................... 25
3.9.7
Counter Input Line Definition.................................................................................. 26
3.9.8
Frozen Counter Input Line Definition ....................................................................... 27
3.9.9
Analog Output Line Definition ................................................................................. 29
3.9.10
Binary Output Line Definition.................................................................................. 30

4.

Implementation Details ......................................................................................................... 31


4.1 Startup Sequence ................................................................................................................ 31
4.2 Scan Process....................................................................................................................... 31
4.2.1
Automated operations based on internal indications ................................................. 32
4.2.2
Automated operations based on events ................................................................... 33
4.2.3
Scheduled operations............................................................................................. 34
4.3 Listen Mode ........................................................................................................................ 34

5.

Troubleshooting ..................................................................................................................... 36

DNP3 MASTER PROTOCOL

Tables
Table 2-1

Communication Features .................................................................................. 2

Table 2-2

Device Profile .................................................................................................... 5

Table 2-3

Implementation Table ...................................................................................... 9

Table 2-4

Variation of object 41 used for analog output control operations ................. 10

Table 2-5

Binary output control functions based on configuration ................................ 11

Table 3-1

General Settings ............................................................................................. 14

Table 3-2

Redundancy Settings ...................................................................................... 17

Table 3-3

Analog Input Settings ..................................................................................... 18

Table 3-4

Binary Input Settings...................................................................................... 18

Table 3-5

Counter Input Settings ................................................................................... 18

Table 3-6

Frozen Counter Input Settings ....................................................................... 19

Table 3-7

Analog Output Settings................................................................................... 19

Table 3-8

Binary Output Settings ................................................................................... 20

Table 3-9

General Settings Line Definition ..................................................................... 22

Table 3-10

Redundancy Settings Line Definition.............................................................. 23

Table 3-11

Switched Connection Settings Line Definition................................................ 24

Table 3-12

Switched Connection Schedule Settings Line Definition ................................ 24

Table 3-13

Analog Input Line Definition........................................................................... 25

Table 3-14

Binary Input Line Definition ........................................................................... 26

Table 3-15

Counter Input Line Definition ......................................................................... 27

Table 3-16

Frozen Counter Input Line Definition ............................................................. 28

Table 3-17

Analog Output Line Definition ........................................................................ 29

Table 3-18

Binary Output Line Definition ......................................................................... 30

Table 4-1

Automated operations based on internal indications..................................... 33

Table 5-1

Troubleshooting .............................................................................................. 36

DNP3 MASTER PROTOCOL

III

1.

Introduction
This manual provides the information required to install and set up a DNP3 master protocol
component on a Cybectec SMP gateway.
The DNP3 master protocol component is used to retrieve data from any device compatible with
the DNP3 protocol definition. It can also be used to control such a device.
You need to be familiar with the SMP gateway environment, master protocol concepts, and the
DNP3 protocol specification before proceeding with this document. You can obtain this
information by reading the following documents:

Master Protocol Common Concepts, GUI-00316-00018-T, Cybectec.

SMP Gateway User Manual, GUI-00316-00001-T, Cybectec.

DNP V3.00 Data Link Layer (P009-0PD.DL), Harris Corporation.

DNP V3.00 Transport Functions (P009-0PD.TF), Harris Corporation.

DNP V3.00 Application Layer (P009-0PD.APP), Harris Corporation.

DNP V3.00 Data Object Library (P009-0BL), Harris Corporation.

DNP V3.00 Subset Definitions (P009-0IG.SUB), DNP Users Group.

Transporting DNP V3.00 over Local and Wide Area Networks, DNP Users Group, 1998.

DNP3 MASTER PROTOCOL

2.

Features
This chapter outlines the features provided by the DNP3 master protocol component.

2.1

Communication
The following communication features are available when connecting devices to the SMP
hardware:
Feature

Comment

Serial Ports

The DNP3 protocol component supports RS-232, RS-422 and RS485 interfaces at bit rates up to 115200 bps.

Multidrop

Multiple instances of the DNP3 protocol component can share a


single serial port, as long as different addresses are used to identify
the devices and as long as the devices support such a feature.

Passthru
Connections

The DNP3 protocol component allows for passthru connections.


Note that it is necessary to suspend link activity to establish such a
connection.

Listen Mode

Requires a single serial port. Since DNP3 application layer responses


are self-explanatory, there is no need to know the associated
request.

TCP/IP

The DNP3 protocol component supports TCP/IP communication.


Although the DNP Users Group recommends using TCP port 20000
for DNP devices, any other port number can be used if the
associated slave device supports the port number.

Modem

The DNP3 protocol component supports modem connections, in


either permanent or switched mode.

Link Redundancy

This protocol component can be configured to use 2 different


communication links to communicate with the same device.

Hot Standby

This protocol component can be configured to synchronize all its


data and scanning states between 2 SMP gateways in a redundant
setup.
Table 2-1

2.2

Communication Features

Interoperability
This section, in conjunction with chapter 3, the DNP 3.0 Basic 4 Document Set, and the DNP
Subset Definitions Document, provides complete information on how to communicate with the
DNP3 master component via the DNP3 protocol.
The implementation of the DNP3 master is fully compliant with DNP V3.00 Subset Definition Level
2, contains many Subset Level 3 features, and contains some functionality even beyond Subset
Level 3.

DNP3 MASTER PROTOCOL

2.2.1

DNP3 Device Profile


The following table provides a Device Profile Document in the standard format defined in the
DNP V3.00 Subset Definitions Document. While it is referred to in the DNP V3.00 Subset
Definitions as a Document, it is actually one of three components that make up an
interoperability guide. The other two components are:

the Implementation Table, provided in section 2.2.2;

a description of the configuration settings, which you can find in chapter 3.

Together, these three components make up a complete interoperability and configuration guide
for the DNP3 master protocol component.

DNP V3.00
DEVICE PROFILE DOCUMENT
(See also the Implementation Table, in section 2.2.2)
Vendor Name: Cybectec Inc.
Device Name:

DNP3 Master for Cybectecs SMP Gateway

Highest DNP Level Supported:


For Requests:

Level 2

For Responses: Level 2

Device Function:
Master
Slave

Notable objects, functions, and/or qualifiers supported in addition to the Highest DNP Levels Supported (the
complete list is described in the attached table):
For static (non-change-event) object requests, request qualifier codes 00 and 01 (start-stop) are
supported, in addition to request qualifier code 06 (no range or all points).
16-bit and 32-bit Analog Change Events with Time may be requested.
The read function code for Object 50 (Time and Date), variation 1, is supported.
Maximum Data Link Frame Size (bytes):

Maximum Application Fragment Size (bytes):

Transmitted:

292

Transmitted:

2048

Received:

292

Received:

2048

Maximum Data Link Retries:


None
Fixed at _______________________
Configurable from 0 to 255, default value set
to 2.

DNP3 MASTER PROTOCOL

Maximum Application Layer Retries:


None
Configurable from 0 to 255, default
value set to 2.

Requires Data Link Layer Confirmation:


Never
Always
Sometimes
Configurable between one of the following:
-

Never (default);

Always;

Sometimes (for multi-frame fragments).

Requires Application Layer Confirmation:


Never
Always
When reporting Event Data
When sending multi-fragment responses
Sometimes
Configurable
Timeouts while waiting for:

Data Link Confirm

None

Fixed at ____

Variable

Configurable from 0 to 31
days, in ms (default value
set to 3000 ms)

Complete Appl. Fragment

None

Fixed at ____

Variable

Configurable

Application Confirm

None

Fixed at ____

Variable

Configurable

Complete Appl. Response

None

Fixed at ____

Variable

Configurable, from 0 to 31
days, in ms (default value
set to 3000 ms)

DNP3 MASTER PROTOCOL

Executes Control Operations*:


WRITE Binary Outputs

Never

Always

Sometimes

Configurable

SELECT/OPERATE

Never

Always

Sometimes

Configurable (see section 3.1)

DIRECT OPERATE

Never

Always

Sometimes

Configurable (see section 3.1)

DIRECT OPERATE - NO ACK

Never

Always

Sometimes

Configurable

Count > 1

Never

Always

Sometimes

Configurable

Pulse On

Never

Always

Sometimes

Configurable

Pulse Off

Never

Always

Sometimes

Configurable

Latch On

Never

Always

Sometimes

Configurable

Latch Off

Never

Always

Sometimes

Configurable

Queue

Never

Always

Sometimes

Configurable

Clear Queue

Never

Always

Sometimes

Configurable

*The execution of control operations may be enabled/disabled.


Expects Binary Input Change Events:
Either time-tagged or non-time-tagged for a single event
Both time-tagged and non time-tagged for a single event
Configurable
Table 2-2

DNP3 MASTER PROTOCOL

Device Profile

2.2.2

Implementation Table
The following table identifies the variations, function codes and qualifiers supported by the DNP3
master component in both request and response messages.
Text shaded as Subset Level 3 indicates Subset Level 3 functionality (beyond Subset Level 2),
and text shaded as beyond Subset Level 3 indicates functionality beyond Subset Level 3.

OBJECT
Object
Number
1

Variation
Number
0

Binary Input (variation 0 is used to


request default variation).
Binary Input

Binary Input with Status

Binary Input Change (variation 0 is


used to request default variation).
Binary Input Change without Time.

Binary Input Change with Time.

Binary Input Change with Relative


Time.
Binary Output Status (variation 0 is
used to request default variation).
Binary Output Status

10

10

12

Control Relay Output Block

20

Binary Counter (variation 0 is used to


request default variation).

20

32-Bit Binary Counter

20

20

20

Description

16-Bit Binary Counter

32-Bit Delta Counter

16-Bit Delta Counter

REQUEST
RESPONSE
(Component may send)
(Component will parse)
Function
Qualifier
Function Codes
Qualifier Codes
Codes (dec)
Codes (hex)
(dec)
(hex)
1
(read) 00, 01 (start-stop)
06 (no range, or all)
1
(read) 00, 01 (start-stop) 129 (response)
00, 01 (start-stop)
06 (no range, or all)
17, 28
(index)
27
(index)
1
(read) 00, 01 (start-stop) 129 (response)
00, 01 (start-stop)
06 (no range, or all)
17, 28
(index)
27
(index)
1
(read) 06 (no range, or all)
07, 08 (limited qty)
17, 28
1
(read) 06 (no range, or all) 129 (response)
(index)
07, 08 (limited qty) 130 (unsol. resp)
27
(index)
17, 28
1
(read) 06 (no range, or all) 129 (response)
(index)
07, 08 (limited qty) 130 (unsol. resp)
27
(index)
1

(read)

(read)

(read)

3
(select)
4
(operate)
5
(direct op)
6 (dir. op, noack)
1
(read)
7
(freeze)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)
1
(read)
7
(freeze)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)
1
(read)
7
(freeze)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)
1
(read)
7
(freeze)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)
1
(read)
7
(freeze)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)

06 (no range, or all) 129


07, 08 (limited qty) 130
00, 01 (start-stop)
06 (no range, or all)
00, 01 (start-stop) 129
06 (no range, or all)
17, 28

(response)
(unsol. resp)

(response)

129

(response)

00, 01 (start-stop) 129


06 (no range, or all)

(response)

(index)

17, 28
27

(index)
(index)

00, 01
17, 28
27

(start-stop)

00, 01
17, 28
27

(start-stop)

00, 01
17, 28
27

(start-stop)

00, 01
17, 28
27

(start-stop)

00, 01
17, 28
27

(start-stop)

(index)

(index)
echo of request

00, 01 (start-stop)
06 (no range, or all)

00, 01 (start-stop) 129


06 (no range, or all)

00, 01 (start-stop) 129


06 (no range, or all)

00, 01 (start-stop) 129


06 (no range, or all)

(response)

(response)

(response)

(index)
(index)

(index)
(index)

(index)
(index)

(index)
(index)

DNP3 MASTER PROTOCOL

OBJECT
Object
Number
20

Variation
Number
5

32-Bit Binary Counter without Flag.

20

16-Bit Binary Counter without Flag.

20

20

21

21

21

21

21

10

22

22

22

30

30

Description

32-Bit Delta Counter without Flag.

16-Bit Delta Counter without Flag.

Frozen Counter (variation 0 is used to


request default variation).
32-Bit Frozen Counter

16-Bit Frozen Counter

32-Bit Frozen Counter without Flag.

16-Bit Frozen Counter without Flag.

Counter Change Event (variation 0 is


used to request default variation).
32-Bit Counter Change Event without
time.
16-Bit Counter Change Event without
time.
Analog Input (variation 0 is used to
request default variation).
32-Bit Analog Input.

REQUEST
(Component may send)
Function
Qualifier
Codes (dec)
Codes (hex)
1
(read) 00, 01 (start-stop)
7
(freeze) 06 (no range, or all)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)
1
(read) 00, 01 (start-stop)
7
(freeze) 06 (no range, or all)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)
1
(read) 00, 01 (start-stop)
7
(freeze) 06 (no range, or all)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)
1
(read) 00, 01 (start-stop)
7
(freeze) 06 (no range, or all)
8 (freeze noack)
9 (freeze clear)
10(frz. cl. noack)
1
(read) 00, 01 (start-stop)
06 (no range, or all)
1
(read) 00, 01 (start-stop)
06 (no range, or all)
1

(read)

(read)

(read)

(read)

(read)

(read)

(read)

(read)

RESPONSE
(Component will parse)
Function Codes
Qualifier Codes
(dec)
(hex)
129 (response)
00, 01 (start-stop)
17, 28
(index)
27
(index)

129

129

129

129

00, 01 (start-stop) 129


06 (no range, or all)
00, 01 (start-stop) 129
06 (no range, or all)
00, 01 (start-stop) 129
06 (no range, or all)
06 (no range, or all)
07, 08 (limited qty)
06 (no range, or all)
07, 08 (limited qty)
06 (no range, or all)
07, 08 (limited qty)
00, 01 (start-stop)
06 (no range, or all)
00, 01 (start-stop)
06 (no range, or all)

129
130
129
130

129

(response)

(response)

(response)

(response)

(response)

(response)

(response)

(response)
(unsol. resp)
(response)
(unsol. resp)

(response)

30

16-Bit Analog Input.

(read)

00, 01 (start-stop) 129


06 (no range, or all)

(response)

30

32-Bit Analog Input without Flag.

(read)

00, 01 (start-stop) 129


06 (no range, or all)

(response)

30

16-Bit Analog Input without Flag.

(read)

00, 01 (start-stop) 129


06 (no range, or all)

(response)

30

Short Floating Point Analog Input.

(read)

00, 01 (start-stop)
06 (no range, or all)

32

(read)

32

Analog Change Event (variation 0 is


used to request default variation).
32-Bit Analog Change Event without
Time.
16-Bit Analog Change Event without
Time.

(read)

06 (no range, or all)


07, 08 (limited qty)
06 (no range, or all)
07, 08 (limited qty)
06 (no range, or all)
07, 08 (limited qty)

32

DNP3 MASTER PROTOCOL

(read)

129

129
130
129
130

(response)

(response)
(unsol. resp)
(response)
(unsol. resp)

00, 01
17, 28
27

(start-stop)

00, 01
17, 28
27

(start-stop)

00, 01
17, 28
27

(start-stop)

00, 01
17, 28
27
00, 01
17, 28
27
00, 01
17, 28
27
00, 01
17, 28
27

(start-stop)

17, 28
27
17, 28
27

00, 01
17, 28
27

(index)
(index)

(index)
(index)

(index)
(index)

(index)
(index)
(start-stop)
(index)
(index)
(start-stop)
(index)
(index)
(start-stop)
(index)
(index)

(index)
(index)
(index)
(index)

(start-stop)
(index)
(index)

00, 01 (start-stop)
17, 28
(index)
27
(index)
00, 01 (start-stop)
17, 28
(index)
27
(index)
00, 01 (start-stop)
17, 28
(index)
27
(index)
00, 01 (start-stop)
17, 28
(index)
27
(index)

17, 28
27
17, 28
27

(index)
(index)
(index)
(index)

OBJECT

REQUEST
(Component may send)
Function
Qualifier
Codes (dec)
Codes (hex)
1
(read) 06 (no range, or all)
07, 08 (limited qty)
1
(read) 06 (no range, or all)
07, 08 (limited qty)
1
(read) 06 (no range, or all)
07, 08 (limited qty)
1
(read) 06 (no range, or all)
07, 08 (limited qty)
1
(read) 00, 01 (start-stop)
06 (no range, or all)
1
(read) 00, 01 (start-stop)
06 (no range, or all)

RESPONSE
(Component will parse)
Function Codes
Qualifier Codes
(dec)
(hex)
129 (response)
17, 28
(index)
130 (unsol. resp)
27
(index)
129 (response)
17, 28
(index)
130 (unsol. resp)
27
(index)
129 (response)
17, 28
(index)
130 (unsol. resp)
27
(index)
129 (response)
17, 28
(index)
130 (unsol. resp)
27
(index)

Object
Number
32

Variation
Number
3

32-Bit Analog Change Event with Time.

32

16-Bit Analog Change Event with Time.

32

32

40

40

Short Floating Point Analog Change


Event.
Short Floating Point Analog Change
Event with Time.
Analog Output Status (variation 0 is
used to request default variation).
32-Bit Analog Output Status.

40

16-Bit Analog Output Status.

(read)

00, 01 (start-stop) 129


06 (no range, or all)

40

Short Floating Point Analog Output


Status.

(read)

00, 01(start-stop)
06 (no range, or all)

129

(response)

41

32-Bit Analog Output Block.

17, 28

129

(response)

41

16-Bit Analog Output Block.

41

Short Floating Point Analog Output


Block.

50

Time and Date

3
(select)
4
(operate)
5
(direct op)
6 (dir. op, noack)
3
(select)
4
(operate)
5
(direct op)
6 (dir. op, noack)
3
(select)
4
(operate)
5
(direct op)
6 (dir. op, noack)
1
(read)

00, 01 (start-stop) 129


06 (no range, or all)

(response)

50

Time and Date

1
2

00, 01 (start-stop) 129


06 (no range, or all)
07 (limited qty=1)
08
(limited qty)
17, 28
(index)
129

(response)

(response)

07

Description

17, 28

(index)

(index)

129

129

(response)

(response)

00, 01 (start-stop)
17, 28
(index)
27
(index)
00, 01 (start-stop)
17, 28
(index)
27
(index)
00, 01 (start-stop)
17, 28
(index)
27
(index)
echo of request

echo of request

(response)

echo of request

(response)

00, 01 (start-stop)
07 (limited qty=1)
17, 28
(index)
27
(index)
00, 01 (start-stop)
07 (limited qty=1)
17, 28
(index )
27
(index)

51

Time and Date CTO.

51

Unsynchronized Time and Date CTO.

129

(response)

07

52

Time Delay Coarse

129

(response)

07

52

Time Delay Fine

129

(response)

07

60

Class 0, 1, 2, and 3 Data

129

(response)

1b

60
60

60

60

70
80

1
2

1
1

Class 0 Data
Class 1 Data

Class 2 Data

Class 3 Data

File Identifier
Internal Indications
No Object (function code only).
No Object (function code only).

(read)
(write)

17, 28

(index)

129

1
20
21
1
1
20
21
1
20
21
1
20
21
2
2

(read)

(limited qty)
(qty = 1)
(limited qty)
(qty = 1)
(limited qty)
(qty = 1)
(limited qty)
(qty = 1)

06 (no range, or all)

(enbl. unsol.)
(dsbl. unsol.)
(read)
(read)
(enbl. unsol.)

06 (no range, or all)


06 (no range, or all)
07, 08 (limited qty)

(dsbl. unsol.)
(read)
(enbl. unsol.)

06 (no range, or all)


07, 08 (limited qty)

(dsbl. unsol.)
(read)
(enbl. unsol.)

06 (no range, or all)


07, 08 (limited qty)

(dsbl. unsol.)
(write)
(write)

1b
00

(free-format)

(free-format)

(start-stop)
(index must =7)

13 (cold restart)
14(warm restart)

DNP3 MASTER PROTOCOL

OBJECT
Object
Number

Variation
Description
Number
No Object (function code only).

REQUEST
(Component may send)
Function
Qualifier
Codes (dec)
Codes (hex)
23 (delay meas.)
Table 2-3

DNP3 MASTER PROTOCOL

RESPONSE
(Component will parse)
Function Codes
Qualifier Codes
(dec)
(hex)

Implementation Table

2.3

Device Data Retrieval


Application layer class 0/1/2/3 data read requests are used to retrieve data objects from the
device. The data objects obtained are then transformed to standard analog or binary data types,
as specified by the configuration settings (see chapter 3 for further details on configuration),
published on the system, and made available to slave components.
All static data and without-time event data are time-stamped by the system on reception. For
event data reported with time, the object time is preserved.

2.4

Device Control
Analog and binary output points may be configured to allow device control. The DNP Select (FC
3), Operate (FC 4) and Direct Operate (FC 5) application layer requests are used to send control
requests to devices. Usage of Select/Operate and/or Direct Operate control requests is on a
point-by-point basis, and is dictated by the Select Required setting (see sections 3.7 and 3.8).
When an Operate or a Direct Operate request is successfully confirmed by the remote device, the
DNP3 master component sends an operate feedback poll request, to obtain the state of all points
that may potentially have changed during the output control operation. The operate feedback
poll request is actually a Read request for data class 1/2/3.

2.4.1

Analog output control operations


For analog output control operations, the variation used for object 41 Analog Output Block,
depends on the Output Control setting of each analog output point.
Output Control

Object 41 Variation

32-Bit Value

1 32-Bit Analog Output Block

16-Bit Value

2 16-Bit Analog Output Block

Float Value

3 Short Floating-Point Analog Output Block


Table 2-4

2.4.2

Variation of object 41 used for analog output control operations

Binary output control operations


Binary output control operations use object 12 variation 1 Control Relay Output Block. The
Control Code field is set in accordance with DNP Technical Bulletin 9701-002 Control Relay
Output Block Minimum Implementation, and the function performed depends on the Control
Type setting of each binary output point.
Control Type

Function

Not supported

Any control operation requested on this point will be refused.

Latch ON/OFF

The output point is controlled using DNP Latch ON/OFF functions.


An OPEN request ends in a Latch OFF operation, and a CLOSE
request ends in a Latch ON operation.
PULSE requests are not supported.

Trip/Close

The output point is controlled using DNP Trip/Close functions.


PULSE requests are not supported.

Pulse

10

The output point is controlled using DNP Pulse functions.

DNP3 MASTER PROTOCOL

Control Type

Function
OPEN/CLOSE requests are not supported.

Pulse, Open

The output point is controlled using DNP Pulse functions.


All system requests (OPEN/CLOSE*, PULSE) are allowed.
*See section 2.4.2.1 for a description of the management of
OPEN/CLOSE requests on open/close pairs.

Pulse, Close

The output point is controlled using DNP Pulse functions.


All system requests (OPEN/CLOSE*, PULSE) are allowed.
*See section 2.4.2.1.
Table 2-5

2.4.2.1

Binary output control functions based on configuration

OPEN/CLOSE operations using two PULSE points


The DNP3 master component provides a mechanism by which slave components can operate two
PULSE points using system OPEN/CLOSE requests. Two points are associated to form an
open/close pair, one member handling OPEN requests and the other, CLOSE requests.
Open/close pair configuration is described in section 3.8.
Thus, OPEN/CLOSE requests on any of these two points will result in a PULSE control
function being sent to the remote device on the point that handles the requested
operation. Note that even in this case, a PULSE execute type of operation on any point of an
open/close pair is translated into the PULSE ON control function on the same point.

DNP3 MASTER PROTOCOL

11

3.

Configuration Settings
This chapter enumerates the configuration settings to be specified for each DNP3 master protocol
instance. Cybectecs SMP Config software is generally used to define these settings.
Only the settings specific to the DNP3 protocol are described here. The settings common to all
master protocol components are described in the Cybectec document entitled Master Protocol
Common Concepts.

3.1

General Settings
Every instance of a master protocol component contains general settings, which set the general
behavior of the component. The following table shows the general settings that are specific to
the DNP3 master protocol.
Setting

Description

Link Address

The DNP data link address of this DNP3 master protocol instance.
This address must be unique for each instance that uses a particular
multidrop link.

Slave Link Address

Class 0123 Poll


Cycle

Range:

0 to 65,534

Default value:

The DNP data link address of the remote device with which this
DNP3 master instance is communicating.
Range:

0 to 65,535

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 0, Class 1, Class 2 and Class 3 data (static
I/O point value and change event).
If you set this value to 0, the request will not be sent cyclically.

Class 0 Poll Cycle

Range:

0 to 2,147,483,647 ms

Default value:

3,600,000 ms (1 hr)

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 0 data (static I/O point value).
If you set this value to 0, the request will not be sent cyclically.

Class 1 Poll Cycle

Range:

0 to 2,147,483,647 ms

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 1 data (report by exception/change event).
If you set this value to 0, the request will not be sent cyclically.

Class 2 Poll Cycle

Range:

0 to 2,147,483,647 ms

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 2 data (report by exception/change event).
If you set this value to 0, the request will not be sent cyclically.

12

DNP3 MASTER PROTOCOL

Setting

Class 3 Poll Cycle

Description
Range:

0 to 2,147,483,647 ms

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 3 data (report by exception/change event).
If you set this value to 0, the request will not be sent cyclically.

Class 123 Poll Cycle

Range:

0 to 2,147,483,647 ms

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 1, Class 2 and Class 3 data (report by
exception/change event).
If you set this value to 0, the request will not be sent cyclically.

Clock Sync

Clock Sync Cycle

Range:

0 to 2,147,483,647 ms

Default value:

5,000 ms

A checkmark indicates that the DNP3 master can synchronize the


slave station clock. If you put a checkmark, clock synchronization
operations may be initiated in two different ways:

Automatically, when IIN1-4 (clock synchronization required) is


set in any response received from the slave device.

Cyclically, based on the value of the Clock Sync Cycle setting (if
not 0).

Range:

checkmark / no checkmark

Default value:

checkmark

Time interval, in milliseconds, after which the DNP3 master will send
a clock synchronization request to the slave device, if allowed (see
Clock Sync).
If you set this value to 0, the request will not be sent cyclically.

Unsolicited Report

Link Sync

DNP3 MASTER PROTOCOL

Range:

0 to 2,147,483,647 ms

Default value:

30 secs

If you put a checkmark, the DNP3 master will send an enable


unsolicited response request (for class 1/2/3) on startup of the
remote slave.
Range:

checkmark / no checkmark

Default value:

no checkmark

If you put a checkmark, the DNP3 master begins the link-up


sequence with a Read IIN request. This request, which has no
impact on the master or the device, allows the DNP3 master to
synchronize the link with the device. This feature is relevant when
using serial links, and when the SMP gateway is in a redundant
configuration.
Range:

checkmark / no checkmark

Default value:

no checkmark
13

Setting

Description

Link Confirmation
Mode

Data link layer confirmation mode used by the DNP3 master.


Range:

Never
No confirmation for any frame.
Sometimes
Confirmation requested for multi-frame
fragments only.
Always
Confirmation requested for all frames.

Default value:
Link Confirmation
Timeout

Never

The number of milliseconds to wait for a remote device data link


layer confirmation of the last frame sent, before attempting any
retries (only if frame sent with confirm requested). Measured after
the last byte of the data frame sent.
A 0 value causes an immediate timeout.

Link Max Retries

Applic Max Retries

Applic Response
Timeout

Range:

0 to 2,147,483,647 ms

Default value:

3,000 ms

The number of attempts to re-transmit a data link frame that was


not confirmed by the remote device (only if frame sent with confirm
requested).
Range:

0 to 255

Default value:

The number of attempts to re-transmit an application layer request,


when no response is received from the remote device during the
application response timeout interval (see Applic Response
Timeout).
Range:

0 to 255

Default value:

The number of milliseconds to wait for a remote device to respond


to an application layer request. Measured after the last byte of the
data frame sent.
Range:
Default value:

Tx During SBO

A checkmark specifies that data can be transmitted to the remote


device between the selection and the operation of a control output
point.
Range:

checkmark / no checkmark

Default value:

no checkmark

Table 3-1

14

100 to 300,000 ms
3,000 ms

General Settings

DNP3 MASTER PROTOCOL

3.2

Redundancy Settings
Each instance of this master protocol component contains redundancy settings, which set the
general behavior of the redundancy component. The following table shows the redundancy
settings that are specific to the DNP3 protocol component.
Setting

Description

Link 1 Test Interval

The delay, in milliseconds, between two complete link test requests


on link 1.

Link 2 Test Interval

Link Address

Slave Link Address

Class 0123 Poll


Cycle

Range:

0 to 300,000 ms

Default value:

3,000 ms

The delay, in milliseconds, between two complete link test requests


on link 2.
Range:

0 to 300,000 ms

Default value:

3,000 ms

The DNP data link address of this DNP3 master protocol instance.
This address must be unique for each instance that uses a particular
multidrop link.
Range:

0 to 65,534

Default value:

The DNP data link address of the remote device with which this
DNP3 master instance is communicating.
Range:

0 to 65,535

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 0, Class 1, Class 2 and Class 3 data (static
I/O point value and change event).
If you set this value to 0, the request will not be sent cyclically.

Class 0 Poll Cycle

Range:

0 to 2,147,483,647 ms

Default value:

3,600,000 ms (1 hr)

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 0 data (static I/O point value).
If you set this value to 0, the request will not be sent cyclically.

Class 1 Poll Cycle

Range:

0 to 2,147,483,647 ms

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 1 data (report by exception/change event).
If you set this value to 0, the request will not be sent cyclically.

Class 2 Poll Cycle

DNP3 MASTER PROTOCOL

Range:

0 to 2,147,483,647 ms

Default value:

Time interval, in milliseconds, after which the DNP3 master will send

15

Setting

Description
a read request for Class 2 data (report by exception/change event).
If you set this value to 0, the request will not be sent cyclically.

Class 3 Poll Cycle

Range:

0 to 2,147,483,647 ms

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 3 data (report by exception/change event).
If you set this value to 0, the request will not be sent cyclically.

Class 123 Poll Cycle

Range:

0 to 2,147,483,647 ms

Default value:

Time interval, in milliseconds, after which the DNP3 master will send
a read request for Class 1, Class 2 and Class 3 data (report by
exception/change event).
If you set this value to 0, the request will not be sent cyclically.

Clock Sync

Clock Sync Cycle

Range:

0 to 2,147,483,647 ms

Default value:

5,000 ms

A checkmark indicates that the DNP3 master can synchronize the


slave station clock. If you put a checkmark, clock synchronization
operations may be initiated in two different ways:

Automatically, when IIN1-4 (clock synchronization required) is


set in any response received from the slave device.

Cyclically, based on the value of the Clock Sync Cycle setting (if
not 0).

Range:

checkmark / no checkmark

Default value:

checkmark

Time interval, in milliseconds, after which the DNP3 master will send
a clock synchronization request to the slave device, if allowed (see
Clock Sync).
If you set this value to 0, the request will not be sent cyclically.

Unsolicited Report

Link Sync

16

Range:

0 to 2,147,483,647 ms

Default value:

30 secs

If you put a checkmark, the DNP3 master will send an enable


unsolicited response request (for class 1/2/3) on startup of the
remote slave.
Range:

checkmark / no checkmark

Default value:

no checkmark

If you put a checkmark, the DNP3 master begins the link-up


sequence with a Read IIN request. This request, which has no
impact on the master or the device, allows the DNP3 master to
synchronize the link with the device. This feature is relevant when
using serial links, and when the SMP gateway is in a redundant
configuration.
DNP3 MASTER PROTOCOL

Setting

Link Confirmation
Mode

Description
Range:

checkmark / no checkmark

Default value:

no checkmark

Data link layer confirmation mode used by the DNP3 master.


Range:

Never
No confirmation for any frame.
Sometimes
Confirmation requested for multi-frame
fragments only.
Always
Confirmation requested for all frames.

Default value:
Link Confirmation
Timeout

Never

The number of milliseconds to wait for a remote device data link


layer confirmation of the last frame sent, before attempting any
retries (only if frame sent with confirm requested). Measured after
the last byte of the data frame sent.
A 0 value causes an immediate timeout.

Link Max Retries

Applic Max Retries

Applic Response
Timeout

Range:

0 to 2,147,483,647 ms

Default value:

3,000 ms

The number of attempts to re-transmit a data link frame that was


not confirmed by the remote device (only if frame sent with confirm
requested).
Range:

0 to 255

Default value:

The number of attempts to re-transmit an application layer request,


when no response is received from the remote device during the
application response timeout interval (see Applic Response
Timeout).
Range:

0 to 255

Default value:

The number of milliseconds to wait for a remote device to respond


to an application layer request. Measured after the last byte of the
data frame sent.
Range:
Default value:
Table 3-2

DNP3 MASTER PROTOCOL

100 to 300,000 ms
3,000 ms
Redundancy Settings

17

3.3

Analog Input Settings


Each instance of the master protocol component may contain several analog input points. Analog
input settings tell the component how to process data retrieved from the device. The following
table shows the analog input settings that are specific to the DNP3 master protocol.
Setting

Description

Index

Logical index that identifies the point.


Range:

0 to 65,535

Default value:

Table 3-3

3.4

Analog Input Settings

Binary Input Settings


Each instance of the master protocol component may contain several binary input points. Binary
input settings tell the component how to process data retrieved from the device. The following
table shows the binary input settings that are specific to the DNP3 master protocol.
Setting

Description

Type

Type of binary input point.


Range:

Normal
Usual binary input point type.
Time sync status
Binary input point used to qualify the
timestamp of reported transitions.
When set to 0, the reported timestamps
have a synchronized status.
When set to 1, the reported timestamps
have a non-synchronized status.

Default value:
Index

Logical index that identifies the point.


Range:

0 to 65,535

Default value:

Table 3-4

3.5

Normal

Binary Input Settings

Counter Input Settings


Each instance of the master protocol component may contain several counter input points.
Counter input settings tell the component how to process data retrieved from the device. The
following table shows the counter input settings that are specific to the DNP3 master protocol.
Setting

Description

Index

Logical index that identifies the point.


Range:

0 to 65,535

Default value:

Table 3-5

18

Counter Input Settings

DNP3 MASTER PROTOCOL

3.6

Frozen Counter Input Settings


Each instance of the master protocol component may contain several frozen counter input points.
Frozen counter input settings tell the component how to process data retrieved from the device.
The following table shows the frozen counter input settings that are specific to the DNP3 master
protocol.
Setting

Description

Index

Logical index that identifies the point.


Range:

0 to 65,535

Default value:

Table 3-6

3.7

Frozen Counter Input Settings

Analog Output Settings


Each instance of the master protocol component may contain several analog output points.
Analog output settings tell the component how to control the device. The following table shows
the analog output settings that are specific to the DNP3 master protocol.
Setting

Description

Index

Logical index that identifies the point.

Select Required

Output Control

Range:

0 to 65,535

Default value:

A checkmark indicates that the output point is controlled with a


Select/Operate application layer request. If you do not put a
checkmark, the output point will be controlled with a Direct Operate
request.
Range:

checkmark / no checkmark

Default value:

checkmark

The data type used for the output control object that is sent to the
slave device when a control output operation occurs.
Range:

16-bit value
32-bit value
Floating-point value

Default value:

32-bit value

Table 3-7

3.8

Analog Output Settings

Binary Output Settings


Each instance of the master protocol component may contain several binary output points. Binary
output settings tell the component how to control the device. The following table shows the
binary output settings that are specific to the DNP3 master protocol.
Setting

Description

Index

Logical index that identifies the point.

DNP3 MASTER PROTOCOL

19

Setting

Select Required

Control Type

Description
Range:

0 to 65,535

Default value:

A checkmark indicates that the output point is controlled with a


Select/Operate application layer request. If you do not put a
checkmark, the output point will be controlled with a Direct Operate
request.
Range:

checkmark / no checkmark

Default value:

checkmark

Output control operations supported for this point, i.e., operations


that can be forwarded to the remote device.

Pulse, Open and Pulse, Close support pulse operations, and allow

slave protocol components to perform open/close operations on the


point. The point has to be configured as a member of an open/close
pair, and there has to be another point in the same pair, which is
configured in a complementary way, that is: one Pulse, Open
point and one Pulse, Close point.
The two points of an open/close pair are linked together using the
Open/Close Pair field, so they do not have to be consecutive.
Open/close operations can be performed on either point of the pair,
giving the same results. An open operation results in a pulse
operation on the Pulse, Open point of the pair, and a close
operation results in a pulse operation on the Pulse, Close point of
the pair. See section 2.4 - Device Control.
Force Pulse supports open, close and pulse operations on the point.
A pulse is always transmitted to the device, regardless of which
request was received.

Open/Close Pair

Range:

Not Supported
Latch ON/OFF
Trip/Close
Pulse
Pulse, Open
Pulse, Close
Force Pulse

Default value:

Not Supported

Indicates the number of the open/close pair, if supported. Used to


combine two pulse points to allow open/close operations on either
of the two points.
Note: Only two points can use the same Open/Close pair number.
Range:

0
1 to 65,535

Default value:

Table 3-8

20

not assigned
pair number

Binary Output Settings

DNP3 MASTER PROTOCOL

3.9

Comma-Separated Values File Format


Using SMP Config, you can import or export a CSV (Comma-Separated Values) file containing
your SMP gateway configuration. This section describes the format to be used in defining the
various DNP3 master protocol settings.
See the document entitled SMP Config CSV Format Definition, to familiarize yourself with the CSV
file format.

3.9.1

General Settings Line Definition


Description:

Defines the general settings for each instance of the DNP3 master protocol.

Type:

A single line of data with a unique name.

Setting

Description

Line Identifier

Must be MDGP.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Device Prefix

See General Settings in the Master Protocol Common Concepts


document.

Listen Mode

See General Settings in the Master Protocol Common Concepts


document.

Link Address

See General Settings in this document.

Slave Link Address

See General Settings in this document.

Scan Priority

See General Settings in the Master Protocol Common Concepts


document.

Control Enabled

See General Settings in the Master Protocol Common Concepts


document.

Class 0123 Poll


Cycle

See General Settings in this document.

Class 0 Poll Cycle

See General Settings in this document.

Class 1 Poll Cycle

See General Settings in this document.

Class 2 Poll Cycle

See General Settings in this document.

Class 3 Poll Cycle

See General Settings in this document.

Class 123 Poll Cycle

See General Settings in this document.

Clock Sync

See General Settings in this document.

Clock Sync Cycle

See General Settings in this document.

Unsolicited Report

See General Settings in this document.

Link Confirmation
Mode

See General Settings in this document.

Link Confirmation

See General Settings in this document.

DNP3 MASTER PROTOCOL

Allowed values:

0:
1:
2:

Never
Sometimes
Always

21

Setting

Description

Timeout
Link Max Retries

See General Settings in this document.

Applic Max Retries

See General Settings in this document.

Applic Response
Timeout

See General Settings in this document.

Selection Timeout

See General Settings in the Master Protocol Common Concepts


document.

Tx During SBO

See General Settings in this document.

Notify When Ready

See General Settings in the Master Protocol Common Concepts


document.

Delay Between Tx

See General Settings in the Master Protocol Common Concepts


document.

Link Sync

See General Settings in this document.

Test Mode Point

See General Settings in the Master Protocol Common Concepts


document.

Test Mode Type

See General Settings in the Master Protocol Common Concepts


document.

Hot-Standby
Support

See General Settings in the Master Protocol Common Concepts


document.

Add Prefix To Logical


Points Only

Indicates if the Device Prefix is added to the logical points only or if


it is added to each point.
Range:

checkmark / no checkmark

Default value:

no checkmark

Table 3-9

3.9.2

22

General Settings Line Definition

Redundancy Settings Line Definition


Description:

Defines the redundancy settings for each instance of the DNP3 master
protocol.

Type:

A single line of data with a unique name.

Setting

Description

Line Identifier

Must be MDRD.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Enabled

See "Redundancy Settings" in the Master Protocol Common


Concepts document.

Link 1 Preferred

See "Redundancy Settings" in the Master Protocol Common


Concepts document.

Link 1 Test Interval

See "Redundancy Settings" in this document.

DNP3 MASTER PROTOCOL

Setting

Description

Link 2 Test Interval

See "Redundancy Settings" in this document.

Link Address

See "Redundancy Settings" in this document.

Slave Link Address

See "Redundancy Settings" in this document.

Scan Priority

See Redundancy Settings in the Master Protocol Common


Concepts document.

Class 0123 Poll


Cycle

See "Redundancy Settings" in this document.

Class 0 Poll Cycle

See "Redundancy Settings" in this document.

Class 1 Poll Cycle

See "Redundancy Settings" in this document.

Class 2 Poll Cycle

See "Redundancy Settings" in this document.

Class 3 Poll Cycle

See "Redundancy Settings" in this document.

Class 123 Poll Cycle

See "Redundancy Settings" in this document.

Clock Sync

See "Redundancy Settings" in this document.

Clock Sync Cycle

See "Redundancy Settings" in this document.

Unsolicited Report

See "Redundancy Settings" in this document.

Link Confirmation
Mode

See "Redundancy Settings" in this document.

Link Confirmation
Timeout

See "Redundancy Settings" in this document.

Link Max Retries

See "Redundancy Settings" in this document.

Applic Max Retries

See "Redundancy Settings" in this document.

Applic Response
Timeout

See "Redundancy Settings" in this document.

Selection Timeout

See Redundancy Settings in the Master Protocol Common


Concepts document.

Delay Between Tx

See General Settings in the Master Protocol Common Concepts


document.

Link Sync

See "Redundancy Settings" in this document.

Allowed values:

Table 3-10

3.9.3

0:
1:
2:

Never
Sometimes
Always

Redundancy Settings Line Definition

Switched Connection Settings Line Definition


Description:

Defines the switched connection settings for each instance of the DNP3
master protocol.

Type:

A single line of data with a unique name.

DNP3 MASTER PROTOCOL

23

Setting

Description

Line Identifier

Must be MDSW.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Enabled

See Switched Connection Settings in the Master Protocol Common


Concepts document.

Accept Incoming
Connections

See Switched Connection Settings in the Master Protocol Common


Concepts document.

Force Init

See Switched Connection Settings in the Master Protocol Common


Concepts document.

Max Retries

See Switched Connection Settings in the Master Protocol Common


Concepts document.

Retry Delay

See Switched Connection Settings in the Master Protocol Common


Concepts document.

Urgent Connections
Timeout

See Switched Connection Settings in the Master Protocol Common


Concepts document.

Inactivity Timeout

See Switched Connection Settings in the Master Protocol Common


Concepts document.

Control Inactivity
Timeout

See Switched Connection Settings in the Master Protocol Common


Concepts document.

Max Comm Timeout

See Switched Connection Settings in the Master Protocol Common


Concepts document.
Table 3-11

3.9.4

Switched Connection Schedule Settings Line Definition


Description:

Defines the switched connection schedule settings for each instance of the
DNP3 master protocol.

Type:

A single line of data with a unique name.

Setting

Description

Line Identifier

Must be MDSC.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Start Time

See Switched Connection Schedule Settings in the Master Protocol


Common Concepts document.

Stop Time

See Switched Connection Schedule Settings in the Master Protocol


Common Concepts document.

Comm Cycle

See Switched Connection Schedule Settings in the Master Protocol


Common Concepts document.
Table 3-12

24

Switched Connection Settings Line Definition

Switched Connection Schedule Settings Line Definition

DNP3 MASTER PROTOCOL

3.9.5

Analog Input Line Definition


Description:

Defines DNP3 analog input points.

Type:

One line of data per analog input point, up to a maximum of 65,535 lines per
instance of the DNP3 protocol.

Setting

Description

Line Identifier

Must be MDAI.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Name

See Analog Input Settings in the Master Protocol Common


Concepts document.

Description

See Analog Input Settings in the Master Protocol Common


Concepts document.

Type

See the CSV-specific analog input settings, in the Master Protocol


Common Concepts document.

Index

See Analog Input Settings in this document.

Scale

See Analog Input Settings in the Master Protocol Common


Concepts document.

Offset

See Analog Input Settings in the Master Protocol Common


Concepts document.

SMP Deadband

See Analog Input Settings in the Master Protocol Common


Concepts document.

Units

See CSV Unit Definition in the Master Protocol Common Concepts


document.

Disabled

See Analog Input Settings in the Master Protocol Common


Concepts document.

Persistent

See Analog Input Settings in the Master Protocol Common


Concepts document.

Monitor Activity

See Analog Input Settings in the Master Protocol Common


Concepts document.

Comm Deadband

See Analog Input Settings in the Master Protocol Common


Concepts document.
Table 3-13

3.9.6

Analog Input Line Definition

Binary Input Line Definition


Description:

Defines DNP3 binary input points.

Type:

One line of data per binary input point, up to a maximum of 65,535 lines per
instance of the DNP3 protocol.

Setting

Description

Line Identifier

Must be MDBI.

Master Name

See the CSV-specific general settings, in the Master Protocol

DNP3 MASTER PROTOCOL

25

Setting

Description

Common Concepts document.


Name

See Binary Input Settings in the Master Protocol Common


Concepts document.

Description

See Binary Input Settings in the Master Protocol Common


Concepts document.

Type

See the CSV-specific binary input settings, in the Master Protocol


Common Concepts document.

DNP3 BI Type

See "Binary Input Settings" in this document.


Allowed values:

26

Physical or logical input point


Internal indication
Time synchronization status input
point

Index

See Binary Input Settings in this document.

Inverted Polarity

See Binary Input Settings in the Master Protocol Common


Concepts document.

Disabled

See Binary Input Settings in the Master Protocol Common


Concepts document.

Persistent

See Binary Input Settings in the Master Protocol Common


Concepts document.

Monitor Activity

See Binary Input Settings in the Master Protocol Common


Concepts document.
Table 3-14

3.9.7

0:
1:
2:

Binary Input Line Definition

Counter Input Line Definition


Description:

Defines DNP3 counter input points.

Type:

One line of data per counter input point, up to a maximum of 65,535 lines
per instance of the DNP3 protocol.

Setting

Description

Line Identifier

Must be MDCI.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Name

See Analog Input Settings in the Master Protocol Common


Concepts document.

Description

See Analog Input Settings in the Master Protocol Common


Concepts document.

Index

See Counter Input Settings in this document.

Scale

See Analog Input Settings in the Master Protocol Common


Concepts document.

Offset

See Analog Input Settings in the Master Protocol Common

DNP3 MASTER PROTOCOL

Setting

Description

Concepts document.
SMP Deadband

See Analog Input Settings in the Master Protocol Common


Concepts document.

Units

See CSV Unit Definition in the Master Protocol Common Concepts


document.

Disabled

See Analog Input Settings in the Master Protocol Common


Concepts document.

Persistent

See Analog Input Settings in the Master Protocol Common


Concepts document.

Monitor Activity

See Analog Input Settings in the Master Protocol Common


Concepts document.

Comm Deadband

See Analog Input Settings in the Master Protocol Common


Concepts document.
Table 3-15

3.9.8

Counter Input Line Definition

Frozen Counter Input Line Definition


Description:

Defines the DNP3 frozen counter input points.

Type:

One line of data per frozen counter input point, up to a maximum of 65,535
lines per instance of the DNP3 protocol.

Setting

Description

Line Identifier

Must be MDFCI.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Name

See Analog Input Settings in the Master Protocol Common


Concepts document.

Description

See Analog Input Settings in the Master Protocol Common


Concepts document.

Index

See Frozen Counter Input Settings in this document.

Scale

See Analog Input Settings in the Master Protocol Common


Concepts document.

Offset

See Analog Input Settings in the Master Protocol Common


Concepts document.

SMP Deadband

See Analog Input Settings in the Master Protocol Common


Concepts document.

Units

See CSV Unit Definition in the Master Protocol Common Concepts


document.

Disabled

See Analog Input Settings in the Master Protocol Common


Concepts document.

Persistent

See Analog Input Settings in the Master Protocol Common


Concepts document.

DNP3 MASTER PROTOCOL

27

Setting

Description

Monitor Activity

See Analog Input Settings in the Master Protocol Common


Concepts document.

Comm Deadband

See Analog Input Settings in the Master Protocol Common


Concepts document.
Table 3-16

28

Frozen Counter Input Line Definition

DNP3 MASTER PROTOCOL

3.9.9

Analog Output Line Definition


Description:

Defines DNP3 analog output points.

Type:

One line of data per analog output point, up to a maximum of 65,535 lines
per instance of the DNP3 protocol.

Setting

Description

Line Identifier

Must be MDAO.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Name

See Analog Output Settings in the Master Protocol Common


Concepts document.

Description

See Analog Output Settings in the Master Protocol Common


Concepts document.

Type

Always 0.

Index

See Analog Output Settings in this document.

Scale

See Analog Output Settings in the Master Protocol Common


Concepts document.

Offset

See Analog Output Settings in the Master Protocol Common


Concepts document.

SMP Deadband

See Analog Output Settings in the Master Protocol Common


Concepts document.

Units

See CSV Unit Definition in the Master Protocol Common Concepts


document.

Select Required

See Analog Output Settings in this document.

Output Control

See Analog Output Settings in this document.


Allowed values:

0:
1:
2:

16-bit value
32-bit value
Floating-point value

Disabled

See Analog Output Settings in the Master Protocol Common


Concepts document.

Monitor Activity

See Analog Output Settings in the Master Protocol Common


Concepts document.

Comm Deadband

See Analog Output Settings in the Master Protocol Common


Concepts document.
Table 3-17

DNP3 MASTER PROTOCOL

Analog Output Line Definition

29

3.9.10

Binary Output Line Definition


Description:

Defines the DNP3 binary output points.

Type:

One line of data per binary output point, up to a maximum of 65,535 lines
per instance of the DNP3 protocol.

Setting

Description

Line Identifier

Must be MDBO.

Master Name

See the CSV-specific general settings, in the Master Protocol


Common Concepts document.

Name

See Binary Output Settings in the Master Protocol Common


Concepts document.

Description

See Binary Output Settings in the Master Protocol Common


Concepts document.

Type

See the CSV-specific binary output settings in the Master Protocol


Common Concepts document.

Index

See Binary Output Settings in this document.

Select Required

See Binary Output Settings in this document.

Master Duration
Allowed

See Binary Output Settings in the Master Protocol Common


Concepts document.

Activation Time

See Binary Output Settings in the Master Protocol Common


Concepts document.

Control Type

See Binary Output Settings in this document.


Allowed values:

Not Supported
Latch ON/OFF
Trip/Close
Pulse
Pulse, Open
Pulse, Close
Force Pulse

Open/Close Pair

See Binary Output Settings in this document.

Disabled

See Binary Output Settings in the Master Protocol Common


Concepts document.

Monitor Activity

See Binary Output Settings in the Master Protocol Common


Concepts document.
Table 3-18

30

0:
1:
2:
3:
4:
5
6:

Binary Output Line Definition

DNP3 MASTER PROTOCOL

4.

Implementation Details

4.1

Startup Sequence
The protocol component goes through the following steps on startup:

Parses the configuration file.

Initializes the various logs, traces and statistics.

Creates all I/O points and marks them as invalid (communications failure).

Initializes the communications link.

Starts the scan cycle.

If any of these steps fail, system startup is aborted.

4.2

Scan Process
The protocol component manages the device polling cycle using the following principles:

The protocol is full duplex.

The remote device may send an unsolicited response at any time if this feature is supported
and the device is configured to do so.

There is a response to each application layer request.

DNP3 response processing complies with the DNP technical specifications. Since this topic goes
beyond the scope of this document, it will not be described here. Refer to the DNP
documentation for additional information on the topic.
The DNP3 response processing rules are as follows:

In addition to the DNP rules, an application layer response is valid only if it arrives within the
configured application response timeout delay.

All objects and their variations are supported (see section 2.2.2 "Implementation Table" for
the complete listing of all supported objects and variations).

The same request is re-issued if the reception status is incorrect, up to the number of
configured retry counts. For output control requests, only Select requests may be re-issued.

Whatever the reason, the link is reset from scratch if too many consecutive bad receptions
are received, too many being the number of configured retry counts.

Link initialization occurs under the following circumstances:

The SMP is being restarted.

The communications link is being reset due to too many consecutive errors of any type.

The communications link is being reset due to a control request on a logical binary output
point.

The initialization sequence is as follows:

Perform an integrity poll (data class 0/1/2/3 read request).

Perform a clock synchronization operation (a delay measurement request, followed by a write


time request), if enabled through configuration.

DNP3 MASTER PROTOCOL

31

Once the link has been initialized, and as long as it remains active, a regular scanning
process is used on a continuous basis. Note that the link is not considered active until a valid
response to a data class 1/2/3/0 read request is received from the device.

The regular scanning process is as follows:

4.2.1

If the last sent request failed and must be retried, send it again.

If the previous application layer response contains IINs that require a special operation,
perform the operation (see section 4.2.1).

If an event requiring a special operation occurs, perform the operation (see section 4.2.2).

If a scheduled operation is ready to be performed, carry out the operation (see section
4.2.3).

The scanning process may be interrupted at any time, if there are output control requests.

If the normal scanning process is abandoned to cause a link reset, all I/O points are tagged
as being defective due to a communications failure. Analog, binary and counter input points
become valid again on an individual basis only when valid I/O data is received from the
device. Analog and binary output points become valid again as soon as the link is considered
active.

Automated operations based on internal indications


Each application response that the DNP3 master receives from the remote device contains a 16bit information field, called Internal Indications (IIN). This field contains essential information on
the status of the remote device. Consult the document entitled DNP V3.00 Application Layer,
section 3.6, for a more detailed description of the bits contained in this field.
Depending on the state of each bit, the DNP3 protocol component may perform the automated
operations described below.
Internal Indication Bit

Related Operation

IIN 1-0 All station messages


received

N/A

IIN 1-1 Class 1 data available

If this bit is set, the protocol component performs a change


event poll (Class 1/2/3 read request).

IIN 1-2 Class 2 data available

If this bit is set, the protocol component performs a change


event poll (Class 1/2/3 read request).

IIN 1-3 Class 3 data available

If this bit is set, the protocol component performs a change


event poll (Class 1/2/3 read request).

IIN 1-4 Time synchronization


required

If this bit is set, the protocol component synchronizes the


remote device clock (if clock synchronization is allowed via
the configuration).

IIN 1-5 Local mode

If this bit is set and then cleared, the protocol component


performs an integrity poll (Class 0 read request).

IIN 1-6 Device trouble

N/A

IIN 1-7 Device restart

If this bit is set, the protocol component sends a clear


restart request to the remote device.
If the bit is set in a null unsolicited response, the protocol
component sends an enable/disable unsolicited response

32

DNP3 MASTER PROTOCOL

Internal Indication Bit

Related Operation
request, depending on the unsolicited response
configuration.

IIN 2-0 Function code not


implemented

N/A

IIN 2-1 Requested object(s)


unknown

N/A

IIN 2-2 Invalid parameter

N/A

IIN 2-3 Event buffer overflow

If this bit is set, the protocol component performs an


integrity poll (Class 0 read request).

IIN 2-4 Request already


executing

N/A

IIN 2-5 Configuration corrupted

N/A

IIN 2-6 Reserved

N/A

IIN 2-7 Reserved

N/A
Table 4-1

Automated operations based on internal indications

All internals indication bits are available as statistics for diagnostic purposes. These statistical
fields are updated each time remote device IINs are reported. See section 5 - Troubleshooting.
4.2.2

Automated operations based on events


Other automated operations may be performed based on events that occur during the DNP3
master operation cycle. These events and their related automated operations are described in the
following table.
Events

Related operation

Reception of an unsolicited
response from the remote
device

If unsolicited responses are disabled through configuration,


the protocol component sends a disable unsolicited
response request.
If the response is a null unsolicited response and IIN 1-7
device restart is set, the protocol component sends an
enable/disable unsolicited response request, depending on
the unsolicited report configuration.

Clock synchronization

Before sending a clock synchronization request to the


remote device, the DNP3 master automatically performs a
delay measurement operation to adjust the time to which
the remote device will be synchronized.

Response timeout

The protocol component performs an integrity poll (Class


1/2/3/0 read request) after the timeout delay (waiting for a
response from the remote device) expires.
Table 4-1

DNP3 MASTER PROTOCOL

Automated operations based on events

33

4.2.3

Scheduled operations
Scheduled operations are performed cyclically. The cycle for each operation is set through
configuration. The operations that can be scheduled are described in the following table.
Operation

Description

Integrity poll

Sends a class 0 or class 0/1/2/3 read request to the remote


device.

Change event poll

Sends a class 1/2/3 read request to the remote device.

Clock synchronization

Performs delay measurement and clock synchronization of


the remote device.

Freeze all counter inputs

Sends an immediate freeze request to the remote device.


On reception of the response to this request, the DNP3
master sends a freeze feedback polling request (class 1/2/3
data, counters and frozen counters).

Freeze and clear all counter


inputs

Sends a freeze and clear request to the remote device.


On reception of the response to this request, the DNP3
master sends a freeze feedback polling request (class 1/2/3
data, counters and frozen counters).
Table 4-2

Scheduled Operations

It is important to note that the normal scanning sequence may be interrupted by output control
operations, depending of the Tx During SBO general setting value. When this parameter is set to
0, the scanning process is momentarily suspended after a successful Select request, until an
associated Operate request is sent, or until the selection timer expires. This feature is required to
interact with special devices that automatically recall any selected point when a request, other
than an appropriate Operate request, follows the Select request.

4.3

Listen Mode
The DNP3 master component can be configured to operate as a spy on a serial link, i.e., in listen
mode. The following restrictions apply:

Control output operations are disabled.

Communication link failures are detected using the inactivity timeout mechanism of the data
link layer. Thus, if no valid data link layer frames are received during the inactivity timeout
period, the communications link is reset, with all the consequences that this implies.

The inactivity timeout is obtained from the following calculation:


Inactivity
Timeout
(ms)

Cycle of
the fastest
configured
request
(ms)

Application
layer
configured
retry number

Application
layer
configured
timeout (ms)

If there is no request configured, which is not recommended, the inactivity timeout


mechanism is disabled and link failures cannot be detected.

34

DNP3 MASTER PROTOCOL

Remember that the basic idea in using a master protocol component in listen mode is to spy on
another link that already controls the acquisition cycle with the RTU. Thus, the instance used in
listen mode should have a configuration that is compatible with the information that is exchanged
on the primary link, so that a request timeout on one side will reflect as an inactivity timeout on
the other side, at approximately the same time.

DNP3 MASTER PROTOCOL

35

5.

Troubleshooting
The following table enumerates solutions to common problems experienced with the DNP3
master protocol component.
Problem

Solution

The SMP gateway is


not communicating
with my device.

This problem can be due to one of the following:

The link to my device


keeps resetting.

One of the reasons discussed in the Troubleshooting section


of the Master Protocol Common Concepts document.

All requests in the scanning cycle are disabled (the cycle is set
to 0). At least one request must be enabled (cycle greater than
0) in your general settings.

Device addressing problem: The slave link address configured


in the general settings does not match the one configured in
the device.

This problem can be due to one of the following:

One of the reasons discussed in the Master Protocol Common


Concepts document.

Reception timeout problem: The reception timeout configured


in the general settings is too small.
Table 5-1

36

Troubleshooting

DNP3 MASTER PROTOCOL

S-ar putea să vă placă și