Programmable controllers - Part 10: PLC open XML exchange format

IEC 61131-10:2019 specifies an XML-based exchange format for the export and import of IEC 61131-3 projects. A complete IEC 61131-3 project implemented in an IEC 61131-3 environment can be transferred between different programming environments. It allows for the exchange of configuration elements, data types, and POUs written in: • the textual language, instruction list (IL), • the textual language, structured text (ST), • the graphical language, ladder diagram (LD), • the graphical language, function block diagram (FBD), and • sequential function chart (SFC). The exchange format is specified as a corresponding XML schema. The XML schema is an independent file with the .xsd extension and as such part of this specification. The specification of this schema is contained in Annex A. Annex B provides recommended schemata for extensions. An example XML document is given in Annex C. It is assumed that the reader of this document is familiar with XML technology.

Speicherprogrammierbare Steuerungen - Teil 10: XML-basiertes Austauschformat für Programme nach IEC 61131-3

Automates programmables - Partie 10: Format d'échange XML ouvert PLC

IEC 61131-10:2019 spécifie un format d'échange XML pour l'exportation et l'importation de projets IEC 61131-3. Un projet IEC 61131-3 complet mis en œuvre dans un environnement IEC 61131-3 peut être transféré entre différents environnements de programmation. Il permet l'échange d'éléments de configuration, de types de données et de POU écrits en: • langage textuel, liste d'instructions (IL), • langage textuel, texte structuré (ST), • langage graphique, diagramme à contacts (LD), • langage graphique, diagramme de bloc fonctionnel (FBD), et • diagramme fonctionnel séquentiel (SFC). Le format d'échange est spécifié sous la forme d'un schéma XML correspondant. Le schéma XML est un fichier indépendant portant l'extension .xsd et, en tant que tel, fait partie de la présente spécification. La spécification de ce schéma est donnée dans l'Annexe A. L'Annexe B donne les schémas conceptuels recommandés pour les extensions. Un exemple de document XML est donné à l'Annexe C. Par hypothèse, le lecteur du présent document maîtrise la technologie XML.

Programirljivi krmilniki - 10. del: PLC odprt XML format za izmenjavo (IEC 61131-10:2019)

Ta dokument določa format za izmenjavo, ki temelji na shemi XML, za izvoz in uvoz projektov IEC 61131-3. Celoten projekt IEC 61131-3, ki je izveden v okolju IEC 61131-3, je prenosljiv med različnimi programskimi okolji. Omogoča, da se izmenjava konfiguracijskih elementov, vrste podatkov in programske organizacijske enote (POU) zapišejo v: – tekstovni jezik, seznam z navodili (IL), – tekstovni jezik, strukturirano besedilo (ST), – grafični jezik, lestvični diagram (LD), – grafični jezik, funkcijski blokovni diagram (FBD) – sekvenčni funkcijski diagram (SFC). Format za izmenjavo je določen kot ustrezna shema XML. Shema XML je neodvisna datoteka s pripono .xsd in je tako del te specifikacije. Specifikacija te sheme je zajeta v dodatku A. V dodatku B so podane priporočene sheme za razširitve. Primer dokumenta XML je naveden v dodatku C. Domneva se, da je bralec tega dokumenta seznanjen z uporabo tehnologije XML.

General Information

Status
Published
Publication Date
11-Jul-2019
Technical Committee
Drafting Committee
Current Stage
6060 - Document made available
Due Date
12-Jul-2019
Completion Date
12-Jul-2019

Buy Standard

Standard
EN IEC 61131-10:2019 - POZOR: Del standarda IEC je datoteka zip: iec61131-10{ed1.0}. BARVE. Vodni prestisk do PDF-str 95, potem brez, ker se povsod prestavi na sredino strani.
English language
279 pages
sale 10% off
Preview
sale 10% off
Preview

e-Library read for
1 day

Standards Content (sample)

SLOVENSKI STANDARD
SIST EN IEC 61131-10:2019
01-november-2019

Programirljivi krmilniki - 10. del: PLC odprt XML format za izmenjavo (IEC 61131-

10:2019)
Programmable controllers - Part 10: PLC open XML exchange format (IEC 61131-
10:2019)
Speicherprogrammierbare Steuerungen - Teil 10: XML-basiertes Austauschformat für
Programme nach IEC 61131-3 (IEC 61131-10:2019)
Automates programmables - Partie 10: Format d'échange XML ouvert PLC (IEC 61131-
10:2019)
Ta slovenski standard je istoveten z: EN IEC 61131-10:2019
ICS:
25.040.40 Merjenje in krmiljenje Industrial process
industrijskih postopkov measurement and control
35.240.50 Uporabniške rešitve IT v IT applications in industry
industriji
SIST EN IEC 61131-10:2019 en,fr,de

