At a Glance

This function is accessible from the function view of the project browser.

It allows you to export all the elements from the functional module selected:

  • functional module properties (name, comment),

  • Program Units and/or sections (with the variables used, program code, activation condition),

  • event processing,

  • functional sub-modules (nested functional modules),

  • operator screens,

  • animation tables.

Options associated with exporting a functional module

As with the program export procedure, you have the choice of 3 options:

  • export with or without definition of all the DDTs used in the functional module,

  • export with or without definition of all the DFB types used in the functional module,

  • export with or without the content of all the SR program modules called in the program element.

The 3 "export with" options are selected by default.

Files generated

When you generate a functional module, the software generates a .XFM file. This contains all the unprotected information such as the sections, event processing, DFB types used (if the option has been activated), DDTs used (if the option has been activated) and the SR program modules called (if the option has been activated). It also contains the references of the operator screen images.

How to export a functional module

To export a functional module, perform the following operations from the function view of the project browser:

Step

Action

1

Select the functional module to be exported.

Result: the functional module selected appears in reverse video.

2

Activate the Export command from the File 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 called.

Result: when a "with" 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.