0% found this document useful (0 votes)
925 views12 pages

Protocol IEC 60870 5 104 Master

1. The document describes the IEC-60870-5-104 protocol driver which allows communication with IEDs and RTUs that support the IEC-60870-5-104 protocol standard. It operates as a master station. 2. It supports common ASDUs defined for IEC-60870-5-101 including various types of measured values, commands, and integrated totals. Communication is performed over TCP/IP. 3. As a master, it initiates connections, sends interrogation requests periodically, acknowledges received messages, and sends test frames if no messages are received within a timeout period. Various parameters configure timeouts, connection settings, and security.

Uploaded by

Nguyễn Nam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
925 views12 pages

Protocol IEC 60870 5 104 Master

1. The document describes the IEC-60870-5-104 protocol driver which allows communication with IEDs and RTUs that support the IEC-60870-5-104 protocol standard. It operates as a master station. 2. It supports common ASDUs defined for IEC-60870-5-101 including various types of measured values, commands, and integrated totals. Communication is performed over TCP/IP. 3. As a master, it initiates connections, sends interrogation requests periodically, acknowledges received messages, and sends test frames if no messages are received within a timeout period. Various parameters configure timeouts, connection settings, and security.

Uploaded by

Nguyễn Nam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

IEC-60870-5-104

Master Communication Protocol

Summary
1. GENERAL INFORMATION ...................................................................................... 1
1.1 Summary ................................................................................................................................................................ 1
1.2 Supported Object Data (ASDUs)...................................................................................................................... 1
1.3 General Operation ............................................................................................................................................... 2

2. CHANNEL SETTINGS .............................................................................................. 3


2.1 Protocol Options .................................................................................................................................................. 3
2.2 Settings .................................................................................................................................................................. 3

3. NODES SETTINGS.................................................................................................... 4
3.1 TCP/IP Communication ....................................................................................................................................... 4
3.2 Parameters............................................................................................................................................................ 4

4. POINTS SETTINGS ................................................................................................... 6


4.1 General ................................................................................................................................................................... 6
4.2 Points Type ........................................................................................................................................................... 6
4.3 Point Address ....................................................................................................................................................... 8
4.4 Command Parameter .......................................................................................................................................... 8
4.5 Access Type ........................................................................................................................................................ 10

00059.01 I
GENERAL INFORMATION

1. GENERAL INFORMATION
1.1 Summary
Communication Driver Name: IEC8705104
Current Version: 1.0
Implementation DLL: T.ProtocolDriver.IEC8705104.dll
Protocol: IEC-60870-5-104 Master standard protocol
Interface: TCP/IP
Description: The Action.Net IEC870504 protocol driver implements comunication with IEDs
(Intelligent Eletronic Devices), RTUs (Remote Terminal Units) and IO devices compatible with this
protocol, playing role as master station.
IEDs types supported: Any IED compatible with IEC-60870-5-104.

Communication block size: Maximum 253bytes;


Protocol Options: Counters for sending protocol control messages.
Multi-threading: User defined, five threads per node by default.
Max number of nodes: User defined
PC Hardware requirements: Standard PC Ethernet interface board;
PC Software requirements: Action.NET system.

1.2 Supported Object Data (ASDUs)


The protocol uses the same ASDUs defined for IEC-60870-5-101 well as the same object data
types. The major difference is that it is targeted to network uses, with TCP/IP as the transport layer,
instead of serial communication.

M_SP_NA: 1 - Single-point information ;


M_DP_NA: 3 - Double-point information ;
M_ST_NA: 5 - Step position;
M_BO_NA: 7 - Bitstring with 32 bits ;
M_ME_NA: 9 - Measured value, normalized ;
M_ME_NB: 11 - Measured value, scaled value ;
M_ME_NC: 13 - Measured value Float;
M_IT_NA: 15 - Integrated totals ;
C_SC_NA: 45 - Single command ;
C_DC_NA: 46 - Double command ;
C_RC_NA: 47 - Regulating step command ;
C_SE_NA: 48 - Set point command, normalized value ;
C_SE_NC: 50 - Set point command, 32 bits floating point ;
C_BO_NA: 51 – Write 32 bit Bitstring.

It also uses all the 56 bit timestamp variant of the above ASDUs. The code above is used when
enrolling points, but if the slave IED sends variants with date and timestamp, the measures and states
received will be placed on the quality and timestamp attributes of the correspondent points.

