Programmable controllers – Part 3: Programming languages

IEC 61131-3:2025 specifies the syntax and semantics of programming languages for programmable controllers as defined in IEC 61131-1.
This document specifies the syntax and semantics of a unified suite of programming languages for programmable controllers (PCs). This suite consists of the textual language structured text (ST), and the graphical languages, ladder diagram (LD) and function block diagram (FBD).
An additional set of graphical and equivalent textual elements named sequential function chart (SFC) is defined for structuring the internal organization of programs and function blocks. Also, configuration elements are defined which support the installation of programmable controller programs into programmable controller systems.
In addition, features are defined which facilitate communication among programmable controllers and other components of automated systems.
This edition includes the following significant technical changes with respect to the previous edition:
a) inclusion of UTF-8 strings and their associated functions;
b) Annex B contains a comprehensive list of features that have been added, removed or deprecated in comparison to IEC 61131-3:2013.

Automates programmables - Partie 3: Langages de programmation

IEC 61131-3: 2025 spécifie la syntaxe et la sémantique des langages de programmation utilisés pour les automates programmables tels que définis dans l’IEC 61131-1.
Le présent document spécifie la syntaxe et la sémantique d’une suite unifiée de langages de programmation utilisés pour les automates programmables (AP). Cette suite est constituée du langage textuel ST (Structured Text) et des langages graphiques LD (Ladder Diagram) et FBD (Function Block Diagram).
Un autre ensemble d’éléments graphiques et textuels équivalents appelé SFC (Sequential Function Chart) est défini pour structurer l’organisation interne des programmes et des blocs fonctionnels. Des éléments de configuration qui prennent en charge l’installation des programmes pour automate programmable dans des systèmes d’automate programmable, sont également définis.
De plus, des caractéristiques sont définies pour faciliter la communication entre les automates programmables et les autres composants des systèmes automatisés.
Cette édition inclut les modifications techniques majeures suivantes par rapport à l’édition précédente:
a) inclusion des chaînes UTF-8 et de leurs fonctions associées;
b) l’Annexe B contient une liste complète des fonctionnalités qui ont été ajoutées, supprimées ou déconseillées par rapport à l’IEC 61131-3:2013.

General Information

Status
Published
Publication Date
21-May-2025
Current Stage
PPUB - Publication issued
Start Date
22-May-2025
Completion Date
13-Jun-2025
Ref Project

Relations

Standard
IEC 61131-3:2025 - Programmable controllers – Part 3: Programming languages Released:22. 05. 2025 Isbn:9782832704363
English and French language
518 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)


IEC 61131-3 ®
Edition 4.0 2025-05
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Programmable controllers –
Part 3: Programming languages
Automates programmables –
Partie 3: Langages de programmation
ICS 25.040.40, 35.240.50 ISBN 978-2-8327-0436-3

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 l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
questions sur le copyright de l'IEC 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 l'IEC de votre pays de résidence.

IEC Secretariat Tel.: +41 22 919 02 11
3, rue de Varembé info@iec.ch
CH-1211 Geneva 20 www.iec.ch
Switzerland
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 corrigendum or an amendment might have been published.

IEC publications search - IEC Products & Services Portal - products.iec.ch
webstore.iec.ch/advsearchform Discover our powerful search engine and read freely all the
The advanced search enables to find IEC publications by a publications previews, graphical symbols and the glossary.
variety of criteria (reference number, text, technical With a subscription you will always have access to up to date
committee, …). It also gives information on projects, content tailored to your needs.
replaced and withdrawn publications.
Electropedia - www.electropedia.org
IEC Just Published - webstore.iec.ch/justpublished The world's leading online dictionary on electrotechnology,
Stay up to date on all new IEC publications. Just Published containing more than 22 500 terminological entries in English
details all new publications released. Available online and and French, with equivalent terms in 25 additional languages.
once a month by email. Also known as the International Electrotechnical Vocabulary
(IEV) online.
IEC Customer Service Centre - webstore.iec.ch/csc
If you wish to give us your feedback on this publication or
need further assistance, please contact the Customer
Service Centre: sales@iec.ch.
A propos de l'IEC
La Commission Electrotechnique Internationale (IEC) 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 IEC
Le contenu technique des publications IEC est constamment revu. Veuillez vous assurer que vous possédez l’édition la
plus récente, un corrigendum ou amendement peut avoir été publié.

