Instance of an Unlocated Variable

Creating the instance of an unlocated variable:

Step

Action

1

Select the Variables tab in the data editor.

2

Double-click the empty cell Name (marked with an arrow) and enter the name of the instance.

3

Double-click the Type cell and enter the type of the instance.

4

Enter a comment if necessary.

Example:

Instance of a Referenced Variable

Creating an instance of a Referenced variable:

Step

Action

1

Select the Variables tab in the data editor.

2

Double-click the empty cell Name (marked with an arrow) and enter the name of the instance.

3

Double-click the Type cell and enter REF_TO and the type referenced for this instance.

4

Enter the initial value of the variable instance.

Example:

Initial Value of a Reference Type Variable

To set an initial value to a variable of reference type

Step

Action

1

In the Variables tab of the Data Editor, select the reference type variable to be initialized.

2

Double-click Value.

3

Enter REF(VarName), where VarName is the variable referenced by the Instance of the Referenced Variable.

Example:

Instance of a Located Variable

Creating an instance of a located variable:

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.

3

Double-click on the Type cell and enter the type of the instance.

4

Double-click on the Address cell and enter the storage address for the controller.

5

Enter a comment if necessary.

NOTE: Several different instances can be assigned to one address (multiple assignment).

Example:

Instance with Direct Addressing

Creating an instance with direct addressing

Step

Action

1

Double-click on the empty Address cell and enter the storage address for the controller.

2

Enter a comment if necessary.

Example: