Vidíte historickú verziu tejto stránky. Pozrite si aktuálnu verziu.

Porovnať s aktuálnou verziou Zobraziť históriu stránky

Verzia 1 Ďalej »

Supported device types and versions
Communication line configuration
Communication station configuration
I/O tag configuration
Literature
Changes and modifications
Document revisions


Supported device types and versions



Protokol DNP3 is a telemetry protocol designed for communication of a master station (usually SCADA) with outstations (usually PLC, RTU or other IED - Intelligent Electronic Devices). It was developed while IEC only worked on IEC60870-5 standards (IEC 870-5-101 and IEC 870-5-104).

DNP3 defines multiple groups of objects (e.g. Binary Input, Analog Input, Counter) and multiple variations for each object group (e.g. for Analog Input there are variations 32-bit with flag, 16-bit with flag, 32-bit without flag, 16-bit without flag, Single-precision floating point with flag ..). Each object is defined by a group number and index (a non-negative number with the size of 1, 2, or 4 bytes).

At the same time DNP3 protocol classifies objects into 4 classes (Class 0 - static objects; Class 1..3 - dynamic objects with change registration). Similar to IEC 870-5-101 and IEC 870-5-104, DNP3 supports requesting all values ​​of a particular class (Poll query), in addition to explicit reading of a particular group of objects with a specified variation (or possibly using variation 0 - automatic variation). When reading, it is possible to request the data of the whole group, or to specify an index or the entire range of objects.

The following application functions are supported for the objects:

  • Read (1) - reading objects.
  • Write (2) - Single-phase write of objects (with numeric code confirming successful write or talking about write error).
  • Select (3) + Operate (4) - a two-phase write of objects that virtually excludes the possibility of error due to undetected interference on the line. Each operation returns a group, index, and write value in addition to the return code.
  • Direct Operate (5) - single-phase write of objects (except the numeric code, the operation returns a group, index, and write value).
  • Direct Operate Non Return (6) - single-phase write of an object without confirmation (least secure).
  • Enable Unsolicited Responses (20) - activation of sending spontaneous changes by subordinate stations.

The protocol also supports sending spontaneous changes by outstations - function Unsolicited Response (130).

Data is sent as Data Link Layer packets, also called transport segments. One or more transport segments form an Application Layer fragment. The fragment can be sent as confirmed (function code 3 - CONFIRMED_USER_DATA) or unconfirmed (function code 4 - UNCONFIRMED_USER_DATA). The transport segments within one fragment are always confirmed - with the exception of the last one (function code 0 - ACK).

Tab. no. 1: D2000 implementation supports the following groups of objects and their variations:

Object Group (highlighted are configurable in I/O tags)

Variations

Supported operationsNote
Binary Input (1)

Packed format (1)
With flags (2)

Reading (Read)Binary inputs
Binary Input Event (2)Without time (1)
With absolute time (2)
With relative time (3)
Analysis*Reporting of binary inputs' changes
Double-bit Binary Input (3)Packed format (1)
With flags (2)
Reading (Read)Double-bit binary inputs
Double-bit Binary Input Event (4)Without time (1)
With absolute time (2)
With relative time (3)
Analysis*Reporting of double-bit binary inputs' changes
Binary Output (10)Packed format (1)
Output status with flags (2)

Reading (Read)
Writing (Write, Select+Operate)

