IEC TS 60870-5-604:2007
(Main)Telecontrol equipment and systems - Part 5-604: Conformance test cases for the IEC 60870-5-104 companion standard
Telecontrol equipment and systems - Part 5-604: Conformance test cases for the IEC 60870-5-104 companion standard
Describes test cases for conformance testing of telecontrol equipment, substation automation systems and telecontrol systems, including front-end functions of SCADA. Will facilitate interoperability by providing a standard method of testing protocol implementations. Using this specification during testing is expected to minimize the risk of non-interoperability.
General Information
Relations
Standards Content (Sample)
IEC/TS 60870-5-604
Edition 1.0 2007-10
TECHNICAL
SPECIFICATION
Telecontrol equipment and systems –
Part 5-604: Conformance test cases for the IEC 60870-5-104 companion standard
IEC/TS 60870-5-604:2007(E)
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
either IEC or IEC's member National Committee in the country of the requester.
If you have any questions about IEC copyright or have an enquiry about obtaining additional rights to this publication,
please contact the address below or your local IEC member National Committee for further information.
IEC Central Office
3, rue de Varembé
CH-1211 Geneva 20
Switzerland
Email: inmail@iec.ch
Web: www.iec.ch
About the IEC
The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
International Standards for all electrical, electronic and related technologies.
About IEC publications
The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
latest edition, a corrigenda or an amendment might have been published.
ƒ Catalogue of IEC publications: www.iec.ch/searchpub
The IEC on-line Catalogue enables you to search by a variety of criteria (reference number, text, technical committee,…).
It also gives information on projects, withdrawn and replaced publications.
ƒ IEC Just Published: www.iec.ch/online_news/justpub
Stay up to date on all new IEC publications. Just Published details twice a month all new publications released. Available
on-line and also by email.
ƒ Electropedia: www.electropedia.org
The world's leading online dictionary of electronic and electrical terms containing more than 20 000 terms and definitions
in English and French, with equivalent terms in additional languages. Also known as the International Electrotechnical
Vocabulary online.
ƒ Customer Service Centre: www.iec.ch/webstore/custserv
If you wish to give us your feedback on this publication or need further assistance, please visit the Customer Service
Centre FAQ or contact us:
Email: csc@iec.ch
Tel.: +41 22 919 02 11
Fax: +41 22 919 03 00
IEC/TS 60870-5-604
Edition 1.0 2007-10
TECHNICAL
SPECIFICATION
Telecontrol equipment and systems –
Part 5-604: Conformance test cases for the IEC 60870-5-104 companion standard
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
PRICE CODE
XD
ICS 33.200 ISBN 2-8318-9319-4
– 2 – TS 60870-5-604 © IEC:2007(E)
CONTENTS
FOREWORD.4
INTRODUCTION.6
1 Scope.7
2 Normative references .7
3 Terms and definitions .7
4 Abbreviated terms .7
5 Conformance testing for IEC 60870-5-104 .8
5.1 Overview and legend.8
5.2 Configuration parameters IEC 60870-5-104.10
5.3 Verification IEC 60870-5-104 communication .11
5.4 Conformance test procedures.52
5.5 Test results chart .84
5.6 Test results of command transmission.91
5.6.1 Test results of single command transmission.91
5.6.2 Test results of double command transmission.94
5.6.3 Test results of regulating step command transmission .97
5.6.4 Test results of setpoint command transmission. 100
Figure 1 – Test procedure.9
Table 1 – Tests on transport provider level .11
Table 2 – Tests on data unit identifier .16
Table 3 – Verification of ASDUs for process information in monitor (normal) direction.17
Table 4 – Verification of ASDUs for process information in control (normal) direction.35
Table 5 – Verification of ASDUs for system information in monitor (normal) direction.43
Table 6 – Verification of ASDUs for system information in control (normal) direction.43
Table 7 – Verification of ASDUs for parameters in control (normal) direction.46
Table 8 – Verification of ASDUs for file transfer (in monitor (normal) and control
direction) .48
Table 9 – Data unit identifier conformance test procedures .52
Table 10 – Information object address conformance test procedures .53
Table 11 – Station initialisation function (unbalanced systems) conformance test
procedures .54
Table 12 – Redundant link conformance test procedures .57
Table 13 – Cyclic data transmission function conformance test procedures .60
Table 14 – Data acquisition through read function conformance test procedures .61
Table 15 – Acquisition of events function conformance test procedures .62
Table 16 – General interrogation function conformance test procedures .63
Table 17 – Clock synchronisation function conformance test procedures .67
Table 18 – Command transmission function conformance test procedures.68
Table 19 – Transmission of integrated totals (telecounting) function conformance test
procedures .74
Table 20 – Parameter loading function conformance test procedures.77
TS 60870-5-604 © IEC:2007(E) – 3 –
Table 21 – Test procedure function conformance test procedures.78
Table 22 – File transfer procedure function conformance test procedures .79
Table 23 – Additional conformance test procedures .81
Table 24 – Negative conformance test procedures.82
Table 25 – PIXIT related conformance test procedures .83
Table 26 – Test results chart .84
Table 27 – Test results of single command transmission.91
Table 28 – Test results of double command transmission .94
Table 29 – Test results of regulating step command transmission.97
Table 30 – Test results of setpoint command transmission . 100
– 4 – TS 60870-5-604 © IEC:2007(E)
INTERNATIONAL ELECTROTECHNICAL COMMISSION
____________
TELECONTROL EQUIPMENT AND SYSTEMS –
Part 5-604: Conformance test cases for
the IEC 60870-5-104 companion standard
FOREWORD
1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising
all national electrotechnical committees (IEC National Committees). The object of IEC is to promote
international co-operation on all questions concerning standardization in the electrical and electronic fields. To
this end and in addition to other activities, IEC publishes International Standards, Technical Specifications,
Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC
Publication(s)”). Their preparation is entrusted to technical committees; any IEC National Committee interested
in the subject dealt with may participate in this preparatory work. International, governmental and non-
governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely
with the International Organization for Standardization (ISO) in accordance with conditions determined by
agreement between the two organizations.
2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international
consensus of opinion on the relevant subjects since each technical committee has representation from all
interested IEC National Committees.
3) IEC Publications have the form of recommendations for international use and are accepted by IEC National
Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC
Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any
misinterpretation by any end user.
4) In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications
transparently to the maximum extent possible in their national and regional publications. Any divergence
between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in
the latter.
5) IEC provides no marking procedure to indicate its approval and cannot be rendered responsible for any
equipment declared to be in conformity with an IEC Publication.
6) All users should ensure that they have the latest edition of this publication.
7) No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and
members of its technical committees and IEC National Committees for any personal injury, property damage or
other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and
expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC
Publications.
8) Attention is drawn to the Normative references cited in this publication. Use of the referenced publications is
indispensable for the correct application of this publication.
9) Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of
patent rights. IEC shall not be held responsible for identifying any or all such patent rights.
The main task of IEC technical committees is to prepare International Standards. In
exceptional circumstances, a technical committee may propose the publication of a technical
specification when
• the required support cannot be obtained for the publication of an International Standard,
despite repeated efforts, or
• The subject is still under technical development or where, for any other reason, there is
the future but no immediate possibility of an agreement on an International Standard.
Technical specifications are subject to review within three years of publication to decide
whether they can be transformed into International Standards.
IEC 60870-5-604, which is a technical specification, has been prepared by IEC technical
committee 57: Power systems management and associated information exchange.
TS 60870-5-604 © IEC:2007(E) – 5 –
The text of this technical specification is based on the following documents:
Enquiry draft Report on voting
57/856/DTS 57/898/RVC
Full information on the voting for the approval of this technical specification can be found in
the report on voting indicated in the above table.
This publication has been drafted in accordance with the ISO/IEC Directives, Part 2.
A list of all parts of IEC 60870 series, published under the general title Telecontrol equipment
and systems, can be found on the IEC website.
The committee has decided that the contents of this publication will remain unchanged until
the maintenance result date indicated on the IEC web site under "http://webstore.iec.ch" in
the data related to the specific publication. At this date, the publication will be
• transformed into an International standard,
• reconfirmed,
• withdrawn,
• replaced by a revised edition, or
• amended.
A bilingual version of this publication may be issued at a later date.
– 6 – TS 60870-5-604 © IEC:2007(E)
INTRODUCTION
This technical specification (TS) describes test cases for conformance testing of telecontrol
equipment or systems using the IEC 60870-5 companion standard 104 based on the
IEC 60870-5-104 companion standard and IEC 60870-5-6, Guidelines for conformance testing
for the IEC 60870-5 companion standards.
TS 60870-5-604 © IEC:2007(E) – 7 –
TELECONTROL EQUIPMENT AND SYSTEMS –
Part 5-604: Conformance test cases for
the IEC 60870-5-104 companion standard
1 Scope
This technical specification which is part of the IEC 60870-5 series describes test cases for
conformance testing of telecontrol equipment, Substation Automation Systems [SAS] and
telecontrol systems, including front-end functions of SCADA.
The use of this part of IEC 60870 facilitates interoperability by providing a standard method of
testing protocol implementations, but it does not guarantee interoperability of devices. It is
expected that using this specification during testing will minimize the risk of non-
interoperability.
The goal of this part of IEC 60870 is to enable unambiguous and standardised evaluation of
IEC 60870-5 companion standard protocol implementations. The guidelines and conditions for
the testing environment are described in IEC 60870-5-6. The detailed test cases per
companion standard, containing among others mandatory and optional mandatory test cases
per Basic Application Function, ASDU and transmission procedure, will become available as a
technical specification (TS). Other functionality may need additional test cases but this is
outside the scope of this part of IEC 60870. For proper testing, it is recommended to define
these additional test cases. This document is such a Technical Specification for the
mentioned companion standard.
This part of IEC 60870 deals mainly with communication conformance testing; therefore other
requirements, such as safety or EMC are not covered. These requirements are covered by
other standards (if applicable) and the proof of compliance for these topics is done according
to these standards.
2 Normative references
The following referenced documents are indispensable for the application of this document.
For dated references, only the edition cited applies. For undated references, the latest edition
of the referenced document (including any amendments) applies.
IEC 60870-5-6, Telecontrol equipment and systems – Part 5-6: Guidelines for conformance
testing for the IEC 60870-5 companion standards
IETF RFC220, Internet Official Protocol Standards
3 Terms and definitions
For the purposes of this document, the terms and definitions given in IEC 60870-5-6 apply.
4 Abbreviated terms
For the purposes of this document, the abbreviations given in IEC 60870-5-6 apply.
___________
The base standard always takes precedence. In case of ambiguity between this technical specification and the
base standards (IEC 60870-5-1 to IEC 60870-5-5, IEC 60870-5-104), this part of IEC 60870 needs to be clarified or
amended.
When testing, negative behaviour is not described in the base standard, the behaviour described in this document
prevails and should be observed.
The conformance statement produced after testing indicates any lack of conformance to either the test plan or the
base standard.
– 8 – TS 60870-5-604 © IEC:2007(E)
5 Conformance testing for IEC 60870-5-104
5.1 Overview and legend
An overview of tests is given in the tables below. Procedural and functional testing must always start with the Station Initialisation function and
proceeds with the next Basic Application Functions. The procedure in each test case must be followed, which means that the DUT is able to
function as described in the specific test case.
The test procedures in the tables 0 through 10 must be carried out with no errors detected during testing of all the Basic Application Functions in
tables 11 through 25. These tests are preferably automatically performed by the used test platform.
In addition to the performance criteria listed in the test procedures, 5.3 lists the protocol specifications that must be verified automatically by the
testing software or verified manually by review of the test history log after execution of the test procedures. The verification must result in no
errors detected during the complete test procedure.
This test plan has a direct reference to the PICS and possibly a PIXIT. Without a reference to a PICS or PIXIT this test plan is obsolete.
Test case numbering syntax is subclause number + table number + test case number.
Test cases are mandatory depending on the description in the column ‘Required’. The following situations are possible:
M = Mandatory test case regardless if enabled in the PICS/PIXIT, not only in one situation but during execution of all the
tests as in the PICS and/or PIXIT
PICS, x.x = Mandatory test case if the functionality is enabled in the PICS (by marking the applicable check box), with a reference to
the section number of the PICS (x.x); note: PICS 8.x always refers to 60870-5-104, Clause 8
PIXIT = Mandatory test case if the functionality is enabled/described in the PIXIT. Verification of these test cases by the
user/owner of the PIXIT is required before the test is started.
For each test case the test results need to be marked in the appropriate column of the test result chart in 5.5 and 5.6. Each test case can either
pass the test (Passed), fail the test (Failed), not applicable, when the configuration value is not supported by the device (N.A.), or the test case was
not performed (Empty). Ideally, there should be no empty boxes when testing is complete.
The test tables are divided into 5 subclauses:
– Subclause 5.2 Configuration parameters IEC 60870-5-104
– Subclause 5.3 Verification IEC 60870-5-104 communication
– Subclause 5.4 Conformance test procedures
– Subclause 5.5 Test result chart
– Subclause 5.6 Test results of command transmission
TS 60870-5-604 © IEC:2007(E) – 9 –
The procedure to perform all the mandatory test cases, according to the PID, is shown in Figure 1.
Tailored
test plan
Test
Test
DUDUT configuredT Configured acaccorcording ding
to PID as in 5.2
toPID as inSect ion5. 2
Change the
configuration
configuration
Run the ConformancTeste
Run the conformance test
and repeat
Procedureaccors dingto
procedures according to 5.4 Performeach
Perform each
the test in
Section5.4
Mamandatorndatoryy test test
5.3 and 5.4
case according
Do veri f i cat i onaccordingto to the tailored
Do verification according
test plan for the
to 5.3 for the mandatory
Section5.3 forthe
configured DUT
test cases
Mandatorytest cases
configuredDUT
Refer to Figure 2 in IEC 60870-5-6
Defects?
Defects?
IEC 1810/07
Figure 1 – Test procedure
– 10 – TS 60870-5-604 © IEC:2007(E)
5.2 Configuration parameters IEC 60870-5-104
Table 0 Run the Conformance Test Procedures for each of the following supported configuration parameter values
Since IEC 60870-5-104 contains a number of configuration parameters affecting protocol behaviour, the conformance test procedures in 5.4 and
verification in 5.3 must be performed at least once for each supported value of the parameters listed in Table 0. Basically the DUT must be tested
if the functionality in 5.3 and 5.4 behaviour is correct for the configuration(s) in this table.
No. Test Description Reference Required
5.2.0.1 System definition Controlling station test (Master) PICS, 9.1
5.2.0.2 Controlled station test (Slave) PICS, 9.1
Frame length Maximum length L (control direction) IEC 60870-5-101, 6.2 PICS, 9.4
5.2.0.50
Maximum length L (monitor direction) IEC 60870-5-101, 6.2 PICS, 9.4
5.2.0.51
5.2.0.70 COMMON ADDRESS of Two (2) octets for Common Address of ASDU (CASDU) IEC 60870-5-101, 7.2.4 PICS, 9.5
ASDU
INFORMATION Three (3) octets for Information Object Address (structured or unstructured) IEC 60870-5-101, 7.2.5 PICS, 9.5
5.2.0.80
OBJECT ADDRESS
nd
5.2.0.90 CAUSE OF Two (2) octets for COT field (2 octet is Originator address) IEC 60870-5-101, 7.2.3 PICS, 9.5
TRANSMISSION
TS 60870-5-604 © IEC:2007(E) – 11 –
5.3 Verification IEC 60870-5-104 communication
This subclause lists the protocol specifications that must be verified automatically by the testing software or verified manually by review of the
test history log after execution of the test procedures. Every test case describes functionality that has passed the test if the functionality as in the
the description column was shown to be correct. Correct means: the functionality must be checked either automatically or manually, and also be
checked by the test engineer in a human readable format log-file. For example to test the IV qualifier of some information elements, the ASDU
containing this element must be sent with the IV=1. Every test case marked “Passed”, has to be verifiable during testing and archived in log-files
for post assessment.
To identify if a test case is mandatory, it is necessary to read 5.1 carefully.
Table 1 – Tests on transport provider level
No. Test Description Reference Required
5.3.1.1 IP FRAME IP Header, IP Fragment Re-assembling IETF RFC2200 M
5.3.1.2 Source Address, Destination address IETF RFC2200 M
5.3.1.3 TCP FRAME TCP Header, TCP Control field (specifically ACK, RST, SYN, FIN), TCP IETF RFC2200 M
Sequencing
5.3.1.4 [The server (controlled station) uses the] port number 2404 [(confirmed by IEC 60870-5-104, 5.4 M
IANA) in all cases, both for the listening port and established connections. The
[MOM WG03 15 June 2001
client (controlling station) is free to use ephemeral port number, e.g. as
4.2.2.4] (Especially marked
allocated by the client’s TCP/IP implementation]
because it is not yet in the
standard!)
5.3.1.5 Actively opening a new TCP connection starts with a TCP frame containing IETF RFC2200 M
(SYN) from the node that takes the initiative to establish the TCP connection.
IEC 60870-5-104, 7.1
This is answered by the other node with (SYN, ACK), which in turn is answered
by the initiating node with (ACK). Thereinafter the TCP connection is
established
5.3.1.6 Actively closing an established TCP connection starts with a TCP frame IETF RFC2200 M
containing (FIN) from the node that takes the initiative to close the TCP
IEC 60870-5-104, 7.1,
connection. This is answered by the other node (ACK) followed by a TCP frame
Figure 19
from this same other node containing also (FIN). This in turn is answered by the
initiating node with (ACK). Thereinafter the TCP connection is closed
5.3.1.7 TCP Data stream on an established TCP connection contains APDU's. APDU’s IEC 60870-5-104, Clause 5 M
are correctly assembled when divided over multiple TCP frames
5.3.1.10 CS104 APDU FRAME Start character of APDU: 68 IEC 60870-5-104, Clause 5 M
H
LAYOUT
5.3.1.11 Configured number of octets L as the maximum number of Data octets (ASDU + IEC 60870-5-104, Clause 5 PICS, 9.4
Control field) in APDU: max. 253
5.3.1.12 4-octet Control field IEC 60870-5-104, Clause 5 M
– 12 – TS 60870-5-604 © IEC:2007(E)
Table 1 (continued)
No. Test Description Reference Required
5.3.1.20 CS104 I-FORMAT APDU Control field octet 1 bit 1 (LSB) = 0 IEC 60870-5-104, Clause 5 M
5.3.1.21 Information transfer frame Control field octets 1-2, bit 2.16 contain end sequence number N(S) range IEC 60870-5-104, Clause 5 M
0.Maximum value 32767
5.3.1.22 Control field octet 3 bit 1 (bit 17) = 0 IEC 60870-5-104, Clause 5 M
5.3.1.23 Control field octets 3-4, bit 18.32 contain Receive sequence number N(R) range IEC 60870-5-104, Clause 5 M
0.maximum value 32767
5.3.1.24 I-format frame contains exactly one ASDU IEC 60870-5-104, Clause 5 M
5.3.1.25 CS104 S-FORMAT APDU Control field octet 1, bit 1-2 have value 01 IEC 60870-5-104, Clause 5 M
B
Numbered Supervisory
5.3.1.26 Control field octets 1-2, bit 3.16 all contain value 0 IEC 60870-5-104, Clause 5 M
function frame
5.3.1.27 Control field octet 3 bit 1 (bit 17) = 0 IEC 60870-5-104, Clause 5 M
5.3.1.28 Control field octets 3-4, bit 18.32 contain Receive sequence number N(R) range IEC 60870-5-104, Clause 5 M
0.maximum value 32767
5.3.1.29 S-frame APDU only contains a single APCI field IEC 60870-5-104, Clause 5 M
5.3.1.30 CS104 U-FORMAT APDU Control field octet 1, bit 1-2 have value 11B IEC 60870-5-104, Clause 5 M
5.3.1.31 Unnumbered Control function Control field octet 1, bit 3 used for control function STARTDT Activation IEC 60870-5-104, Clause 5 M
frame
5.3.1.32 Control field octet 1, bit 4 used for control function STARTDT Confirmation IEC 60870-5-104, Clause 5 M
5.3.1.33 Control field octet 1, bit 5 used for control function STOPDT Activation IEC 60870-5-104, Clause 5 M
5.3.1.34 Control field octet 1, bit 6 used for control function STOPDT Confirmation IEC 60870-5-104, Clause 5 M
5.3.1.35 Control field octet 1, bit 7 used for control function TESTFR Activation IEC 60870-5-104, Clause 5 M
5.3.1.36 Control field octet 1, bit 8 used for control function TESTFR Confirmation IEC 60870-5-104, Clause 5 M
5.3.1.37 Control field bit 3.8 contains exactly one active (bit with value 1) Control function IEC 60870-5-104, Clause 5 M
(TESTFR, STARTDT, STOPDT, either Activation or Confirmation) per U-frame
5.3.1.38 Control field octets 2-4, bit 9.32 all contain value 0 IEC 60870-5-104, Clause 5 M
5.3.1.39 U-frame APDU only contains a single APCI field IEC 60870-5-104, Clause 5 M
TS 60870-5-604 © IEC:2007(E) – 13 –
Table 1 (continued)
No. Test Description Reference Required
5.3.1.50 TRANSMISSION Balanced transmission (after TCP connection has been established) IEC 60870-5-104, M
PROCEDURE Introduction
The initial values of the Send sequence number N(S) and the Receive sequence IEC 60870-5-104, 5.1 M
number N(R) are set to 0 (zero) after a new TCP connection is successfully
established which is then a Stopped connection
An I-frame contains the current values of the Send sequence number N(S) and IEC 60870-5-104, 5.1 M
the Receive sequence number N(R)
After sending an I-frame, the Send sequence number N(S) in the Primary IEC 60870-5-104, 5.1 M
station is incremented with 1
After receiving a valid I-frame, the Receive sequence number N(R) in the IEC 60870-5-104, 5.1 M
Secondary station is incremented with 1
Yet unacknowledged I-frames from the Primary station are acknowledged by IEC 60870-5-104, 5.1 M
either an I-frame or an S-frame from the Secondary station
The Receive sequence number N(R) acknowledges all yet unacknowledged I- IEC 60870-5-104, 5.1 M
frames with N(S) < N(R)
A Primary station sends at most the configured amount of K IEC 60870-5-104, 5.5 M
unacknowledged I-frames before it stops and waits for an acknowledgement
A Secondary station sends an acknowledgement after receiving at most the IEC 60870-5-104, 5.5 M
configured amount of W I-frames
An APDU with a Send sequence number N(S) that is higher or lower (called “out IEC 60870-5-104, 5.1 M
of sequence”) than the current Receive sequence number N(R), results in
[sending an S-frame to confirm the I-frames that it has received (if applicable)
[MOM WG03 15 June 2001
after which] a TCP Active close (TCP Control field FIN) is given by the
4.2.1/4.2.2.3 ]
Secondary Station (because one or more previous APDUs may have been lost
along the way to their destination due to connection failures)
U-Frame Control function STARTDT_ACT answered with STARTDT_CON IEC 60870-5-104, 5.3 M
U-Frame Control function STOPDT_ACT answered with STOPDT_CON IEC 60870-5-104, 5.3 M
U-Frame Control function TESTFR_ACT answered with TESTFR_CON IEC 60870-5-104, 5.2 M
– 14 – TS 60870-5-604 © IEC:2007(E)
Table 1 (continued)
No. Test Description Reference Required
5.3.1.70 TRANSMISSION CONTROL After a TCP connection has been established, initially a Stopped connection is IEC 60870-5-104, 5.3 M
USING START/STOP created (a Stopped connection is an open (“established”) TCP connection that
is in confirmed STOPDT state) and allows the exchange of U-frames in
controlling and controlled direction
Both the Controlling and Controlled station explicitly disable the transfer and do IEC 60870-5-104, 5.3 M
not answer the receipt of I- and S-frames in a Stopped connection
[MOM WG03 15 June 2001
4.2.2.5]
The controlling station sends a STARTDT_ACT after which a Pending Started IEC 60870-5-104, 5.3 M
connection is created. The controlling station may send U-, I-, and S- frames
[MOM WG03 15 June 2001
immediately after the STARTDT_ACT which will be accepted by the controlled
4.2.2.5]
station
The controlled station explicitly disables the transfer of I- and S-frames and the IEC 60870-5-104, 5.3 M
controlling station does not accept I- or S-frames in a Pending Started
[MOM WG03 15 June 2001
connection, but only U-frames
4.2.2.5]
After the controlling station has received STARTDT_CON, the Started IEC 60870-5-104, 5.3 M
connection is created and the controlled station may sent U-, I-, and S- frames
[MOM WG03 15 June 2001
immediately after the STARTDT_CON. Controlled and controlling stations are
4.2.2.5]
allowed to send U-, I-, and S- frames
The Controlling station explicitly disables the transfer of I-frames in monitoring IEC 60870-5-104, 5.3 M
direction by sending a STOPDT_ACT to the Controlled station, after which a
[MOM WG03 15 June 2001
Pending Stopped connection is created
4.2.2.5]
The controlled station disables the transfer of I-frames after the STOPDT_ACT IEC 60870-5-104, 5.3 M
is received. The controlling station may receive I-frames, which are transferred
[MOM WG03 15 June 2001
before the receipt of the STOPDT_ACT
4.2.2.5]
If unconfirmed I-frames are in the controlled station, the Pending Stopped IEC 60870-5-104, 5.3 M
connection is called the Pending Unconfirmed Stopped connection. If the
[MOM WG03 15 June 2001
controlled station receives the S-frame to confirm the I-frames (immediately or
4.2.2.5]
after time-out t2 of the controlling station expires) the controlled station sends
the STOPDT_CON after the Stopped connection is created
If NO unconfirmed I-frames are in the controlled station the controlled station IEC 60870-5-104, 5.3 M
sends a STOPDT_CON to the controlling station after which the Stopped
[MOM WG03 15 June 2001
connection is created
4.2.2.5]
Send sequence number N(S) and Receive Sequence number N(R) remain IEC 60870-5-104, 5.3 M
unchanged during the use of U-frames with STARTDT / STOPDT indications
TS 60870-5-604 © IEC:2007(E) – 15 –
Table 1 (continued)
No. Test Description Reference Required
5.3.1.90 TIME OUT INTERVALS An unanswered TCP Active open by the (fixed) Controlling Station (TCP Control IEC 60870-5-104, 7.1, M
field SYN: CONNECTION REQUEST) is actually cancelled after the configured Figure 19
time out t (range 1.255 s) and subsequently restarted. It is highly
recommended to cancel the current timed out TCP Active open, to prevent
against an increasing number of “not cancelled” TCP connections because of
the limited number of available open connections in a system
A TCP Passive open by the Controlled Station (LISTEN) remains active IEC 60870-5-104, 7.1 M
infinitely until a CONNECT is received
An I-frame from the Primary Station that is not acknowledged within the IEC 60870-5-104, 5.1, M
configured time out t (range 1.255 s) results in a TCP Active close (TCP Figure 12
Control field FIN) by the Primary Station. [The time out t runs for every I-frame
IEC 60870-5-104, 5.2
individually and is cancelled if that particular I-frame has been confirmed.]
IEC 60870-5-104, 5.3
[MOM WG03 15 June 2001
4.2.1/4.2.2.3]
A U-frame from the Primary Station that is not confirmed within the configured IEC 60870-5-104, 5.1 M
time out t (range 1.255 s) results in a TCP Active close (TCP Control field
IEC 60870-5-104, 5.2
FIN) by the Primary Station
After the configured time period t (range 1.254 s) of transmitting I-frames, IEC 60870-5-104, 5.1, M
[which starts after the first unconfirmed frame is received], from the Primary Figure 10
Station in one direction only, an S-frame is sent by the Secondary Station to
[MOM WG03 15 June 2001
acknowledge the last I-frame
4.2.1/4.2.2.3]
t < t IEC 60870-5-104, 9.6 M
2 1
After the configured time period t (range 1.255 s) of inactivity (no IEC 60870-5-104, 5.2 M
transmission of I-, S- or U-frames on the connection by either Primary or
Secondary station), a U-frame with TESTFR_ACT is sent. All time out interval
rules apply
t > t IEC 60870-5-104, 9.6 M
3 1
– 16 – TS 60870-5-604 © IEC:2007(E)
Table 2 – Tests on data unit identifier
No. Test Description Reference Required
5.3.2.1 TYPE IDENTIFICATION Compatible ASDU type used/accepted for all ASDU’s as in the PICS IEC 60870-5-101, 7.2.1.1 PICS, 9.5
IEC 60870-5-101, 7.3.1
IEC 60870-5-104,
Clause 8
PID
5.3.2.2 Variable structure qualifier SQ (Sequence or Set) as defined for each ASDU IEC 60870-5-101, 7.2.2 M
IEC 60870-5-101, 7.3.1
5.3.2.3 SQ:=1 only for COT Spontaneous (3), Cyclic/Periodic (1), Requested (5) or IEC 60870-5-101, 7.2.2 PIXIT
Interrogation (20.36). Check the PICS for the supported COT values
5.3.2.4 Variable structure qualifier i (Number of elements) according to transmitted number IEC 60870-5-101, 7.2.2 M
of information elements
5.3.2.5 Defined number of octets for ASDU IEC 60870-5-101, 7.2 M
5.3.2.10 CAUSE OF TRANSMISSION Originator address identifies source application of Primary station or 0 if present IEC 60870-5-101, 7.2.3 PIXIT
but not used
IEC 60870-5-104, 9.5
5.3.2.11 Compatible Cause Of Transmission (COT) used/accepted. Check the PICS for the IEC 60870-5-101, 7.2.3 PICS, 9.5
supported COT values
IEC 60870-5-101, 7.2.3
5.3.2.12 P/N bit = 0: positive confirmation of activation IEC 60870-5-101, 7.2.3 M
5.3.2.13 P/N bit = 1: negative confirmation of activation IEC 60870-5-101, 7.2.3 M
5.3.2.14 Test bit = 0: ASDU generated during normal conditions IEC 60870-5-101, 7.2.3 M
5.3.2.15 Test bit = 1: ASDU generated during test conditions IEC 60870-5-101, 7.2.3 PIXIT
TS 60870-5-604 © IEC:2007(E) – 17 –
Table 3 – Verification of ASDUs for process information in monitor (normal) direction
No. Test Description Reference Required
M_SP_NA_1
5.3.3.10 SIQ with SQ = 0, each element with its own IOA IEC 60870-5-101, 7.3.1.1 PICS, 9.5
ASDU 1 st
5.3.3.11 SIQ with SQ = 1, with only the IOA of the 1 element and the following Information IEC 60870-5-101, 7.3.1.1 PIXIT
Single-point information
Elements are identified by numbers incrementing continuously by +1 from this offset
(see IEC 60870-5-101, 7.2.2.1)
5.3.3.12 COT as defined in the attached PICS IEC 60870-5-101, 7.3.1.1 PICS, 9.5
5.3.3.13 SIQ SPI = 0 (OFF), 1 (ON) IEC 60870-5-101, 7.2.6.1 PICS, 9.5
5.3.3.14 RES = 0 IEC 60870-5-101, 7.2.6.1 PICS, 9.5
5.3.3.15 BL = 0,1 IEC 60870-5-101, 7.2.6.1 PIXIT
5.3.3.16 SB = 0,1 IEC 60870-5-101, 7.2.6.1 PIXIT
5.3.3.17 NT = 0,1 IEC 60870-5-101, 7.2.6.1 PIXIT
5.3.3.18 IV = 0,1 IEC 60870-5-101, 7.2.6.1 PICS, 9.5
M_DP_NA_1
5.3.3.30 DIQ with SQ = 0, each element with its own IOA IEC 60870-5-101, 7.3.1.3 PICS, 9.5
ASDU 3
5.3.3.31 DIQ with SQ = 1, with only the IOA of the 1st element and the following Information IEC 60870-5-101, 7.3.1.3 PIXIT
Double-point information
Elements are identified by numbers incrementing continuously by +1 from this offset
(see IEC 60870-5-101, 7.2.2.1)
5.3.3.32 COT as defined in the attached PICS IEC 60870-5-101, 7.3.1.3 PICS, 9.5
5.3.3.33 DIQ DPI = 0 (indeterminate or intermediate state), 1 (OFF), 2 (ON), 3 (indeterminate state) IEC 60870-5-101, 7.2.6.2 PICS, 9.5
5.3.3.34 RES = 0 IEC 60870-5-101, 7.2.6.2 PICS, 9.5
5.3.3.35 BL = 0,1 IEC 60870-5-101, 7.2.6.2 PIXIT
5.3.3.36 SB = 0,1 IEC 60870-5-101, 7.2.6.2 PIXIT
5.3.3.37 NT = 0,1 IEC 60870-5-101, 7.2.6.2 PIXIT
5.3.3.38 IV = 0,1 IEC 60870-5-101, 7.2.6.2 PICS, 9.5
– 18 – TS 60870-5-604 © IEC:2007(E)
Table 3 (continued)
No. Test Description Reference Required
5.3.3.50 M_ST_NA_1 VTI with SQ = 0, each element with its own IOA IEC 60870-5-101, 7.3.1.5 PICS, 9.5
ASDU 5
5.3.3.51 VTI with SQ = 1, with only the IOA of the 1st element and the following Information IEC 60870-5-101, 7.3.1.5 PIXIT
Step-position information
Elements are identified by numbers incrementing continuously by +1 from this offset
(see IEC 60870-5-101, 7.2.2.1)
5.3.3.52 COT as defined in the attached PICS IEC 60870-5-101, 7.3.1.5 PICS, 9.5
5.3.3.53 VTI Value valid range −64.+63 IEC 60870-5-101, 7.2.6.5 PICS, 9.5
5.3.3.54 Transient = 0,1 IEC 60870-5-101, 7.2.6.5 PICS, 9.5
5.3.3.55 QDS RES = 0 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.56 BL = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.57 SB = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.58 NT = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.59 IV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.60 OV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.70 M_BO_NA_1 BSI with SQ = 0, each element with its own IOA IEC 60870-5-101, 7.3.1.7 PICS, 9.5
ASDU 7
5.3.3.71 BSI with SQ = 1, with only the IOA of the 1st element and the following Information IEC 60870-5-101, 7.3.1.7 PIXIT
Bitstring of 32 bit
Elements are identified by numbers incrementing continuously by +1 from this offset
(see IEC 60870-5-101, 7.2.2.1)
5.3.3.72 COT as defined in the attached PICS IEC 60870-5-101, 7.3.1.7 PICS, 9.5
5.3.3.73 BSI BSI = 0,1 IEC 60870-5-101, 7.2.6.13 PICS, 9.5
5.3.3.74 QDS RES = 0 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.75 BL = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
TS 60870-5-604 © IEC:2007(E) – 19 –
Table 3 (continued)
No. Test Description Reference Required
5.3.3.76 SB = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.77 NT = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.78 IV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.79 OV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.90 M_ME_NA_1 NVA with SQ = 0, each element with its own IOA IEC 60870-5-101, 7.3.1.9 PICS, 9.5
ASDU 9
5.3.3.91 NVA with SQ = 1, with only the IOA of the 1st element and the following Information IEC 60870-5-101, 7.3.1.9 PIXIT
Measured value,
Elements are identified by numbers incrementing continuously by +1 from this offset
normalised value (see IEC 60870-5-101, 7.2.2.1)
5.3.3.92 COT as defined in the attached PICS IEC 60870-5-101, 7.3.1.9 PICS, 9.5
5.3.3.93 NVA Value (translation considering the scaling factor) IEC 60870-5-101, 7.2.6.6 PICS, 9.5
PIXIT
–15
5.3.3.94 IEC 60870-5-101, 7.2.6.6 PICS, 9.5
Range −1 to +1−2
5.3.3.95 QDS RES = 0 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.96 BL = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.97 SB = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.98 NT = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.99 IV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.100 OV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
– 20 – TS 60870-5-604 © IEC:2007(E)
Table 3 (continued)
No. Test Description Reference Required
5.3.3.110 M_ME_NB_1 SVA with SQ = 0, each element with its own IOA IEC 60870-5-101, 7.3.1.11 PICS, 9.5
ASDU 11
Measured value, scaled
value
5.3.3.111 SVA with SQ = 1, with only the IOA of the 1st element and the following Information IEC 60870-5-101, 7.3.1.11 PIXIT
Elements are identified by numbers incrementing continuously by +1 from this offset
(see IEC 60870-5-101, 7.2.2.1)
5.3.3.112 COT as defined in the attached PICS IEC 60870-5-101, 7.3.1.11 PICS, 9.5
5.3.3.113 SVA Value (translation considering the scaling factor) IEC 60870-5-101, 7.2.6.7 PICS, 9.5
PIXIT
15 15
5.3.3.114 Range −2 to 2 – 1 IEC 60870-5-101, 7.2.6.7 PICS, 9.5
5.3.3.115 QDS RES = 0 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.116 BL = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.117 SB = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.118 NT = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.119 IV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.120 OV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.130 IM_ME_NC_1 EEE STD 754 with SQ = 0, each element with its own IOA IEC 60870-5-101, 7.3.1.13 PICS, 9.5
ASDU 13
5.3.3.131 IEEE STD 754 with SQ = 1, with only the IOA of the 1st element and the following IEC 60870-5-101, 7.3.1.13 PIXIT
Measured value, short Information Elements are identified by numbers incrementing continuously by +1 from
floating point number
this offset (see IEC 60870-5-101, 7.2.2.1)
5.3.3.132 COT as defined in the attached PICS IEC 60870-5-101, 7.3.1.13 PICS, 9.5
TS 60870-5-604 © IEC:2007(E) – 21 –
Table 3 (continued)
No. Test Description Reference Required
–23
5.3.3.133 IEEE STD 754 IEC 60870-5-101, 7.2.6.8 PICS, 9.5
Fraction = 0. 1−2
IEC 60870-5-4, 6.5
5.3.3.134 Exponent = 0. 255 IEC 60870-5-101, 7.2.6.8 PICS, 9.5
IEC 60870-5-4, 6.5
5.3.3.135 Sign = 0,1 IEC 60870-5-101, 7.2.6.8 PICS, 9.5
IEC 60870-5-4, 6.5
5.3.3.136 QDS RES = 0 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.137 BL = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.138 SB = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.139 NT = 0,1 IEC 60870-5-101, 7.2.6.3 PIXIT
5.3.3.140 IV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.141 OV = 0,1 IEC 60870-5-101, 7.2.6.3 PICS, 9.5
5.3.3.150 M_IT_NA_1 BCR with SQ = 0, each element with its own IOA IEC 60870-5-101, 7.3.1.15 PICS, 9.5
ASDU 15
5.3.3.151 BCR with SQ = 1, with only the IOA of the 1st element and the following Information IEC 60870-5-101, 7.3.1.15 PIXIT
Integrated totals
Elements are identified by numbers incrementing continuously by +1 from this offset
(see IEC 60870-5-101, 7.2.2.1)
5.3.3.152 COT as defined in the attached PICS IEC 60870-5-101, 7.3.1.15 PICS, 9.5
31 31
5.3.3.153 BC
...








Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.
Loading comments...