Professional Documents
Culture Documents
8-2005
PROGRAMMABLE
CONTROLLERS
PART 8: GUIDELINES FOR
THE APPLICATION AND
IMPLEMENTATION OF
PROGRAMMING
LANGUAGES
Programmable Controllers
Part 8: Guidelines for the Application
and Implementation of Programming Languages
Published by:
National Electrical Manufacturers Association
1300 North 17th Street, Suite 1752
Rosslyn, Virginia 22209
www.nema.org
Copyright 2005 by the National Electrical Manufacturers Association. All rights including
translation into other languages, reserved under the Universal Copyright Convention, the
Berne Convention for the Protection of Literary and Artistic Works, and the International and
Pan American Copyright Conventions.
NEMA IA 2.8-2005
Page i
CONTENTS
Page
Foreword ............................................................................................................................. ii
Referenced Standards .........................................................................................................iii
Amendments........................................................................................................................iv
IEC TR 61131-8 ................................................................................................................... 1
NEMA IA 2.8-2005
Page ii
Foreword
This Standards Publication is a NEMA Authorized Engineering Information adopted from IEC
TR 61131-8, Programmable ControllersPart 8: Guidelines for the Application and
Implementation of Programming Languages. IEC TR 61131-8 has been published by the
International Electrotechnical Commission as a Type 3 Technical Report.
This NEMA Standards Publication was supported and reviewed by the Programmable
Controller Technical Committee of the NEMA Automation Products and Systems Section. It
was approved in accordance with the bylaws of NEMA and supersedes applicable portions of
NEMA Standards Publication ICS 3-1988, Part 3-304.
This Standards Publication represents many years of direct NEMA member participation in
IEC Subcommittee 65B/Working Group 7, and reflects the input provided to the IEC from the
Programmable Controller Technical Committee.
NEMA Standards Publications are subject to periodic review. They are revised frequently to
reflect user input and to meet changing conditions and technical progress. Users should
secure the latest editions.
Proposed revisions to this Standards Publication should be submitted to:
Vice President, Technical Services
National Electrical Manufacturers Association
1300 North 17th Street, Suite 1752
Rosslyn, Virginia 22209
NEMA IA 2.8-2005
Page iii
Referenced Standards
This NEMA Standards Publication references standards published by the International
Electrotechnical Commission (IEC), the International Organization for Standardization (ISO),
and the National Fire Protection Association (NFPA). Copies of these standards are available
from:
American National Standards Institute
11 West 42nd Street
New York, NY 10036
NEMA IA 2.8-2005
Page iv
Amendments
IEC TR 61131-8, Programmable ControllersPart 8: Guidelines for the Application and
Implementation of Programming Languages, is adopted in its entirety.
Authorized Engineering Information
When the phrase national code or the like is used in IEC TR 61131-8, reference to
ANSI/NFPA 70, National Electrical Code, and other applicable codes is to be understood.
Authorized Engineering Information
Where a conflict exists between the provisions of IA 2.8 and other NEMA Standards
Publications, the provisions of IA 2.8 should take precedence in the area of programmable
controllers and their associated peripherals.
Authorized Engineering Information
TECHNICAL
REPORT
IEC
TR 61131-8
Second edition
2003-09
Programmable controllers
Part 8:
Guidelines for the application and implementation
of programming languages
Automates programmables
Partie 8:
Lignes directrices pour l'application et la mise en oeuvre
des langages de programmation
Reference number
IEC/TR 61131-8:2003(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.
TECHNICAL
REPORT
IEC
TR 61131-8
Second edition
2003-09
Programmable controllers
Part 8:
Guidelines for the application and implementation
of programming languages
Automates programmables
Partie 8:
Lignes directrices pour l'application et la mise en oeuvre
des langages de programmation
PRICE CODE
XD
TR 61131-8 IEC:2003(E)
CONTENTS
FOREWORD .......................................................................................................................... 6
INTRODUCTION .................................................................................................................... 8
1
General............................................................................................................................ 9
3.2
3.3
3.4
3.5
3.6
3.7
TR 61131-8 IEC:2003(E)
3.8
4.3
4.4
4.5
TR 61131-8 IEC:2003(E)
4.6
TR 61131-8 IEC:2003(E)
TR 61131-8 IEC:2003(E)
The main task of IEC technical committees is to prepare International Standards. However, a
technical committee may propose the publication of a technical report when it has collected
data of a different kind from that which is normally published as an International Standard, for
example state of the art.
IEC 61131-8, which is a technical report, has been prepared by subcommittee 65B: Devices,
of IEC technical committee 65: Industrial-process measurement and control.
This second edition cancels and replaces the first edition, published in 2000, and constitutes
a technical revision.
The main changes with respect to the previous edition are to make IEC 61131-8 consistent with
IEC 61131-3, 2nd edition.
TR 61131-8 IEC:2003(E)
Report on voting
65B/478/DTR
65B/492/RVC
Full information on the voting for the approval of this technical report 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.
The committee has decided that the contents of this publication will remain unchanged until
2008. At this date, the publication will be
reconfirmed;
withdrawn;
replaced by a revised edition, or
amended.
TR 61131-8 IEC:2003(E)
INTRODUCTION
This part of IEC 61131 is being issued as a technical report in order to provide guidelines for
the implementation and application of the programming languages defined in IEC 61131-3:
2003, second edition.
Its contents answer a number of frequently asked questions about the intended application
and implementation of the normative provisions of IEC 61131-3, second edition and about its
differences from IEC 61131-3:1993, first edition.
TR 61131-8 IEC:2003(E)
PROGRAMMABLE CONTROLLERS
Part 8: Guidelines for the application
and implementation of programming languages
1 General
1.1 Scope
This part of IEC 61131, which is a technical report, applies to the programming of programmable controller systems using the programming languages defined in IEC 61131-3. It also
provides guidelines for the implementation of these languages in programmable controller
systems and their programming support environments (PSEs).
IEC 61131-4 should be consulted for other aspects of the application of programmable
controller systems.
NOTE Neither IEC 61131-3 nor this technical report explicitly addresses safety issues of programmable controller
systems or their associated software. The various parts of IEC 61508 should be consulted for such considerations.
Function Block
FBD
LD
Ladder Diagram
IL
Instruction List
POU
PSE
SFC
ST
Structured Text