00059.01 1
GENERAL INFORMATION

1.3 General Operation


The IEC-60870-5-104 protocol is implemented in Master mode in which it communicates with
IEDs that implement the protocol IEC-870-5-104 slave. Various parameterizations are available to
accommodate different profiles of protocol implementations.

Master has the following operating sequence:

On start or communication failure


- Send “Start of data transmission – STARTDT”;
- Send schedule, if time different from zero;
- Do sample readings, according to preset sample times (all classes);

It does an infinity loop:


- Waits for unsolicited messages containing object data that have changed.
- For each ”w” (configurable parameter) received messages, or after a certain time without
receiving messages, will be sent an “acknowledgment” message with the sequence number of
the last information message received.
- Periodically, according with a preset timeout parameter, send “Test Frames” massages in
case of none message received during this time.
- On receiving a command request targeted to any remote IED, sends it, according to command
parameter details;

2 00059.01
CHANNEL SETTINGS

2. CHANNEL SETTINGS
2.1 Protocol Options
t0 - Timeout of Connection establishment(s) – Maximum acceptable time, in seconds, for a
TCP/IP connection attempt with a remote IED. After this time, the connection is and a new
attempt is addressed. Values from 1 to 255 are allowed.

t1 - Timeout of send or test APDUs(s) – Maximum waiting time, in seconds, for sending a
regular APDU or testing APDU after START DT confirmation received. Values from 1 to 255 are
allowed.

t2 - Timeout for ack in case of no data(s) – Maximum waiting time, in seconds, for a pending
acknowledgement before sending an acknowledgement for the last received message. Will be
sent a message with the sequence number of last received. Values from 1 to 255 are allowed.
The t2 time must be less than t1.

t3 - Timeout for send test frames(s) – Maximum waiting time, in seconds, for the arrival of any
information (in case of a TCP-IP connection had been already established) before sending a
TEST-FR. Values from 1 to 255 are allowed.

Password for commands – To raise security in commands dispatch, normally initiated by a state
change in a tag, it is possible to specify a password of 9 digits at most, which will be verified by
the communication module against the present value when the command is received, with the
attribute EstimatedValue of the tag involved in the command. This way, for an operation of
command dispatch through window, script, etc., this number shall be loaded in this attribute.
The communication module, after executing the command, will turn the value contained in
EstimatedValue to ZERO. Leaving this option filled with a zero will result in no verification.

The figure below shows the filling of these fields on the channel:

2.2 Settings
TCP/IP channels:
- NodeConnections: Defines the maximum number of parallel requests that could be sent to
each node (asynchronous communication).

00059.01 3
NODES SETTINGS

3. NODES SETTINGS
Each node is a server station (IED). User may set a single station per channel.

3.1 TCP/IP Communication


IP Address – It must be specified the IED IP address.
Port – Port number to be used. The standard defines port 2404, by default. User can use custom
port numbers.

3.2 Parameters
CommonAddress- Application Layer address

Date sample time – Period of time, in milliseconds, between two consecutive submissions of
Date and Time for remote IED synchronization, if necessary. Zero is used to indicate that there
is no need for synchronization. Note that the master should not synchronize IEDs synchronized
by GPS.

General Interrogation (GI) sample time – Period of time, in milliseconds, between two
consecutive submissions of general interrogation requests to an IED. The IED responds by
sending blocks of information, as many as are required to send all points.

w – Send ack after received w IFormatAPDUs – Number of information messages received


spontaneously before sending an "acknowledgment" with the sequence number of last message
received. The allowed values are between 1 and 32767.

k – Messages received to send state variable – Maximum allowed number of pending


acknowledgements before slave stops sending new messages. It is recommended that w is at
maximum, two thirds of the k value. Values between 1 and 32767 are allowed.

Clock Adjust – Can be set as “True” to adjust the clock on this server compute or “False” to
make no adjustment. This adjustment will be made changing the machine time to match the
one that came as answer to a synchronization message sent. For this to be effective, the slave
IED must answer with a time that comes, for example, from a GPS.

The figure below shows the filling of these fields for the main station:

4 00059.01
NODES SETTINGS

Clique na
borda mostra campos
para preencher

