T314-20 Import and Export - RevC
T314-20 Import and Export - RevC
TABLE OF CONTENTS
Chapter 20 - 1
T314-20 Import and Export - RevC
20.1.1 Objectives
On completion of this chapter you will be able to:
• Describe the different backup and restore methods
• Use the import / export tool
20.1.2 Legend
> Indicates when you go from one menu to a sub-menu
Italic Indicates object and file names
“ “ Indicates dialog box buttons, tabs, menus etc.
Bold Indicates important topics
Indicates start/explanation of student activity
Chapter 20 - 2
System 800xA Training
Information Manager is the appropriate tool to archive historical data. There is also a
way to backup basic history data, which is explained later on in this chapter.
Chapter 20 - 3
T314-20 Import and Export - RevC
20.2.4 Import/Export
The Import/Export tool can be used to save 800xA objects and aspects information
one portion at a time. The data is saved as objects and aspects in archive files (.afw)
outside of the running Aspect Directory. This tool can be used to transport
applications between different 800xA Systems. For example:
• Import data from scratch
• Save user defined objects and aspects
• Use the Find Tool in Plant Explorer and export the results
The Import/Export Tool should NEVER be used for the purposes of performing
backups of your system. There are limitations on the number of total objects that the
tool can handle and it is difficult maintain the necessary dependencies between objects
and aspects that are threaded through a system.
The main difference to the backup tool is that individually exported portions of 800xA
information can be imported back into the original system or into a completely
different system while backed up 800xA information can only be used to restore a
complete system.
Chapter 20 - 4
System 800xA Training
20.3.1 Introduction
The Import/Export tool allows objects to be stored and restored with their aspects. The
data is saved in structured afw-files. It is also possible to view the contents of an
archived file.
The Import/Export tool should be used to transport small applications in the form of
object types and/or object instances between configurations.
The Import/Export tool is a good tool for safe keeping of configurations. Use the tool
to backup all project specific objects and aspects in an afw file. If for any reason these
objects become corrupt or lost, then the tool can be used to import them back into the
system again.
Chapter 20 - 5
T314-20 Import and Export - RevC
The Overview view presents the entity and entity extensions in the archive. This view
gives a simplified overview of items such as libraries and control applications. In the
case where the archive does not contain any entities this view is disabled.
Info Area
The view Structured View presents all objects and aspects arranged in structures. The
aspects of the selected object are shown in the aspect list. The optional Info Area at
the bottom shows the dependencies that are required in order to import the objects and
aspects into a system or messages generated during export/import.
Info Area
Chapter 20 - 6
System 800xA Training
After dragging and dropping the “Add Items” dialog appears as shown below in a few
different use cases. The dialog shows a summary of what was dropped and in what
context.
Chapter 20 - 7
T314-20 Import and Export - RevC
Chapter 20 - 8
System 800xA Training
Pressing the “OK” button starts the pre-export. The messages (if any) in the lower part
of the dialog window are categorized in Errors, Warnings and Information.
After clicking the “Done” button (or using the “Close when finished” checkbox) the
main window shows the objects and aspects which are now ready to export finally.
Chapter 20 - 9
T314-20 Import and Export - RevC
Select “File > Save” from the menu to write the data into an archive file (.afw). Check
the messages – if there are any, then press “Done to close the dialog.
Chapter 20 - 10
System 800xA Training
Click “Open” to open and start loading an archive file of type afw:
Click the “Done” button (or use the “Close when finished” checkbox) to close the
dialog.
Chapter 20 - 11
T314-20 Import and Export - RevC
2) Import a single aspect or an object with the related children: Click right on the
item to be imported and select “Import…”
Chapter 20 - 12
System 800xA Training
3) Best praxis for the advanced users: Remove and Import All
A bigger archive like a part of the project can be imported this way into the system.
Select the unwanted objects, aspects, dependencies (hold down the <Ctrl> key and
click left). Click right on selection and use Remove.
Chapter 20 - 13
T314-20 Import and Export - RevC
A dialog window with two folders will appear, showing some summary information.
Several options are given when selecting “Import Options”. “Include Dependencies”
enables the import of object or aspect related dependencies (if they were included at
the export). This option has to be used with caution in order to avoid overwriting
objects or aspects which belongs to system or are newer than the ones in import file.
NOTE! Normally only “Include Children” should be activated.
Click the “Finish” button to continue the started the import.
Click the “Done” button (or use the “Close when finished” checkbox).
Chapter 20 - 14
System 800xA Training
Since Sxx_TempStorage1 is not available in the new system, we want to place them on
a different object Sxx_TempStorage2 when doing the import.
1. Open the afw file with two Graphic Display aspects and select “Import…”
Chapter 20 - 15
T314-20 Import and Export - RevC
Chapter 20 - 16
System 800xA Training
Chapter 20 - 17
T314-20 Import and Export - RevC
The end result is like a copy (new GUI was created). In case of a graphic display, it
needs to be deployed.
Chapter 20 - 18
System 800xA Training
Chapter 20 - 19
T314-20 Import and Export - RevC
20.3.9 Dependencies
The Import/Export tool is dependency aware and dependencies can be shown using
the “Dependencies” button. For example, if your Control Structure contains a user-
defined custom object type and you export the instance, the object type will be
exported automatically as well (unless this feature has been turned off).
During an import, the imported file might be dependent on a specific version of the
System, a System Extension or a Library. In this case, it is necessary to resolve the
dependencies by installing them - before continuing the import.
Chapter 20 - 20
System 800xA Training
Another example may be if an aspect already exists in the system, and the same aspect
has been marked for an import. In this case it needs to be resolved with a decision to
replace the aspect, skip the import for that and then continue with the rest of the
import.
Chapter 20 - 21
T314-20 Import and Export - RevC
Chapter 20 - 22