2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST EN IEC 61131-10:2019
---------------------- Page: 2 ----------------------
SIST EN IEC 61131-10:2019
EUROPEAN STANDARD EN IEC 61131-10
NORME EUROPÉENNE
EUROPÄISCHE NORM
July 2019
ICS 25.040.40; 35.240.30; 35.240.50
English Version
Programmable controllers - Part 10: PLC open XML exchange
format
(IEC 61131-10:2019)

Automates programmables - Partie 10: Format d'échange Speicherprogrammierbare Steuerungen - Teil 10: XML-

XML ouvert PLC basiertes Austauschformat für Programme nach IEC 61131-
(IEC 61131-10:2019) 3
(IEC 61131-10:2019)

This European Standard was approved by CENELEC on 2019-05-29. CENELEC members are bound to comply with the CEN/CENELEC

Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration.

Up-to-date lists and bibliographical references concerning such national standards may be obtained on application to the CEN-CENELEC

Management Centre or to any CENELEC member.

This European Standard exists in three official versions (English, French, German). A version in any other language made by translation

under the responsibility of a CENELEC member into its own language and notified to the CEN-CENELEC Management Centre has the

same status as the official versions.

CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Croatia, Cyprus, the Czech Republic,

Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the

Netherlands, Norway, Poland, Portugal, Republic of North Macedonia, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland,

Turkey and the United Kingdom.
European Committee for Electrotechnical Standardization
Comité Européen de Normalisation Electrotechnique
Europäisches Komitee für Elektrotechnische Normung
CEN-CENELEC Management Centre: Rue de la Science 23, B-1040 Brussels

© 2019 CENELEC All rights of exploitation in any form and by any means reserved worldwide for CENELEC Members.

Ref. No. EN IEC 61131-10:2019 E
---------------------- Page: 3 ----------------------
SIST EN IEC 61131-10:2019
EN IEC 61131-10:2019 (E)
European foreword

The text of document 65B/1147/FDIS, future edition 1 of IEC 61131-10, prepared by SC 65B

"Measurement and control devices" of IEC/TC 65 "Industrial-process measurement, control and

automation" was submitted to the IEC-CENELEC parallel vote and approved by CENELEC as

EN IEC 61131-10:2019.
The following dates are fixed:

• latest date by which the document has to be implemented at national (dop) 2020-02-29

level by publication of an identical national standard or by endorsement

• latest date by which the national standards conflicting with the (dow) 2022-05-29

document have to be withdrawn

Attention is drawn to the possibility that some of the elements of this document may be the subject of

patent rights. CENELEC shall not be held responsible for identifying any or all such patent rights.

Endorsement notice

The text of the International Standard IEC 61131-10:2019 was approved by CENELEC as a European

Standard without any modification.
---------------------- Page: 4 ----------------------
SIST EN IEC 61131-10:2019
EN IEC 61131-10:2019 (E)
Annex ZA
(normative)
Normative references to international publications
with their corresponding European publications

The following documents are referred to in the text in such a way that some or all of their content

constitutes requirements of this document. For dated references, only the edition cited applies. For

undated references, the latest edition of the referenced document (including any amendments)

applies.

NOTE 1 Where an International Publication has been modified by common modifications, indicated by (mod), the relevant

EN/HD applies.

NOTE 2 Up-to-date information on the latest versions of the European Standards listed in this annex is available here:

www.cenelec.eu.
Publication Year Title EN/HD Year
IEC 61131-1 - Programmable controllers - Part 1: General EN 61131-1 -
information
IEC 61131-3 - Programmable controllers - Part 3: Programming EN 61131-3 -
languages
---------------------- Page: 5 ----------------------
SIST EN IEC 61131-10:2019
---------------------- Page: 6 ----------------------
SIST EN IEC 61131-10:2019
IEC 61131-10
Edition 1.0 2019-04
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
colour
inside
Programmable controllers –
Part 10: PLC open XML exchange format
Automates programmables –
Partie 10: Format d'échange XML ouvert PLC
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
INTERNATIONALE
ICS 25.040.40; 35.240.30; 35.240.50 ISBN 978-2-8322-6760-8