Backup Station – The same communications settings made to an IED could be made to one
backup workstation (alternative IED) if the there is one in the facility.

00059.01 5
POINTS SETTINGs

4. POINTS SETTINGS
4.1 General
The points can be input or output. The input points, ie points that are acquired by the protocol
have basically two main parameters: The point type and address. The output points are used for
remote controls, and have an additional address parameter to specify an output operation. In a
given IED, addresses are unique no matter what kind of the point.

4.2 Points Type


Action.Net master mode implements:
 Synchronizing remotes IEDs through date and time sending;
 General Interrogation request;
 Receiving unsolicited information frames due to the data changes in remote IED.
 Time tag (24 or 56 bits length);
 Digital point single or Double command;
 Select Before Operate Command;
 Point Value Quality analyzing (QDS);

The point types were implemented as their respective object defined in the standard (see list
below).

M_SP_NA: 1 - Single-point information


Simple binary input point, assuming 0 or 1. The variants with "timetag" M_SP_TA (= 2) and
M_SP_TB (= 30) are also considered in this type.

M_DP_NA: 3 - Double-point information ;


Double input point, which can assume states 0 to 3, is usually used for signaling states of
switches and circuit breakers. The variants with "timetag" M_DP_TA (= 4) and M_DP_TB (= 31) are also
considered in this type.

M_ST_NA: 5 - Step position;


Step value, ranges from -64 to +63, mainly used for transformer step position or other position
information. The variants with "timetag" M_ST_TA (= 6) and M_ST_TB (= 32) are also considered in this
type.

M_BO_NA: 7 - Bitstring with 32 bits ;


Status information as a binary string of 32 bits. Action.Net makes no manipulation at all. The
configuration is treated as a long number. The variants with "timetag" M_BO_TA (= 8) and M_BO_TB (=
33) ) are also considered in this type.

M_ME_NA: 9 - Measured value, normalized ;


Standard Analog measurement using 16-bit signal. Value between -32768 and + 32767. It is
calculated as a real number between 0 and 1 before being assigned to the tag in real time. Should be
used "scalling"if it´s intended to reproduce the value in engineering units. The variants with "timetag"
M_ME_TA (= 10) and M_ME_TD (= 34) ) are also considered in this type.

M_ME_NB: 11 - Measured value, scaled value ;


6 00059.01
POINTS SETTINGs

Scalar Analog measurement used for transmission of analog quantities. Also 16-bit value
between -32768 and 32767. The variants with "timetag" M_ME_TB (= 12) and M_ME_TE (= 35) are also
considered in this type.

M_ME_NC: 13 - Measured value short floating point;


Analog Measurement on fractional real number format, used for transmission of analog
quantities. The measurements are 32-bit fields in the format IEEE STD 754, which implements floating-
point numbers. The variants with "timetag" M_ME_TC (= 14) and M_ME_TF (= 36) are also considered in
this type.

M_IT_NA: 15 - Integrated totals ;


Integer analog measurement signal. Measurements with 32-bit integer. The variants with
"timetag" M_IT_TB (= 16) and M_ME_TC (= 37) are also considered in this type.

C_SC_NA: 45 - Single command ;


Simple command to point (1 bit). Details of the command can be selected by clicking in the
button that is in the right side of the field. The number that is the command code resulting from the
choice of details can also be entered directly. Each point will be staticly parameterized on the POINTS
table, in a way that one point must be configured for opening and another for closing one bit switches.

C_DC_NA: 46 - Double command ;


Double command (2 bits). Details of the command can be selected by clicking the button in the
rigth side of the field. Also can be entered directly the number that is the command code resulting from
the choice of details. Each point will be staticly parameterized on the POINTS table, in a way that one
point must be configured for opening and another for closing two bit switches.

C_RC_NA: 47 - Regulating step command ;


Command for setting step. Normally used to send pulses to step up and down switching
transformers. Details of the command can be selected by clicking the button in the rigth side of the
field. Also can be entered directly the number that is the command code resulting from the choice of
details. Each point will be staticly parameterized on the POINTS table, in a way that one point must be
configured to step up and another one to step down the position of the transformer step.

C_SE_NA: 48 - Set point command, normalized value ;


Used to send set points of 16-bit normalized for IEDs that support this type of command. The
value to be sent is the one indicated by the "tag" whose address was sent in command.

