Introduction

The variables under the scope of a Program Unit can be accessed from the structural view in the Program Unit data editor. It has features which support the following:

  • Creating and declaring variables of different natures,

    • Parameters (Inputs, Outputs, and Inputs/Outputs)

    • Public, which can be accessible also from an other Program Unit

    • External, for global variables used in the Program Unit

    • Private, only accessible in scope of the Program Unit

  • Assigning variables to Program Unit parameters (via effective parameter attribute),

  • Searching/sorting/filtering variables.

  • Managing of instances of data belonging to the family of function blocks (EFB/DFB).

Accessing the Program Unit Data Editor

Structural view of a project:

Carry out the following steps:

Step

Action

1

Click the left mouse button on the selected Interface & Variables directory, or place the cursor on this directory with the arrow keys.

2

Select (right-click or Shift+F10 combination) the Open command from the shortcut menu.

or

Double click on the Interface & Variables .

or

Select Edit > Open.

Result: The Program Unit data editor opens. The Variables tab is shown by default.

Program Unit Data Editor: