Defining Modules

You can structure your program with modules. Modules are structured units to package together related objects.

You can create any kinds of logic elements inside modules: constants, types, functions, blocks, libraries and modules.


Before you begin:
  • The workbench used to edit the logic should be opened.
  1. To add a new module, select an element of the logic tree and do one of the following:

    • Select New Module in the Module Management toolbar.
    • Select Insert .. > Module in the contextual menu of the selected element.

    The Position dialog box is displayed.



  2. Select Before and click OK.

    The Module Properties dialog box is displayed.

  3. If needed, change the name and add a comment. Click OK.



  4. To modify the name or the comment of the module, do one of the following:

    • Double-click it.
    • select [Module Name] object > Definition in the contextual menu.

    Tip: The path of a logic element defined inside a module is <module name>@<element name>.

  5. You can now add any logic elements in the new module. For instance, you can insert sub-modules as explained in the previous steps.