-

Importing Types from IEC 61131-10 XML

PLCnext Engineer allows you to import IEC 61131-3-compliant program/function/function block POUs, data types, and global variables according to the IEC 61131-10 XML standard into your project.

You can either import POUs or data type worksheets via the context menu of the type folder in the COMPONENTS (for example, 'Data Types' or 'Programs' folder) or via the 'File > Import > Import From IEC 61131-10' command. In the second case, you can select which types you want to import.

Note
IEC 61131-10 XML files created with the 'File > Export > Export To IEC 61131-10' command cannot be imported via context menu.

Further Info
See also the topic "Exporting Types to IEC 61131-10 XML".

When importing an IEC 61131-10 XML file, the following applies:

Import IEC 61131-10 XML file via context menu

Select the 'Import from IEC 61131-10' context menu command from the 'Local | Types' folder (or any subfolder) in the COMPONENTS area, select the XML file to import, and then click the 'Open' button.

If the XML file consists of several types of different kind (e.g., data types, functions, FBs, etc.), the types are imported into the corresponding root folders (i.e., a program is imported into the 'Programs' folder, a function is imported into 'Functions & Function Blocks' folder, and so on).

Import IEC 61131-10 XML via 'File' menu

  1. Choose 'File > Import > Import From IEC 61131-10', select the XML file to import, and then click the 'Open' button.

    The 'Import from IEC 61131-10' dialog is displayed. The dialog displays information on the file version and its origin, date, etc. Verify this information to ensure that the correct file (version) is going to be imported.

  2. Optional: Check the option 'Convert LD/FBD to NOLD'. If checked, FBD/LD code worksheets are imported as NOLD code worksheets (network layout is arranged automatically and cannot be modified). If unchecked, FBD/LD code worksheets are imported unchanged from the original worksheet.
  3. Check the types to import and uncheck the types you want to exclude from the import, and then click 'OK'.

    Note
    Observe the dependencies of POUs when checking/unchecking. If, for example, a POU is imported which calls a function block that is not imported, the missing FB will cause a semantic error.

    The POUs and data type worksheets selected in the dialog are added to the project in the respective COMPONENTS category.
  4. Consult the Project Log in the MESSAGES window for messages about the import process.
  5. Consult the Error List (MESSAGES window) for error messages (for example semantic errors due to missing POUs or invalid types).