CODESYS offers commands for the export and import of objects to and from a file. Two possibilities are available to you here:
-
Export to or import from a CODESYS XML file (*.export)
This format is completely compatible with the CODESYS project format. The objects are saved in a machine-readable XML format.
-
Export to or import from an XML file in the PLCopen format (*.xml)
You can use this format to exchange information with other programs (for example program editors or documentation tools). PLCopen XML defines a subset of the elements known in CODESYS. 100% compatibility is thus not guaranteed.
Exporting projects
Requirement: A project is open in CODESYS.
-
Select the command “Project Export…” or “Project Export PLCopenXML”
-
Select the objects that you wish to export in the dialog box “Export” or “Export PLCopenXML”.
-
Click on “OK”.
-
Enter the file name and the location and click on “Save”.
Importing projects
Requirement: A project is open in CODESYS.
-
Select the command “Project Import…” or “Project Import PLCopenXML”.
-
In the dialog box “Import” or “Import PLCopenXML”, select the export file that you wish to import.
A dialog box opens and displays the objects in a tree structure, which can be inserted at this point.
-
Select the object in the object tree, under which the objects to be imported are to be inserted.
-
Select the objects and click “OK”.
The objects are added to the existing object tree.