Exporting and importing a PLC project
TwinCAT offers commands for exporting and importing objects into or out of a file. There are several options here:
- Export to or import from a ZIP file (*.zip)
You can use this format to export and import several files (including non-TwinCAT project files) including the paths. - Export to a project archive (*.zip)
You can use this format to export an entire project (including the libraries used) to a ZIP archive. - 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 TwinCAT. 100% compatibility is therefore not ensured.
The ZIP export or import takes place in the same way as the PLCopenXml export or import described here. |
Exporting a project
- A project is open in TwinCAT.
- 1. Mark the PLC objects or the PLC project that you wish to export.
- 2. In the context menu, select the command Export PLCopenXML...
- 3. In the dialog Export PLCopenXML file, select the memory location or the file name where you wish to save the exported file.
- 4. Confirm with Save.
- The exported file is available to you at the selected memory location.
Importing a project
- A project is open in TwinCAT.
- 1. Mark the PLC project or the folder in the PLC project into which the file is to be imported.
- 2. In the context menu, select the command Import PLCopenXML...
- 3. In the dialog Import PLCopenXML file, select the file that you wish to import.
- A dialog opens and shows the objects in a tree structure that can be inserted at this point.
- 4. Select the objects and click on Open.
- The objects are inserted in the existing project tree.
See also:
- TC3 User Interface documentation: Command Export to ZIP
- TC3 User Interface documentation: Command Import from ZIP
- TC3 User Interface documentation: Command Export PLCopenXML
- TC3 User Interface documentation: Command Import PLCopenXML
- TC3 User Interface documentation: Dialog Options - PLCopenXML
- TC3 User Interface documentation: Dialog Options - ZIP export/import