Structure type instance

Creating a Structure type instance:

Step

Action

1

Select the Variables tab in the data editor.

2

Double-click on the empty cell Name (marked with an arrow) and enter the name of the instance. Enter a comment (optional).

3

Double-click on the corresponding Type field and click on
.

The following window appears.

4

In the libraries/families area select the following:

  • the <Application> directory for an existing type in the application.

  • the <Libset> directory for an already archived type.

5

Enable the DDT checkbox, which will display the derived data types.

6

Select the desired structure type in the Name column and confirm with OK.

7

Fill out the Value column to initialize the elements of the structure. To carry out this task, click on + to show the structure.

Example:

NOTE: The comments will be transferred to the selected structure type, but they may be changed for the applicable instance.

Instance of a non-typical array.

What is a non-typical array?

NOTE: My_Tab1 and My_Tab2 are two identical instances. The difference is that the type of the My_Tab1 instance was previously defined (the name of the Type is Tab) while the type of the My_Tab2 instance was defined during instancing.

Creating an instance for a non-typical array:

Step

Action

1

Select the Variables tab in the data editor.

2

Double-click on the empty cell Name (marked with an arrow) and enter the name of the instance. Enter a comment (optional).

3

Double-click on the corresponding Type field and click on
.

The following window appears.

4

Enable the Array check box and

  • fill in the field with the size of the array (example 1..6),

  • In the libraries/families area select the types that should be displayed:

    • the <EDT> directory for an elementary type,

    • the <Application> directory for an existing derived type in the application,

    • the <Libset> directory for a derived type archived in a library.

  • Select the type for the elements of the array in the Name column (Example: STRING for an EDT).

Example:

Confirm with OK.

5

Fill out the Value column to initialize the elements of the array as needed. To carry out this task, click on + to show the elements.

Example:

NOTE: Enter comments for the sub-elements of this instance of a non-typical array.

Type Array instance

Creating an Array type instance:

Step

Action

1

Select the Variables tab in the data editor.

2

Double-click on the empty cell Name (marked with an arrow) and enter the name of the instance. Enter a comment (optional).

3

Double-click on the corresponding Type field and click on
.

The following window appears.

4

In the libraries/families area select the following:

  • the <Applications> directory for a type already in the application,

  • the <Libset> directory for a derived type archived in a library.

5

Enable the DDT checkbox, which will display the derived data types.

6

Select the desired array type in the Name column and confirm with OK.

7

Fill out the Value column to initialize the elements of the array as needed. To carry out this task, click on + to show the elements.

Example:

NOTE: Comments cannot be entered for the sub elements of this instance of an array.
NOTE: If you resize an array variable type, you will lose the comments and the initial values of the elements of the array.