Recherche de publications IEC -  IEC Products & Services Portal - products.iec.ch
webstore.iec.ch/advsearchform Découvrez notre puissant moteur de recherche et consultez
La recherche avancée permet de trouver des publications gratuitement tous les aperçus des publications, symboles
IEC en utilisant différents critères (numéro de référence, graphiques et le glossaire. Avec un abonnement, vous aurez
texte, comité d’études, …). Elle donne aussi des toujours accès à un contenu à jour adapté à vos besoins.
informations sur les projets et les publications remplacées
ou retirées. Electropedia - www.electropedia.org

Le premier dictionnaire d'électrotechnologie en ligne au
IEC Just Published - webstore.iec.ch/justpublished monde, avec plus de 22 500 articles terminologiques en
Restez informé sur les nouvelles publications IEC. Just anglais et en français, ainsi que les termes équivalents
Published détaille les nouvelles publications parues. dans 25 langues additionnelles. Egalement appelé
Disponible en ligne et une fois par mois par email. Vocabulaire Electrotechnique International (IEV) en ligne.

Service Clients - webstore.iec.ch/csc
Si vous désirez nous donner des commentaires sur cette
publication ou si vous avez des questions contactez-
nous: sales@iec.ch.
– 2 – IEC 61131-3:2025 © IEC 2025
CONTENTS
FOREWORD . 7
1 Scope . 9
2 Normative references . 9
3 Terms and definitions . 9
4 Architectural models . 17
4.1 Software model . 17
4.2 Communication model . 19
4.3 Programming model . 20
5 Compliance . 22
5.1 General . 22
5.2 Feature tables . 22
5.3 Implementer’s compliance statement . 22
6 Common elements . 24
6.1 Use of printed characters . 24
6.1.1 Character set. 24
6.1.2 Identifiers . 24
6.1.3 Keywords . 25
6.1.4 Use of white space . 25
6.1.5 Comments . 25
6.2 Pragma. 26
6.3 Literals – External representation of data . 26
6.3.1 General. 26
6.3.2 Numeric literals and string literals . 26
6.3.3 Character string literals . 28
6.3.4 Duration literal . 31
6.3.5 Date and time of day literal . 31
6.4 Data types . 32
6.4.1 General. 32
6.4.2 Elementary data types (BOOL, INT, REAL, STRING, etc.) . 32
6.4.3 Generic data types . 36
6.4.4 User-defined data types . 37
6.5 Variables . 51
6.5.1 Declaration and initialization of variables . 51
6.5.2 Variable sections . 54
6.5.3 Variable length ARRAY variables . 57
6.5.4 Constant variables . 59
6.5.5 Directly represented variables ( % ) . 59
6.5.6 Retentive variables (RETAIN, NON_RETAIN) . 62
6.6 Program organization units (POUs) . 63
6.6.1 Common features for POUs . 63
6.6.2 Functions . 77
6.6.3 Function blocks. 113
6.6.4 Programs . 132
6.6.5 Classes. 134
6.6.6 Interface . 155
6.6.7 Object-oriented features for function block types . 165

6.6.8 Polymorphism . 171
6.7 Sequential function chart (SFC) elements. 174
6.7.1 General. 174
6.7.2 Steps . 175
6.7.3 Transitions . 176
6.7.4 Actions . 179
6.7.5 Rules of evolution . 187
6.8 Configuration elements . 195
6.8.1 General. 195
6.8.2 Tasks . 200
6.9 Synchronization of concurrent execution . 205
6.9.1 General. 205
6.9.2 Mutex . 206
6.9.3 Object-oriented mutex . 208
6.9.4 Semaphore. 209
6.9.5 Object-oriented semaphore . 211
6.10 Namespaces . 211
6.10.1 General. 211
6.10.2 Declaration . 212
6.10.3 Usage . 217
6.10.4 Namespace directive USING . 218
7 Textual languages . 221
7.1 Common elements . 221
7.2 Structured text (ST) . 221
7.2.1 General. 221
7.2.2 Expressions . 221
7.2.3 Statements . 223
8 Graphical languages . 229
8.1 Common elements . 229
8.1.1 General. 229
8.1.2 Representation of variables and instances . 229
8.1.3 Representation of lines and blocks . 231
8.1.4 Direction of flow in networks . 232
8.1.5 Evaluation of networks . 233
8.1.6 Execution control elements . 234
8.2 Ladder diagram (LD) . 235
8.2.1 General. 235
8.2.2 Power rails .
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.