Warning! Make sure that you obtained this publication from an authorized distributor.

Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.

® Registered trademark of the International Electrotechnical Commission
Marque déposée de la Commission Electrotechnique Internationale
---------------------- Page: 7 ----------------------
SIST EN IEC 61131-10:2019
– 2 – IEC 61131-10:2019  IEC 2019
CONTENTS

FOREWORD ........................................................................................................................... 8

INTRODUCTION ................................................................................................................... 10

1 Scope ............................................................................................................................ 11

1.1 General ................................................................................................................. 11

1.2 Implementation specific parameters ...................................................................... 12

2 Normative references .................................................................................................... 13

3 Terms, definitions, abbreviated terms and acronyms ..................................................... 13

3.1 General terms and definitions ............................................................................... 13

3.2 Abbreviated terms ................................................................................................. 13

4 Overview of schema concepts ....................................................................................... 14

4.1 Schema versioning ............................................................................................... 14

4.2 Naming conventions.............................................................................................. 14

4.3 Coordinate system of graphical languages ............................................................ 14

4.4 Schema extension concepts .................................................................................. 17

5 Compliance ................................................................................................................... 18

5.1 General ................................................................................................................. 18

5.2 Feature tables ....................................................................................................... 18

5.3 Vendor's compliance statement ............................................................................. 18

6 Main schema element "Project" ..................................................................................... 19

6.1 General ................................................................................................................. 19

6.2 "FileHeader" ......................................................................................................... 19

6.3 "ContentHeader" ................................................................................................... 20

6.4 "Types" ................................................................................................................. 21

6.5 "Instances" ........................................................................................................... 21

6.5.1 General ("Configuration") ............................................................................... 21

6.5.2 "Resource" .................................................................................................... 22

6.5.3 "AccessVars" ................................................................................................. 25

6.5.4 "ConfigVars" .................................................................................................. 25

7 Abstract complex types .................................................................................................. 26

7.1 Purpose of abstract complex types ....................................................................... 26

7.2 Abstract complex types for data type specifications .............................................. 27

7.2.1 General ......................................................................................................... 27

7.2.2 "TypeSpecBase" ............................................................................................ 27

7.2.3 "InstantlyDefinableTypeSpecBase" ................................................................ 27

7.3 Abstract complex types for behaviour representations .......................................... 27

7.3.1 General ......................................................................................................... 27

7.3.2 "BehaviourRepresentationBase" .................................................................... 28

7.3.3 "ProgrammingLanguageBase" ....................................................................... 28

7.4 Abstract complex types for graphical objects......................................................... 28

7.4.1 General ......................................................................................................... 28

7.4.2 "IdentifiedObjectBase" ................................................................................... 30

7.4.3 "GraphicalObjectBase" .................................................................................. 30

7.4.4 "CommonObjectBase" ................................................................................... 31

7.4.5 "FbdObjectBase" ........................................................................................... 31

7.4.6 "LdObjectBase" ............................................................................................. 31

7.4.7 "SfcObjectBase" ............................................................................................ 32

---------------------- Page: 8 ----------------------
SIST EN IEC 61131-10:2019
IEC 61131-10:2019  IEC 2019 – 3 –

7.4.8 "NetworkBase" ............................................................................................... 32

7.5 Abstract complex types for textual constructs ....................................................... 33

7.5.1 General ......................................................................................................... 33

7.5.2 "TextualObjectBase" ...................................................................................... 34

7.5.3 "NamespaceContentBase" ............................................................................. 35

7.5.4 "TaskBase" .................................................................................................... 36

8 Namespace declaration ................................................................................................. 36

9 User-defined data type declaration ................................................................................ 37

9.1 "UserDefinedTypeDecl" ......................................................................................... 37

9.2 "ArrayTypeSpec" ................................................................................................... 37

9.3 "DirectlyDerivedTypeSpec" ................................................................................... 38

9.4 "EnumTypeSpec" .................................................................................................. 38

9.5 "EnumTypeWithNamedValueSpec" ....................................................................... 39

9.6 "StructTypeSpec" .................................................................................................. 39

9.7 "SubrangeTypeSpec" ............................................................................................ 40

9.8 "ReferenceTypeSpec" ........................................................................................... 40