Binary outputs
Binary Output Event (11)Status w/o time (1)
Status with time (2)
Reading (Read)Reporting of binary outputs' changes
Binary Command (12)Control relay output block (CROB) (1)
Pattern control block (PCB) (2)
Pattern mask (3)
-Not supported yet
Binary Output Command Event (13)Command status without time (1)
Command status with time (2)
Analysis*Reporting of changes (results of third party commands)
Counter (20)32-bit with flag (1)
16-bit with flag (2)
32-bit with flag, delta (obsolete) (3)
16-bit with flag, delta (obsolete) (4)
32-bit w/o flag (5)
16-bit w/o flag (6)
32-bit w/o flag, delta (obsolete) (7)
16-bit w/o flag, delta (obsolete) (8)
Reading (Read)Counters
Frozen Counter (21)32-bit with flag (1)
16-bit with flag (2)
32-bit with flag, delta (obsolete) (3)
16-bit with flag, delta (obsolete) (4)
32-bit with flag and time (5)
16-bit with flag and time (6)
32-bit with flag and time, delta (obsolete) (7)
16-bit with flag and time, delta (obsolete) (8)
32-bit w/o flag (9)
16-bit w/o flag (10)
32-bit w/o flag, delta (obsolete) (11)
16-bit w/o flag, delta (obsolete) (12)
Reading (Read)Counters- values captured when the object was frozen
Counter Event (22)32-bit with flag (1)
16-bit with flag (2)
32-bit with flag, delta (obsolete) (3)
16-bit with flag, delta (obsolete) (4)
32-bit with flag and time (5)
16-bit with flag and time (6)
32-bit with flag and time, delta (obsolete) (7)
16-bit with flag and time, delta (obsolete) (8)
Analysis*Reporting of counters' changes
Frozen Counter Event (23)32-bit with flag (1)
16-bit with flag (2)
32-bit with flag, delta (obsolete) (3)
16-bit with flag, delta (obsolete) (4)
32-bit with flag and time (5)
16-bit with flag and time (6)
32-bit with flag and time, delta (obsolete) (7)
16-bit with flag and time, delta (obsolete) (8)
Analysis*Reporting of counters' changes when the object was frozen
Analog Input (30)32-bit with flag (1)
16-bit with flag (2)
32-bit w/o flag (3)
16-bit w/o flag (4)
Single-prec flt-pt with flag (5)
Double-prec flt-pt with flag (6)
Reading (Read)Analog inputs
Frozen Analog Input (31)32-bit with flag (1)
16-bit with flag (2)
32-bit with time-of-freeze (3)
16-bit with time-of-freeze (4)
32-bit w/o flag (5)
16-bit w/o flag (6)
Single-prec flt-pt with flag (7)
Double-prec flt-pt with flag (8)
Reading (Read)Analog inputs - values captured when the object was frozen
Analog Input Event (32)32-bit w/o time (1)
16-bit w/o time (2)
32-bit with time (3)e
16-bit with time (4)
Single-prec flt-pt w/o time (5)
Double-prec flt-pt w/o time (6)
Single-prec flt-pt with time (7)
Double-prec flt-pt with time (8)
Analysis*Reporting of analog inputs' changes
Frozen Analog Input Event (33)32-bit w/o time (1)
16-bit w/o time (2)
32-bit with time (3)
16-bit with time (4)
Single-prec flt-pt w/o time (5)
Double-prec flt-pt w/o time (6)
Single-prec flt-pt with time (7)
Double-prec flt-pt with time (8)
Analysis*

Reporting of analog inputs' changes when the object was frozen

Analog Input Reporting Deadband (34)16-bit (1)
32-bit (2)
Single-prec flt-pt (3)
Reading (Read)
Writing (všetky funkcie)
Deadbands of analog inputs
Analog Output Status (40)32-bit with flag (1)
16-bit with flag (2)
Single-prec flt-pt with flag (3)
Double-prec flt-pt with flag (4)
Reading (Read)Reading of analog outputs
Analog Output (41)32-bit (1)
16-bit (2)
Single-prec flt-pt (3)
Double-prec flt-pt (4)
Writing (Select+Operate, Direct Operate, Direct Operate No Response, but not Write)Writing of analog outputs
Analog Output Event (42)32-bit w/o time (1)
16-bit w/o time (2)
32-bit with time (3)
16-bit with time (4)
Single-prec flt-pt w/o time (5)
Double-prec flt-pt w/o time (6)
Single-prec flt-pt with time (7)
Double-prec flt-pt with time (8)
Analysis*Reporting of analog outputs' changes
Analog Output Command Event (43)32-bit w/o time (1)
16-bit w/o time (2)
32-bit with time (3)
16-bit with time (4)
Single-prec flt-pt w/o time (5)
Double-prec flt-pt w/o time (6)
Single-prec flt-pt with time (7)
Double-prec flt-pt with time (8)
Analysis*

Reporting of analog outputs' changes
(results of third party commands)

