CODESYS provides commands for exporting and importing objects from and to a file. There are two ways to do this:
-
Export to and import from a CODESYS XML file (*.export)
This format is fully compatible with the CODESYS project format. The objects are stored in a machine-parsable XML format.
-
Export to and import from an XML file in PLCopen format (*.xml)
You can use this format for exchanging information between programs, for example program editors or documentation tool. PLCopen XML defined a subset of elements which CODESYS recognizes. Therefore, 100% compatibility cannot be guaranteed.
Requirement: A project is open in CODESYS.
-
Click or .
-
Select the export objects in the Export dialog or Export PLCopenXML dialog.
-
Click OK.
-
Specify the file name and location. Click Save.
Requirement: A project is open in CODESYS.
-
Click or .
-
Select the import objects in the Import dialog or Import PLCopenXML dialog.
A dialog opens and displays a tree structure of objects that can be inserted at this location.
-
Select the object in the tree structure below which the objects can be imported.
-
Select the objects and click OK.
The objects are added to the existing object tree.
For more information, see: PLCopenXML