9.9 "ElementaryType" ................................................................................................. 41

10 POU declaration ............................................................................................................ 41

10.1 "PouDecl" ............................................................................................................. 41

10.2 "Program" ............................................................................................................. 41

10.3 "FunctionBlock"..................................................................................................... 43

10.4 "Class" .................................................................................................................. 44

10.5 "Function" ............................................................................................................. 45

10.6 "Interface" ............................................................................................................. 46

10.7 "Action" ................................................................................................................. 46

10.8 "NamedTransition" ................................................................................................ 47

10.9 "MethodPrototype" ................................................................................................ 47

10.10 "Method" ............................................................................................................... 48

10.11 "ParameterSet" ..................................................................................................... 50

10.12 "VarListWithAccessSpec" ...................................................................................... 52

10.13 "AccessSpecifiers" ................................................................................................ 52

10.14 "Body"................................................................................................................... 52

10.15 "BodyWithoutSFC" ................................................................................................ 53

10.16 "Predicate" ............................................................................................................ 53

11 Variable declaration ....................................................................................................... 54

11.1 "VarList" ............................................................................................................... 54

11.2 "ExternalVarList" ................................................................................................... 55

11.3 "VariableDecl" ....................................................................................................... 55

11.4 "VariableDeclPlain" ............................................................................................... 56

11.5 "TypeRef" ............................................................................................................. 56

11.6 "Value" ................................................................................................................. 56

11.7 "AddressExpression" ............................................................................................. 57

11.8 "FixedAddressExpression" .................................................................................... 58

12 Behaviour representation ............................................................................................... 58

12.1 "IL" ....................................................................................................................... 58

12.2 "ST" ...................................................................................................................... 58

12.3 "FBD".................................................................................................................... 59

12.4 "FbdNetwork" ........................................................................................................ 59

---------------------- Page: 9 ----------------------
SIST EN IEC 61131-10:2019
– 4 – IEC 61131-10:2019  IEC 2019

12.5 "LD" ...................................................................................................................... 59

12.6 "LadderRung" ....................................................................................................... 60

12.7 "SFC".................................................................................................................... 60

13 Graphical behaviour representation ............................................................................... 60

13.1 General ................................................................................................................. 60

13.2 Common elements ................................................................................................ 61

13.2.1 "Comment" .................................................................................................... 61

13.2.2 "Connector" ................................................................................................... 61

13.2.3 "Continuation"................................................................................................ 62

13.2.4 "ActionBlocks" ............................................................................................... 62

13.3 FBD elements ....................................................................................................... 64

13.3.1 "Block" ........................................................................................................... 64

13.3.2 "graphicalFormalParameterCommon" ............................................................ 67

13.3.3 "DataSource" ................................................................................................. 67

13.3.4 "DataSink" ..................................................................................................... 68

13.3.5 "Unconnected" ............................................................................................... 68

13.3.6 "Jump" ........................................................................................................... 69

13.3.7 "Return" ......................................................................................................... 70

13.4 LD elements ......................................................................................................... 70

13.4.1 "LeftPowerRail" ............................................................................................. 70

13.4.2 "RightPowerRail" ........................................................................................... 71

13.4.3 "Coil" ............................................................................................................. 71

13.4.4 "Contact" ....................................................................................................... 72

13.4.5 "CompareContact" ......................................................................................... 73

13.5 SFC elements ....................................................................................................... 74

13.5.1 "Step" ............................................................................................................ 74

13.5.2 "Transition" .................................................................................................... 75

13.5.3 "SelectionDivergence" ................................................................................... 76

13.5.4 "SelectionConvergence" ................................................................................ 77

13.5.5 "SimultaneousDivergence" ............................................................................. 78

13.5.6 "SimultaneousConvergence" .......................................................................... 78

13.6 Connections .......................................................................................................... 79

13.6.1 General ......................................................................................................... 79

13.6.2 "ConnectionPointIn" ....................................................................................... 79

13.6.3 "Connection" .................................................................................................. 80

13.6.4 "FeedbackConnection" .................................................................................. 81

13.6.5 "ConnectionPointOut" .................................................................................... 81

14 Resource declaration ..................................................................................................... 82

14.1 "StandardTask" ..................................................................................................... 82

14.2 "ParameterAssignment" ........................................................................................ 82

15 Miscellaneous ................................................................................................................ 82

15.1 "XyDecimalValue" ................................................................................................. 82