C_SE_NC: 50 - Set point command, short floating point value ;


Used to send set points with IEEE STD 764 32-bit floating-point format for IEDs that support
this type of command. The value to be sent is that indicated by the "tag" whose address was sent in
command.

C_BO_NA: 51- Write Bitstring de 32 bits


Used to write a binary state information as a 32-bit string on the IED server. No manipulation
whatsoever is made by the driver. The setting is treated as a long unsigned number. The value to be
sent is the one contained in the “tag” whose address was sent in the command, at that moment. The
tag type must be “long” or AnalogInt, which is a 32-bit integer.

00059.01 7
POINTS SETTINGs

4.3 Point Address


The Address field to be filled in the point registration is what the standard calls "Information
Object Address." It is a number 2 or 3 bytes, as chosen in the "Protocol Options". In the most common
usage, two bytes are used for this number, so the range is from 1 to 65535. For a given IED it must be
unique, with the address attributed by the IED manufacturer.
As the figure below shows, one click over the address (1 – Address) opens a window to select
the point type and address. One click over the type (2 – type) opens a window with all the supported
point types:

4.4 Command Parameter


The command parameter is implemented as a code of one byte, which details what and how the
command should be executed by the IED. In this implementation, as the user registers a point typed as
command output, this field shows up to be filled by the user. If the code is already known, user may just
type it in the field. If not, click on the button to the right of field for displaying the window with the
actions and details available.

The codes generated by choosing the items in the window parameter setting command is
formed by calculating the sum of two parts (A and B), first part indicate action, and the second details
of the transaction, as defined below:

For Single Command C_SC_NA:


1 = Turn off (A)
2 = Turn on (A)
4 = Short Pulse (B)
8 = Long Pulse (B)
12 = Persistent Signal (B)

For Double Command C_DC_NA:


1 = Turn off (A)
2 = Turn on (A)
4 = Short Pulse (B)
8 = Long Pulse (B)
12 = Persistent Signal (B)

8 00059.01
POINTS SETTINGs

For Voltage Regulation C_RC_NA:


1 = Down (A)
2 = Up (A)
4 = Short Pulse (B)
8 = Long Pulse (B)
12 = Persistent Signal (B)

The remaining options are the Select type command - just select the device to be controlled; or
the Execute type command - send the proper action command. In case of choosing the Select command,
128 must be added to the code so far obtained by the sum of the parts A and B.

Example: code = 9, in a simple command means Long Pulse for Turn on the remote device.

In order to set the Action.NET with output parameters, follow the procedure below:
(1) One click over the right border of the address shows three command parameters, in the command
tab:
a. Type
b. Address
c. Command parameter
And the command options:
a. Trip
b. Close
c. Execute
d. Select
(2) Select the desired options and when pressing the left arrow ( ), the binary value corresponding
to the selection will be loaded in the command parameter:

(3) If detailing the type of signal to be sent is necessary, before pressing the left arrow click on details
and, as in the figure below, select the type of the output signal:

00059.01 9
POINTS SETTINGs

4.5 Access Type


Since it is a communication module in master mode (server), there is need for a few specific
characteristics in order to parameterize the Access Type field on the Points table:

For points with reading types:


M_SP_NA: 1 - Single-point information ;
M_DP_NA: 3 - Double-point information ;
M_ST_NA: 5 - Step position;
M_BO_NA: 7 - Bitstring with 32 bits ;
M_ME_NA: 9 - Measured value, normalized ;
M_ME_NB: 11 - Measured value, scaled value ;
M_ME_NC: 13 - Measured value Float;
M_IT_NA: 15 - Integrated totals ;

The Access Type must be defined with:


ReadOnStartup = On (Attention, it is important to do a general reading when starting);
ReadPooling = Always;
ReadPoolongRate: 500 mili
WriteEvent = Changed;
AccepUnsolictited = On;

For points with command types:


C_SC_NA: 45 - Single command ;
C_DC_NA: 46 - Double command ;
C_RC_NA: 47 - Regulating step command ;
C_SE_NA: 48 - Set point command, normalized value ;
C_SE_NC: 50 - Set point command, 32 bits floating point ;
C_BO_NA: 51- Write Bitstring de 32 bits

The Access Type must be defined with:


ReadPooling = Never;
WriteEnable = On
WriteEvent = Changed;

10 00059.01

You might also like