Programmable controllers – Part 10: PLC open XML exchange format
Introduction: The International Standard IEC 61131 describes programmable logic controllers (PLCs). IEC 61131-3 defines programming languages. Users want standardized programming languages and the ability to exchange a complete program or parts of that program between different development environments, i.e. from an exporting environment to an importing environment. IEC 61131-3 defines program organization units (POUs). But an entire program also consists of user-defined data types, global and external declarations and other elements besides the POUs. In this document, the term "IEC 61131-3 project" is used. It contains all above- mentioned language elements, required for an exchange, in order to get a consistent program in the importing environment. The exchange of POUs developed in one of the textual languages, i.e. instruction list (IL) and structured text (ST) or the textual representation of sequential function charts (SFC) is possible, because a syntax description of these languages is part of the IEC 61131-3 standard. The objective of this document is to extend the reuse of programmed solutions both for textual languages and graphical languages, i.e. function block diagram (FBD) and ladder diagram (LD) or the graphical representation of SFCs. Furthermore, the completeness of exchange between the different environments depends on the supported features that are listed in the compliance list defined in IEC 61131-3. This document defines a solution independent eXtensible Markup Languag
Scope: 1.1 General This part of IEC 61131 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. Figure 1 provides an example overview of the usage of the XML exchange format. Different tools may produce and consume XML based IEC 61131-3 information. IEC Figure 1 – Main overview of XML exchange format usage (example) – 12 – IEC 61131-10:2019 IEC 2019 The usage of the XML exchange format should provide more than a simple export/import from one development environment to another. All relevant information should be exported. This may include coordinate information for graphical tools. The importing tool should be able to filter which parts of this information need to be imported into its destination environment. Vendor-specific information and attributes may be included in the export file and selectively imported, if applicable. The vendor-specific information shall not influence the logic part of the program. Filtering should be done on the import – thus vendors shall ensure that their extensions of the XML schema are done in such a way that neglecting the information during import does not affect the functionality of the IEC 61131-3 project. Vendor specific attributes and information may be added by vendor specific XML schema – besides the XML exchange format defined in this document. The described
Contents:
- FOREWORD
- INTRODUCTION
- Scope