15.2 "AddData" ............................................................................................................. 83

15.3 "TextBase" ............................................................................................................ 83

15.4 "SimpleText" ......................................................................................................... 83

15.5 "EdgeModifierType" .............................................................................................. 84

Annex A (normative) Formal XML exchange format schema definition ................................. 85

Annex B (informative) Recommended schemata ................................................................ 161

---------------------- Page: 10 ----------------------
SIST EN IEC 61131-10:2019
IEC 61131-10:2019  IEC 2019 – 5 –

B.1 General ............................................................................................................... 161

B.2 Recommended schemata to be used by "AddData" ............................................. 164

B.3 Recommended schemata to be used by abstract complex type ........................... 172

Annex C (informative) Example XML document .................................................................. 190

Bibliography ........................................................................................................................ 276

Figure 1 – Main overview of XML exchange format usage (example) .................................... 11

Figure 2 – Mapping coordinate information to the coordinate system .................................... 15

Figure 3 – Transforming position using the scaling information ............................................. 15

Figure 4 – Objects anchor points and object rectangles examples ........................................ 17

Figure 5 – Main schema element "Project" ............................................................................ 19

Figure 6 – Element "FileHeader" ........................................................................................... 20

Figure 7 – Element "ContentHeader" .................................................................................... 20

Figure 8 – Element "Types" .................................................................................................. 21

Figure 9 – Element "Instances" ............................................................................................. 22

Figure 10 – Element "Resource" ........................................................................................... 23

Figure 11 – Element "ProgramInstance" ................................................................................ 24

Figure 12 – Element "AccessVars" ........................................................................................ 25

Figure 13 – Element "ConfigVars" ......................................................................................... 26

Figure 14 – Extension relationship among complex types for data type specifications ........... 27

Figure 15 – Extension relationship among complex types for behaviour representations ....... 28

Figure 16 – Extension relationship among complex types for graphical objects ..................... 29

Figure 17 – Complex type "IdentifiedObjectBase" ................................................................. 30

Figure 18 – Complex type "GraphicalObjectBase" ................................................................. 30

Figure 19 – Complex type "CommonObjectBase" .................................................................. 31

Figure 20 – Complex type "FbdObjectBase" .......................................................................... 31

Figure 21 – Complex type "LdObjectBase" ............................................................................ 32

Figure 22 – Complex type "SfcObjectBase" ........................................................................... 32

Figure 23 – Complex type "NetworkBase" ............................................................................. 33

Figure 24 – Extension relationship among complex types for textual objects ......................... 34

Figure 25 – Complex type "TextualObjectBase" .................................................................... 35

Figure 26 – Complex type "NamespaceContentBase" ........................................................... 35

Figure 27 – Complex type "TaskBase" .................................................................................. 36

Figure 28 – Complex type "NamespaceDecl" ........................................................................ 36

Figure 29 – Complex type "UserDefinedTypeDecl" ................................................................ 37

Figure 30 – Complex type "ArrayTypeSpec" .......................................................................... 38

Figure 31 – Complex type "DirectlyDerivedTypeSpec" .......................................................... 38

Figure 32 – Complex type "EnumTypeSpec" ......................................................................... 39

Figure 33 – Complex type "EnumTypeWithNamedValueSpec" .............................................. 39

Figure 34 – Complex type "StructTypeSpec" ......................................................................... 40

Figure 35 – Complex type "SubrangeTypeSpec" ................................................................... 40

Figure 36 – Complex type "ReferenceTypeSpec" .................................................................. 40

Figure 37 – Complex type "PouDecl" .................................................................................... 41

---------------------- Page: 11 ----------------------
SIST EN IEC 61131-10:2019
– 6 – IEC 61131-10:2019  IEC 2019

Figure 38 – Complex type "Program" .................................................................................... 42

Figure 39 – Complex type "FunctionBlock" ............................................................................ 43

Figure 40 – Complex type "Class" ......................................................................................... 44

Figure 41 – Complex type "Function" .................................................................................... 45

Figure 42 – Complex type "Interface" .................................................................................... 46

Figure 43 – Complex type "Action" ........................................................................................ 46

Figure 44 – Complex type "NamedTransition" ....................................................................... 47

Figure 45 – Complex type "MethodPrototype" ....................................................................... 48

Figure 46 – Complex type "
...

Questions, Comments and Discussion

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