Protocol DNP3 Slave
Protocol DNP3 Slave
0
Slave Communication Protocol
Summary
1. GENERAL INFO ......................................................................................................... 1
1.1 Summary ................................................................................................................................................................ 1
1.2 Data Objects Supported .................................................................................................................................... 1
1.3 General operation ................................................................................................................................................ 3
3. NODES SETTINGS.................................................................................................... 7
3.1 Channel Data (Primary and Backup) ............................................................................................................... 7
000053.01 i
GENERAL INFO
1. GENERAL INFO
1.1 Summary
Communication Driver Name: DNP30S.
Current Version: 1.0.
Implementation DLL: T.ProtocolDriver.DNP30S.dll.
Protocol: DNP3.0 Slave standard protocol.
Interface: TCP/IP or Serial.
Description: This driver is used for slave (or server) mode communication with remote IEDs
(Intelligent Eletronic Devices) using Level 2 DNP 3.0 Level 2 protocol in master (or client) mode.
Communication can be done through multi-point serial channel or LAN using Ethernet and TCP-
IP. In the last case, each IED has an IP address.
IEDs types supported: Any compatilble DNP 3.0 IED in master (or client) mode.
Communication block size: Maximum 250 bytes, FT 1.2 format.
Protocol Options: Mode “LinkConfirm" and master station address.
Multi-threading: User defined, five threads per comunication node, by default.
Max number of nodes: User defined.
PC Hardware requirements: Standard PC Ethernet interface board, RS485 or RS232 port.
flag
40 2 16 Bit Analog output status 129 00
41 1 32Bit Analog output block 5 0x17 129 17
41 2 16 Bit Analog output block 5 0x17 129 17
50 1 Time and Data 1,2 0x07
60 1 Class 0 data 1 0x06
60 2 Class 1 data 1 0x06
60 3 Class 2 data 1 0x06
60 4 Class 3 data 1 0x06
80 1 Internal indications 2 0x06
In the master mode protocol implementation, master only performs the requests highlighted in
blue. The server equipment responds using the answers highlighted in yellow. Note that it is up to the
server equipment deciding how to respond and the master must support all the features of level 2 to be
used as a possible answer.
The objects, object variations, function codes and qualifiers have their standard meanings in
DNP. Tables with the function code and qualifiers are shown below:
2 00053.01
GENERAL INFO
Class 0: Corresponds to the static points, analog or digital. Its content is the value of a variable
analog or digital, input or output in a given time;
Class 1, 2 e 3: Events corresponding to class 0 variables transitions, state transitions or internal
relay situations that causes an event.
A common practice in the DNP IEDs is to associate the state variation of digital variables or
dead band pass of analog variable to classes 1, 2 or 3 events. Thus, modifying the state / value of these
variables will cause events to be transmitted at the request of the respective classes of events (60 / 2
60 / 3 and 60 / 4). Periodically, it may be requested a class 0 reading (60 / 1), for checking integrity.
Comments:
1) In this implementation, it is automatically assumed that BI type digital variables, when
altered, will be sent as Class 1, in Object 2 with variation 2 format (Binary input with time
stamp).
2) In this implementation, it is automatically assumed that AI and AIF analog variables, when
altered, will be sent as Class 2, in Object 30 with variation 3 format for AI an in Object 30
with variation 5 format for AIF.
00053.01 3
channel settings
2. CHANNEL SETTINGS
2.1 Protocol Options
LinkConfirmMode – Protocol mode in which, in link layer, all requests should be confirmed by
the remote IED. The default content is “Enabled”.
MasterStationID - Number between 1 and 65534, univocal and correspondent to the master
station address. This way, the master informs his own address to the slave when sending him a
message. Some slaves reply to the master disregarding this number, others demand that the
address declared on the slave matches the one from the master. The default for this field is
“65534”.
2.2 Settings
Serial Channel:
Com: Communication Port used on the computer;
BaudRate
DataBits: 8
StopBits: 1 or 2
Parity: None, Even Odd;
DTR: on, off
RTS: on,off
CTS: on, off;
Port configuration must be compatible between master and slave IEDs.
4 00053.01
channel settings
TCP/IP channels:
ServerMode e AcceptUnsolicited : are preset and cannot be changed;
ListeningPort: The port of the computer where this slave channel will accept conections is
defined here.
MaxSimultaneousConnections: Must be 1.
ShareNodeSameIP: Accepts IED with the same IP.
2.3 Timeout
Defines limit times for transmission and reception of message characters and the
number of retries.
00053.01 5
channel settings
Defines how the channel will initiate: enabled or disabled. If the channel is disabled, no
message will be sent or received through it. In other words, the channel will be deactivated.
6 00053.01
NODES SETTINGS
3. NODES SETTINGS
Each node represents a remote station (IED). The user can configure multiple
workstations into a single channel for serial communication. In the case of TCP-IP
communication, only one node is supported for each channel. In this case, there must be set as
many channel as there are nodes.
00053.01 7
POINTS SETTINGS
4. POINTS SETTINGS
4.1 General
The points can be input or output.
The entry points, i.e. points that are acquired through the protocol have basically two main
parameters: The point type and address.
Output points, used for remote controls, have besides the type and address, a parameter
(ControlCode) for specifying the output operation. On Action.NET, given an IED address map, for points
of the same type, address numbers must be unique.
Point States or point values are reported by IED through Information Objects defined in the
standard. These objects have variations such as with or without "timestamp". Every time the IED reports
an Information Object with "timestamp", this will be listed in Action.Net as an attribute of the point that
corresponds to this object. When there is no "timestamp", Action.Net will fill it with the current time of
the computer hosting Action.Net.
8 00053.01
POINTS SETTINGS
BI - Binary Input
Simple binary entry point, value 0 or 1. Used to receive data sent through objects 1 and 2 and all
its variations.
CT – Counter
Binary counter 16 or 32 bits, received from the IEDs through the 20 objects and all their
variations. This number has the last state of counter, in the instant it is read.
00053.01 9
POINTS SETTINGS
IIN: 16 bits sent in every slave answer with control data - Address: 65000
10 00053.01
POINTS SETTINGS
129 = Pulse ON +
TRIP
00053.01 11
POINTS SETTINGS
To implement discrete digital input points, it is enough to use the “Bit” attribute of a tag, for
each of the points that define the discrete digital input value. Therefore, for example, a switch with two
contacts that define its state:
It is defined as an AnalogInt Tag and the Bit attribute of this 16-bits variable (AnalogInt) is used
on the node table to address two points, as in the figure below:
For points with reading or command reception types (CRO, AO and AOL):
ReadOnStartup= On;
ReadPooling= Never;
WriteEvent= Changed;
AccepUnsolictited = On;
For reading type points, for which there is no intent to generate events, the Access Type must
be defined the same way as mentioned above, but with:
WriteEnable = Off
WriteEvent= none;
12 00053.01