IEC 61131-5:2000
(Main)Programmable controllers - Part 5: Communications
Programmable controllers - Part 5: Communications
IEC 61131-5:2000 specifies communication aspects of a programmable controller. It specifies from the viewpoint of a PC how any device can communicate with a PC as a server and how a PC can communicate with any device. In particular, it specifies the behavior of the PC as it provides services on behalf of other devices and the services the PC application program can request from other devices. This bilingual version (2012-08) corresponds to the monolingual English version, published in 2000-11.
This publication is to be read in conjunction with the IEC 61131 series.
Automates programmables - Partie 5: Communications
La CEI 61131-5:2000 spécifie les aspects des automates programmables (AP) relatifs à la communication. Elle spécifie, du point de vue d'un AP, la manière dont chaque périphérique peut communiquer avec un AP en tant que serveur et la manière dont l'AP peut communiquer avec chaque périphérique. Elle spécifie, en particulier, le comportement de l'AP lorsqu'il fournit des services pour le compte d'autres périphériques et les services que le programme application de l'AP peut demander aux autres périphériques. La présente version bilingue (2012-08) correspond à la version anglaise monolingue publiée en 2000-11.
Cette publication doit être lue conjointement avec la série CEI 61131.
General Information
Buy Standard
Standards Content (Sample)
INTERNATIONAL IEC
STANDARD
61131-5
First edition
2000-11
Programmable controllers –
Part 5:
Communications
Automates programmables –
Partie 5:
Communications
Reference number
Publication numbering
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.
Consolidated editions
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.
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/catlg-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@iec.ch
Tel: +41 22 919 02 11
Fax: +41 22 919 03 00
INTERNATIONAL IEC
STANDARD
61131-5
First edition
2000-11
Programmable controllers –
Part 5:
Communications
Automates programmables –
Partie 5:
Communications
IEC 2000 Copyright - all rights reserved
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 the publisher.
International Electrotechnical Commission 3, rue de Varembé Geneva, Switzerland
Telefax: +41 22 919 0300 e-mail: inmail@iec.ch IEC web site http://www.iec.ch
Commission Electrotechnique Internationale
PRICE CODE
XD
International Electrotechnical Commission
For price, see current catalogue
– 2 – 61131-5 IEC:2000(E)
CONTENTS
Page
FOREWORD . 6
Clause
1 Scope . 8
2 Normative references . 8
3 Definitions. 9
4 Symbols and abbreviations. 11
5 Models . 11
5.1 PC network communication model. 11
5.2 PC functional model . 12
5.3 PC hardware model. 14
5.4 Software model . 14
6 PC communication services. 15
6.1 PC subsystems and their status . 15
6.2 Application specific functions. 22
7 PC communication function blocks . 28
7.1 Overview of the communication function blocks . 28
7.2 Semantic of communication FB parameters. 29
7.3 Device verification. 34
7.4 Polled data acquisition . 38
7.5 Programmed data acquisition . 41
7.6 Parametric control. 51
7.7 Interlocked control . 54
7.8 Programmed alarm report . 61
7.9 Connection management. 69
7.10 Example for the use of communication function blocks . 73
8 Compliance and implementer specific features and parameters . 76
8.1 Compliance. 76
8.2 Implementation specific features and parameters . 77
Annex A (normative) Mapping to ISO/IEC 9506-5. 78
Annex B (normative) PC behavior using ISO/IEC 9506-2. 98
Figure 1 – Scope of this part of IEC 61131. 8
Figure 2 – PC communication model. 12
Figure 3 – Programmable controller functional model . 13
Figure 4 – Programmable controller hardware model. 14
Figure 5 – PC software model. 15
Figure 6 – Programmable controller power supply . 19
Figure 7 – Type description of status information . 21
Figure 8 – Interlocked control timeline. 24
Figure 9 – Function REMOTE_VAR . 31
61131-5 IEC:2000(E) – 3 –
Figure 10 – Principle of status signalling . 32
Figure 11 – Timing diagram of the ERROR and STATUS outputs . 32
Figure 12 – STATUS function block . 34
Figure 13 – USTATUS function block . 35
Figure 14 – Timing diagram of the STATUS function block . 35
Figure 15 – State diagram of STATUS function block . 36
Figure 16 – State diagram of USTATUS function block. 37
Figure 17 – READ function block . 39
Figure 18 – Timing diagram of READ function block. 39
Figure 19 – State diagram of READ function block . 40
Figure 20 – Programmed data acquisition data flow . 41
Figure 21 – USEND function block . 42
Figure 22 – URCV function block . 42
Figure 23 – Timing diagram of USEND and URCV function blocks . 43
Figure 24 – State diagram of USEND function block. 43
Figure 25 – State diagram of URCV function block . 45
Figure 26 – BSEND function block . 47
Figure 27 – BRCV function block . 48
Figure 28 – Timing diagram of BSEND and BRCV function blocks. 48
Figure 29 – State diagram of BSEND function block. 49
Figure 30 – State diagram of BRCV function block . 50
Figure 31 – WRITE function block. 52
Figure 32 – Timing diagram of WRITE function block . 53
Figure 33 – State diagram of WRITE function block . 53
Figure 34 – SEND function block . 55
Figure 35 – RCV function block. 56
Figure 36 – Timing diagram of SEND and RCV function blocks . 57
Figure 37 – State diagram of SEND function block . 58
Figure 38 – State diagram of RCV function block . 60
Figure 39 – NOTIFY function block . 62
Figure 40 – ALARM function block . 63
Figure 41 – Timing diagram of ALARM function block . 64
Figure 42 – State diagram of NOTIFY function block . 65
Figure 43 – State diagram of ALARM function block. 67
Figure 44 – CONNECT function block . 69
Figure 45 – Timing diagram of CONNECT function block . 70
Figure 46 – State diagram of CONNECT function block. 71
Figure 47 – Example in function block diagram language . 76
Table 1 – Status presenting entities . 16
Table 2 – PC summary status . 17
Table 3 – Status of I/O subsystem . 18
Table 4 – Status of processing unit . 18
– 4 – 61131-5 IEC:2000(E)
Table 5 – Status of power supply . 19
Table 6 – Status of memory. 19
Table 7 – Status of communication subsystem . 20
Table 8 – Status of implementer specific subsystem . 20
Table 9 – Presentation of status information . 21
Table 10 – Device verification features . 23
Table 11 – Data acquisition features . 23
Table 12 – Control features . 24
Table 13 – Alarm reporting features . 25
Table 14 – Startable and stoppable units . 25
Table 15 – Meaning of I/O State . 26
Table 16 – I/O state. 26
Table 17 – Execution and I/O control features. 26
Table 18 – Loadable units. 27
Table 19 – Application program transfer features . 27
Table 20 – Connection management features . 28
Table 21 – Overview of the communication function blocks . 28
Table 22 – Semantic of communication FB parameters . 30
Table 23 – Values of the SCOPE parameter. 31
...
IEC 61131-5 ®
Edition 1.0 2000-11
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Programmable controllers –
Part 5: Communications
Automates programmables –
Partie 5: Communications
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.
Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite ni
utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie et les
microfilms, sans l'accord écrit de la CEI ou du Comité national de la CEI du pays du demandeur.
Si vous avez des questions sur le copyright de la CEI ou si vous désirez obtenir des droits supplémentaires sur cette
publication, utilisez les coordonnées ci-après ou contactez le Comité national de la CEI de votre pays de résidence.
IEC Central Office Tel.: +41 22 919 02 11
3, rue de Varembé Fax: +41 22 919 03 00
CH-1211 Geneva 20 info@iec.ch
Switzerland 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.
Useful links:
IEC publications search - www.iec.ch/searchpub Electropedia - www.electropedia.org
The advanced search enables you to find IEC publications The world's leading online dictionary of electronic and
by a variety of criteria (reference number, text, technical electrical terms containing more than 30 000 terms and
committee,…). definitions in English and French, with equivalent terms in
It also gives information on projects, replaced and additional languages. Also known as the International
withdrawn publications. Electrotechnical Vocabulary (IEV) on-line.
IEC Just Published - webstore.iec.ch/justpublished Customer Service Centre - webstore.iec.ch/csc
Stay up to date on all new IEC publications. Just Published If you wish to give us your feedback on this publication
details all new publications released. Available on-line and or need further assistance, please contact the
also once a month by email. Customer Service Centre: csc@iec.ch.
A propos de la CEI
La Commission Electrotechnique Internationale (CEI) est la première organisation mondiale qui élabore et publie des
Normes internationales pour tout ce qui a trait à l'électricité, à l'électronique et aux technologies apparentées.
A propos des publications CEI
Le contenu technique des publications de la CEI est constamment revu. Veuillez vous assurer que vous possédez
l’édition la plus récente, un corrigendum ou amendement peut avoir été publié.
Liens utiles:
Recherche de publications CEI - www.iec.ch/searchpub Electropedia - www.electropedia.org
La recherche avancée vous permet de trouver des Le premier dictionnaire en ligne au monde de termes
publications CEI en utilisant différents critères (numéro de électroniques et électriques. Il contient plus de 30 000
référence, texte, comité d’études,…). termes et définitions en anglais et en français, ainsi que
Elle donne aussi des informations sur les projets et les les termes équivalents dans les langues additionnelles.
publications remplacées ou retirées. Egalement appelé Vocabulaire Electrotechnique
International (VEI) en ligne.
Just Published CEI - webstore.iec.ch/justpublished
Service Clients - webstore.iec.ch/csc
Restez informé sur les nouvelles publications de la CEI.
Just Published détaille les nouvelles publications parues. Si vous désirez nous donner des commentaires sur
Disponible en ligne et aussi une fois par mois par email. cette publication ou si vous avez des questions
contactez-nous: csc@iec.ch.
IEC 61131-5 ®
Edition 1.0 2000-11
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Programmable controllers –
Part 5: Communications
Automates programmables –
Partie 5: Communications
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
PRICE CODE
INTERNATIONALE
CODE PRIX XD
ICS 25.040.40; 35.240.50 ISBN 978-2-83220-262-3
– 2 – 61131-5 IEC:2000
CONTENTS
FOREWORD . 6
1 Scope . 8
2 Normative references. 8
3 Definitions . 9
4 Symbols and abbreviations . 11
5 Models . 11
5.1 PC network communication model . 11
5.2 PC functional model . 12
5.3 PC hardware model . 14
5.4 Software model. 14
6 PC communication services . 15
6.1 PC subsystems and their status . 15
6.2 Application specific functions . 22
7 PC communication function blocks . 28
7.1 Overview of the communication function blocks . 28
7.2 Semantic of communication FB parameters . 29
7.3 Device verification . 34
7.4 Polled data acquisition . 38
7.5 Programmed data acquisition . 41
7.6 Parametric control . 51
7.7 Interlocked control . 54
7.8 Programmed alarm report . 61
7.9 Connection management . 69
7.10 Example for the use of communication function blocks . 73
8 Compliance and implementer specific features and parameters . 76
8.1 Compliance . 76
8.2 Implementation specific features and parameters . 77
Annex A (normative) Mapping to ISO/IEC 9506-5 . 78
Annex B (normative) PC behavior using ISO/IEC 9506-2 . 98
Figure 1 – Scope of this part of IEC 61131 . 8
Figure 2 – PC communication model . 12
Figure 3 – Programmable controller functional model . 13
Figure 4 – Programmable controller hardware model . 14
Figure 5 – PC software model . 15
Figure 6 – Programmable controller power supply . 19
Figure 7 – Type description of status information . 21
Figure 8 – Interlocked control timeline . 24
Figure 9 – Function REMOTE_VAR . 31
Figure 10 – Principle of status signalling . 32
Figure 11 – Timing diagram of the ERROR and STATUS outputs . 32
Figure 12 – STATUS function block . 34
61131-5 IEC:2000 – 3 –
Figure 13 – USTATUS function block . 35
Figure 14 – Timing diagram of the STATUS function block . 35
Figure 15 – State diagram of STATUS function block . 36
Figure 16 – State diagram of USTATUS function block . 37
Figure 17 – READ function block . 39
Figure 18 – Timing diagram of READ function block . 39
Figure 19 – State diagram of READ function block . 40
Figure 20 – Programmed data acquisition data flow . 41
Figure 21 – USEND function block . 42
Figure 22 – URCV function block . 42
Figure 23 – Timing diagram of USEND and URCV function blocks . 43
Figure 24 – State diagram of USEND function block . 43
Figure 25 – State diagram of URCV function block . 45
Figure 26 – BSEND function block . 47
Figure 27 – BRCV function block . 47
Figure 28 – Timing diagram of BSEND and BRCV function blocks . 48
Figure 29 – State diagram of BSEND function block . 49
Figure 30 – State diagram of BRCV function block . 50
Figure 31 – WRITE function block . 52
Figure 32 – Timing diagram of WRITE function block . 53
Figure 33 – State diagram of WRITE function block . 53
Figure 34 – SEND function block . 55
Figure 35 – RCV function block . 56
Figure 36 – Timing diagram of SEND and RCV function blocks . 57
Figure 37 – State diagram of SEND function block . 58
Figure 38 – State diagram of RCV function block . 60
Figure 39 – NOTIFY function block . 62
Figure 40 – ALARM function block . 63
Figure 41 – Timing diagram of ALARM function block . 64
Figure 42 – State diagram of NOTIFY function block . 65
Figure 43 – State diagram of ALARM function block . 67
Figure 44 – CONNECT function block . 69
Figure 45 – Timing diagram of CONNECT function block . 70
Figure 46 – State diagram of CONNECT function block . 71
Figure 47 – Example in function block diagram language . 76
Table 1 – Status presenting entities . 16
Table 2 – PC summary status .
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.