At a Glance

This function is accessible from the Project Browser. According to the element you selected in the project browser tree, you can use it to import:

  • Either all of the program elements (Program Units, sections and program modules) of a sequential task (MAST, FAST, AUX). The program elements are created in the same order as they were when memorized during export.

  • One or all of the Program Units of a sequential task. These Program Units are imported after the program element that already exist in the list.

    If you need to perform any reassignments, a wizard is available (except for protected Program Units which cannot be modified).

  • One or all of the sections of a Program Unit. These sections are imported after the sections that already exist in the list of the Program Unit.

    If you need to perform any reassignments, a wizard is available (except for protected sections which cannot be modified).

  • One or all of the sections of a sequential task. These sections are imported after the sections that already exist in the list.

    If you need to perform any reassignments, a wizard is available (except for protected sections which cannot be modified).

  • One or all of the program modules of a sequential task. These modules are imported after the modules that already exist in the list.

  • One or all of the Timer or Input/Output event processing operations. These processing operations are imported after the event processing operations that already exist in the list.

If one of the previous elements already exists in the current project, the software asks you to choose between the following options:

  • keep the component of the current project,

  • replace the project component by the one from the import file,

  • rename the imported element.

NOTE: When importing a program element, if you wish to keep an element which has the same name in the project (program), then you need to rename the imported element (the name of an element is unique in a project).
NOTE: If the DDT, DFB types, and SR known as associated were exported (options selected during export), they are imported with the program element.
NOTE: After importing the Program Unit, section or program module, validate them.

How to Import a Program Element

Perform the following operations to import a program element:

Step

Action

1

In the project browser, select the folder into which you wish to import your program element (Program Units, sections, SR or events).

Result: this folder appears in reverse video.

2

Activate the Import command from the File menu or from the contextual menu.

Result: a dialog box appears on the screen:

3

Choose the source folder for the import (directory tree) then select the file to be imported (XPG, XLD, XIL, XST, and so on).

Result: the name of the file then appears in the File name field.

4

Select the With wizard... option to benefit from various options in reassigning elements.

5

Activate the Import command.

Result: a progress indicator shows how the import is progressing.

6

A message tells you when the import is complete.

If errors occur during the import, they are indicated by a message in the display window.