IEC TR 61131-4:2004
(Main)Programmable controllers - Part 4: User guidelines
Programmable controllers - Part 4: User guidelines
introduces the end-users of Programmable Controller (PLC) to the IEC 61131 series, and to assist the end-users in their selection and specification of their PLC equipment according to the IEC 61131 series. This user guideline has as its main audience PLC end-users.
General Information
Standards Content (Sample)
TECHNICAL IEC
REPORT TR 61131-4
Second edition
2004-07
Programmable controllers –
Part 4:
User guidelines
Reference number
IEC/TR 61131-4:2004(E)
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/searchpub) 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/online_news/ justpub)
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
TECHNICAL IEC
REPORT TR 61131-4
Second edition
2004-07
Programmable controllers –
Part 4:
User guidelines
© IEC 2004 ⎯ 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é, PO Box 131, CH-1211 Geneva 20, Switzerland
Telephone: +41 22 919 02 11 Telefax: +41 22 919 03 00 E-mail: inmail@iec.ch Web: www.iec.ch
PRICE CODE
Commission Electrotechnique Internationale XF
International Electrotechnical Commission
ɆɟɠɞɭɧɚɪɨɞɧɚɹɗɥɟɤɬɪɨɬɟɯɧɢɱɟɫɤɚɹɄɨɦɢɫɫɢɹ
For price, see current catalogue
– 2 – TR 61131-4 © IEC:2004(E)
CONTENTS
FOREWORD.5
INTRODUCTION.7
1 General .8
1.1 Scope and object.8
1.2 Normative references .9
1.3 Use of this report.9
2 Terms and definitions .10
3 General recommendations for installation.11
3.1 Environmental conditions .11
3.2 Field wiring.11
3.3 Electromagnetic compatibility .12
3.4 User system markings .13
4 PLC in functional safety applications .13
4.1 Functional safety and safety-related-system concept.13
4.2 Using a PLC in a safety-related application .15
4.3 Requirements on PLCs in a safety-related system.16
4.4 Integration of PLC into a safety-related system .16
Annex A (informative) Overview of normative parts of IEC 61131.19
A.1 Overview of IEC 61131-1.19
A.2 Overview of IEC 61131-2.26
A.3 Overview of IEC 61131-3.59
A.4 (blank).88
A.5 Overview of IEC 61131-5.88
A.6 (blank).100
A.7 Overview of IEC61131-7.100
A.8 (blank).107
Annex B (informative) Conformity to IEC 61131 and product certification .108
B.1 General .108
B.2 Conformity to standards .108
B.3 Declaration of conformity and certification .109
B.4 The inter-relation of standards to laws in European Community.109
B.5 CE-marking of PLCs in the European Union .111
B.6 Transition periods.113
B.7 Other juristictions . 114
B.8 Reference documents.115
Annex C (informative) Use of PLC programming languages and examples.116
C.1 Preamble.116
C.2 Advance planning .116
C.3 Structure and organization .117
C.4 Use of PLC languages.120
TR 61131-4 © IEC:2004(E) – 3 –
C.5 User Defined Function Block (DFB) .127
C.6 Language implementation.130
Figure 1 – Object of user guidelines.8
Figure 2 – SRS in risk reduction concept .14
Figure 3 – Event tree analysis for deployment of SRS.18
Figure A.1 – Basic functional structure of a PLC system .21
Figure A.2 – PLC hardware model .22
Figure A.3 – Typical interface/port diagram of a PLC system .23
Figure A.4 – Type test EUT configuration.32
Figure A.5 – Digital I/O parameters.35
Figure A.6 – Immunity zones.46
Figure A.7 – Programmable Controller System (PLC system).59
Figure A.8 – Software model.62
Figure A.9 – Combination of programmable controller language elements .64
Figure A.10 – Examples of function usage .69
Figure A.11 – Function block instantiation examples.70
Figure A.12 – Sequential function chart .71
Figure A.13 – Function block and program declarations for configuration example.79
Figure A.14 – The four programming languages.82
Figure A.15 – Boolean OR examples .86
Figure A.16 – Programming elements of Function Block Diagram language .87
Figure A.17 – Top-down and bottom-up programming .88
Figure A.18 – Scope of IEC 61131-5.88
Figure A.19 – Relationship of the communication model to IEC 61131-2 and IEC 61131-3 .90
Figure A.20 – Programmable controller communication model .91
Figure A.21 – Example of communication control in FBD language .99
Figure A.22 – Example of a fuzzy control in FBD program.101
Figure A.23 – Example of ramp curve membership functions .102
Figure A.24 – Defuzzification program block .102
Figure A.25 – Example of singleton terms.102
Figure C.1 – Program structure overview .118
Figure C.2 – Program structure with detail .119
Figure C.3 – The structured program plan for brewing process automation with various
languages.121
Figure C.4 – Example of a program in IL language.122
Figure C.5 – Example of a program in ST language .123
Figure C.6 – Example of a control program in LD language.124
Figure C.7 – An example of a control program in FBD language .125
Figure C.8 – A control program in SFC .126
Figure C.9 – A DFB for valve control.127
Figure C.10 – DFB for valve actuation .128
Figure C.11 – DFB for alarm actuation .129
– 4 – TR 61131-4 © IEC:2004(E)
Table 1 – Environmental conditions .11
Table 2 – Installation rules: earthing measures .12
Table 3 – Installation rules: EMC .12
Table 4 – SIL of demand mode safety functions.14
Table 5 – SIL of continuous mode safety functions .14
Table A.1 – Summary of programmable functions .24
Table A.2 – General conditions for tests .32
Table A.3 – Operating ambient air temperature of PLC systems .33
Table A.4 – Emission limits.45
Table A.5 – Criteria to prove the performance of a PLC-system against EMC
disturbances .47
Table A.6 – Voltage drops and interruptions .47
Table A.7 – Shock protection requirements for open and enclosed equipment .50
Table A.8 – Temperature limits .52
Table A.9 – Data type declaration features .67
Table A.10 – Location and size prefix features for directly represented variables.67
Table A.11 – Variable usage.68
Table A.12 – Examples of function block I/O variable usage .
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.