NORME
INTERNATIONALE
INTERNATIONAL
STANDARD
CEI
IEC
62056-21
Premiere edition
First edition
2002-05
Equipements de mesure de I'energie electrique -
Echange des donnees pour la lecture des
compteurs, le controle des tarifs et de la charge
Partie 21:
Echange des donnees directes en local
Electricity metering -
Data exchange for meter reading,
tariff and load control -
Part 21:
Direct local data exchange
Numero de reference
Reference number
CEI/IEC 62056-21:2002
Numerotation des publications
Publication numbering
Depuis le 1er Janvier 1997. les publications de la CEI
sont numerotees a partir de 60000. Ainsi. la CEI 34-1
devient la CEI 60034-1.
As from 1 January 1997 all IEC publications are
issued with a designation in the 60000 series. For
example. IEC 34-1 is now referred to as IEC 60034-1.
Editions consolidees
Consolidated editions
Les versions consolidees de certaines publications de la
CEI incorporant les amendements sont disponibles. Par
exemple, les numeros d'edition 1.0, 1.1 et 1.2 indiquent
respectivement la publication de base, la publication de
base incorporant I'amendement 1, et la publication de
base incorporant les amendements 1 et 2.
The IEC is now publishing consolidated versions of its
publications. For example, edition numbers 1.0, 1.1
and 1.2 refer, respectively, to the base publication,
the base publication incorporating amendment 1 and
the base publication incorporating amendments 1
and 2.
Informations supplementaires
sur les publications de la CEI
Le contenu technique des publications de la CEI est
constamment revu par la CEI afin qu'il reflete I'etat
actuel de la technique. Des renseignements relatifs a
cette publication, y compns sa validite, sont dispo-
nibles dans le Catalogue des publications de la CEI
(voir ci-dessous) en plus des nouvelles editions,
amendements et corrigenda. Des informations sur les
sujets a I'etude et I'avancement des travaux entrepris
par le comite d'etudes qui a elabore cette publication,
ainsi que la liste des publications parues, sont
egalement disponibles par I'intermediaire de:
• Site web de la CEI (www.iec.chl
• Catalogue des publications de la CEI
Le catalogue en ligne sur le site web de la CEI
(www.iec.ch/callq-f htm) vous permet de faire des
recherches en utilisant de nombreux criteres,
comprenant des recherches textuelles, par comite
d'etudes ou date de publication. Des informations
en ligne sont egalement disponibles sur les
nouvelles publications, les publications rempla-
cees ou retirees, ainsi que sur les corrigenda.
IEC Just Published
Ce resume des dernieres publications parues
(www.iec.ch/JP.htm) est aussi disponible par
courrier electronique. Veuillez prendre contact
avec le Service client (voir ci-dessous) pour plus
d'informations.
• Service clients
Si vous avez des questions au sujet de cette
publication ou avez besoin de renseignements
supplementaires, prenez contact avec le Service
clients:
Email: custserv(g)iec.ch
Tel:
+41 22 919 02 11
Fax:
+41 22 919 03 00
Further information on IEC publications
The technical content of IEC publications is kept
under constant review by the IEC. thus ensuring that
the content reflects current technology. Information
relating to this publication, including its validity, is
available in the IEC Catalogue of publications
(see below) in addition to new editions, amendments
and corrigenda. Information on the subjects under
consideration and work in progress undertaken by the
technical committee which has prepared this
publication, as well as the list of publications issued,
is also available from the following:
• IEC Web Site (www.iec.ch)
• Catalogue of IEC publications
The on-line catalogue on the IEC web site
(www.iec.ch/catlq-e.htm) enables you to search
by a variety of criteria including text searches,
technical committees and date of publication. On-
line information Is also available on recently
issued publications, withdrawn and replaced
publications, as well as corrigenda.
IEC Just Published
This summary of recently issued publications
(www.iec.ch/JP.htm) is also available by email.
Please contact the Customer Service Centre (see
below) for further information.
• Customer Service Centre
If you have any questions regarding this
publication or need further assistance, please
contact the Customer Service Centre:
Email: custserv(S)iec.ch
Tel: +41229190211
Fax:
+41 22 919 03 00
62056-21 © IEC:2002 -3-
CONTENTS
FOREWORD 9
INTRODUCTION 13
1 Scope 15
2 Normative references 15
3 Terms, definitions and abbreviations 17
3.1 Terms and definitions 17
3.2 Abbreviations 19
4 Physical properties 19
4.1 Electrical current loop interface 19
4.2 Electrical interface V.24/V.28 23
4.3 Optical interface 25
4.3.1 Construction of the reading head 25
4.3.2 Characteristic data of the magnet 25
4.3.3 Arrangement of components in the tariff device 29
4.3.4 Alignment 29
4.3.5 Optical characteristics 29
5 Character transmission 33
5.1 Type of transmission 33
5.2 Transmission speed 33
5.3 Signal quality 33
5.4 Character format 33
5.5 Character code 33
5.6 Character security 33
6 Data transmission protocol 35
6.1 General 35
6.2 Calculation of the block check character 35
6.3 Message definitions 37
6.3.1 Request message 37
6.3.2 Identification message ^ 37
6.3.3 Acknowledgement/option select message 37
6.3.4 Data message (except in programming mode) 37
6.3.5 Acknowledgement message 37
6.3.6 Repeat-request message 37
6.3.7 Programming command message 39
6.3.8 Programming command message using optional partial blocks 39
6.3.9 Data message (programming mode) 39
6.3.10 Data message (programming mode) using optional partial blocks 39
6.3.11 Error message (programming mode) 39
6.3.12 Break message (programming mode) 39
6.3.13 Block message (other protocols) 39
6.3.14 Explanations of message contents 41
62056-21 © IEC:2002 -5-
6.4 Communication modes 47
6.4.1 Protocol mode A 47
6.4.2 Protocol mode B 49
6.4.3 Protocol mode C 53
6.4.4 Protocol mode D 61
6.4.5 Protocol mode E (other protocols) 61
6.4.6 Entering programming mode (unknown tariff device) 63
6.4.7 Partial block communication (optional, only in protocol mode C) 65
6.5 Syntax diagrams 71
6.5.1 Readout mode 73
6.5.2 Programming mode 75
6.6 Data set structure 77
Annex A (normative) Flow chart for direct local data exchange protocol, protocol mode C 81
Annex B (normative) Wake-up methods for battery-operated tariff devices 85
Annex C (informative) Formatted codes 89
Annex D (informative) Levels of access - system security 127
Annex E (normative) METERING HDLC protocol using protocol mode E for direct local
data exchange 129
Bibliography 137
Index 139
Figure 1 - Circuit diagrams '. 23
Figure 2 - Construction of the reading head 25
Figure 3 - Characteristic data of the magnet 27
Figure 4 - View into optical port 29
Figure 5 - Test arrangement for the transmitter 31
Figure 6 - Test arrangement for the receiver 31
Figure 7 - Setting up a block check character (example according to ISO/IEC 1155) 35
Figure 8 - Diagram protocol mode A 47
Figure 9 - Transmission protocol for protocol mode A 49
Figure 10 - Diagram protocol mode B 51
Figure 11 - Transmission protocol for protocol mode B 51
Figure 12 - Diagram protocol mode C 55
Figure 13 - Transmission protocol for protocol mode C giving data readout without
acknowledgement from the HHU 57
Figure 14 - Transmission protocol for protocol mode C giving data readout with
confirmation of the suggested baud rate 57
Figure 15 - Transmission protocol for protocol mode C giving data readout with rejection
of the suggested baud rate 59
Figure 16 - Transmission protocol for protocol mode C. Switching to programming mode
with acceptance of the suggested baud rate 59
62056-21 © IEC:2002 -7-
Figure 17 - Transmission protocol for protocol mode C. Switching to programming mode
with rejection of the suggested baud rate 59
Figure 18 - Diagram protocol mode D 61
Figure 19 - Transmission protocol for protocol mode D 61
Figure 20 - Diagram for entering programming mode 63
Figure 21 - Example of a partial block unformatted read 67
Figure 22 - Example of a partial block formatted write 69
Figure 23 - Example of a partial block formatted write (with errors) 71
Figure 24 - Syntax diagrams - readout mode 73
Figure 25 - Syntax diagrams - programming mode - command 75
Figure 26 - Syntax diagram - programming mode - answer 77
Figure 27 - Data set structure 77
Figure A.1 - Flow chart for direct local data exchange protocol, protocol mode C 81
Figure B.1 - The start sequence for battery-operated devices 85
Figure B.2 - Diagram for the start sequence of battery-operated devices by fast
wake-up mode 87
Figure C.1 - Example of channel types 91
Figure C.2 - Register coding diagram 97
Figure C.3 - Bit assignment for group data 111
Figure C.4 - Vector diagrams for quadrants I to IV 125
Figure E.1 - Entering protocol mode E (HDLC) 129
Figure E.2 - Flow chart and switchover to METERING HDLC in protocol mode E 131
Figure E.3 - Physical layer primitives 133
Figure E.4 - Physical layer primitives, simplified example with one mode change only 133
Table 1 - Electrical interface 19
Table 2 - Read, Write and Execute commands .. ...65