Time and Date (50)Absolute time (1)
Absolute time and interval (2)
Absolute time at last recorded time (3)
Reading (Read)Current time
Class Objects (60)Class 0 data (1)
Class 1 data (2)
Class 2 data (3)
Class 3 data (4)
PollRequesting values for all objects of the respective class
Binary-Coded Decimal Integer (101)Small (1)
Medium (2)
Large (3)
Reading (Read)Reading of 1,2 and 4-byte signed BCD numbers
Unsigned Integer (102)8-bit (1)Reading (Read)Reading of 8-bit unsigned numbers
Octet String (110)Variations 0-255 correspond to octet strings of 0-255 bytes in lengthReading (Read)
Writing (Write)
Reading + writing of octet strings
Octet String Event (111)Variations 0-255 correspond to octet strings of 0-255 bytes in lengthAnalysis*Reporting of octet strings' changes
Virtual Terminal Output Block (112)Variations 0-255 correspond to strings of 0-255 bytes in lengthWriting (Write)Writing to a virtual terminal
Virtual Terminal Event Data (113)Variations 0-255 correspond to trings of 0-255 bytes in lengthReading (Read)Reading from a a virtual terminal

* Note: Operation Analysis means that D2000 KOM can analyze the message and assign values to the appropriate I/O tag. For example, for a Binary Input Event (2) object group, values are assigned to the I/O tags from the Binary Input (1) group.

Note: D2000 KOM supports sending a message with the writing type outside the range allowed by the standard - e.g. for the Analog Output (41) group, a write operation with Write (2) function can be configured.

The D2000 implementation also supports time synchronization (according to the parameters configured on the station) and browsing. Secure authentication is not supported.

Communication line configuration



Category of communication line:


  • Serial
  • SerialOverUDP Device Redundant
  • MOXA IP Serial Library
  • TCP / IP-UDP: The IP address and UDP port of the outstation are configured on the line (the default port for the DNP3 protocol is 20000). The UDP port on the side of D2000 KOM process is dynamically assigned. If it needs to be fixed, use the SerialOverUDP Device Redundant line.
  • TCP/IP-TCP: The IP address and TCP port of the outstation are configured on the line (the default port for the DNP3 protocol is 20000).
    Note: if a TCP/IP-TCP line has all stations set to StOFF, TCP connection will be closed. Thus it is possible to control TCP communication from event using a tell command STSTAT.

Communication line protocol parameters



Configuration line dialog box - tab Protocol parameters.
They influences some of the optional protocol parameters. The following line parameters can be set:


Key wordFull nameDescriptionUnitDefault value

MA

Master Address

Address of KOM process. The address must be a 16-bit number from interval 0-65 519 (other addresses have special meanings).

-1

SS

Serialized Stations

Serialization of communication with individual stations on the line. Serialization means that individual stations are queried sequentially (which corresponds to the situation of the stations on the serial line) to avoid conflict when multiple stations try to send a response at the same time. If a D2000 KOM process actually communicates with a single device that contains multiple virtual stations, or a device that is forwarding messages to other stations (in a way that prevents a conflict), or the channel is duplex (TCP, UDP), it is possible to disable serialization. Thus D2000 KOM process will send queries to all stations on the line and then wait for answers. Turning off serialization can speed up communication, but this will cause packet collisions and packet losses on lines with multiple stations where collisions are possible (such as RS-485).

-YES

BG

Browse All Groups

The parameter determines whether, in addition to Poll queries for individual classes (Class 0-3), queries for explicit reading of all supported object groups should also be sent. The reason for explicit reading of groups is that some objects may not be assigned to any of the classes, so Poll query will not find them.

-YES

DTQ

Debug Timeout Queue

The parameter enables advanced debug information about messages in the time queue.

-NO

Communication station configuration



  • Communication protocol Generic User.
  • Station address is not configured; it is recommended to configure a single station per line, but multple stations are supported too. In this case, when data is received from the communication, it will be published via input I/O tags IN on all configured stations. Likewise, it will be possible to use output I/O tags OUT on any configured station.


I/O tag configuration



Possible value types of I/O tag: TxtI, TxtO.


Input I/O tags:



Output I/O tags:



Note: it is possible to configure and use an I/O tag with the address IN and I/O tags IN_A, IN_B, IN_C, IN_D on a single station at the same time.
In a similar way, it is possible to configure and use an I/O tag with the address OUT and I/O tags OUT_A, OUT_B, OUT_C, OUT_D on a single station at the same time.


Literature





Changes and modifications



-


Document revisions



  • Ver. 1.0 - October 15, 2015 - creating document


  • Žiadne štítky