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.
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 command from the 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 field. |
4 |
Select the option to benefit from various options in reassigning elements. |
5 |
Activate the 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. |