At a Glance
This function is accessible from the project browser.
Depending on the element that you have selected in the directory tree of the project browser, it allows you to export:
either all the program elements of a sequential task (MAST, FAST, AUX),
or a Program Unit of a sequential task (excluding the activation conditions),
or a section of a sequential task (excluding the section activation conditions),
or a section of a Program Unit (excluding the section activation conditions),
or an SR program module of a sequential task,
or Timer or Input/Output event processing.
Options associated with exporting the program
Depending on the program elements you are exporting, you have a choice of 3 options:
export with or without the content of all the DDTs used in the program element,
export with or without the content of all the DFB types used in the program element,
export with or without the content of all the SR program modules called in the program element.
These 3
are selected by default.Files generated
When you export a set of program elements or event processing elements, the software generates a .XPG file which contains the following unprotected information: Program Units, sections, SR program modules, event processing elements, unprotected DFB types used (if the option is activated), DDTs used (if the option is activated).
When you export a Program Unit, the software generates a .XPU file which contains the following unprotected information: sections, SR program modules, event processing elements, unprotected DFB types used (if the option is activated), DDTs used (if the option is activated).
When you export a section or SR program module or an event processing element, the software generates a file according to the programming language used:
.XLD, if the language of the element exported is LD
.XIL, if the language of the element exported is IL
.XST, if the language of the element exported is ST
.XSF, if the language of the element exported is SFC (sections only)
.XBD, if the language of the element exported is FBD
The file contains the unprotected information: program section, module or current event processing, unprotected DFB types used (if the option is activated), DDTs used (if the option is activated), program modules called (if the option is activated).
Exporting a program from the project browser
To export a program from the project browser, perform the following operations:
Step |
Action |
---|---|
1 |
Select the element to be exported. Result: The selected element appears in reverse video. |
2 |
Activate the command from the menu or the contextual menu.Result: A dialog box appears on the screen. |
3 |
Select the destination directory for the export (directory tree) and enter the file name. |
4 |
Select export mode: with or without DDT, DFB types, SR called. Result: when a option is selected, the corresponding box is checked. |
5 |
Activate the Export command. Result: a progress indicator lets you know how the export is proceeding. |
6 |
A message in the output window tells you that export is complete. |