GE Industrial Solutions 6KCV300WPD User Manual

Page 41

Advertising
background image

The storage class defines where the variable is declared and visible. The following values are available:

external variables are declared in the external program and can be used in the generated program. They
get the attribute extem in the generated program.
global variables are declared in the generated program and can be used by the external program. They get
no attribute in the generated program.

static variables are declared in the generated program and

be accessed by the external program.

They get the attribute static.
local variables are declared in the generated program, but within the blocks that use these variables (not in
the global scope as compared to static variables).

All changes to the variables are saved by pressing OK. They are stored in the project file. To change the
initial settings the file

must be edited.

6.3

The Logicals Dialog

While variable names are included into the generated program and are used by external programs, the logicals

are used within Win+Drive to connect ports to these variables. The connection is done by the port dialog that

is described in paragraph 5.4.1. Within this dialog a logical can be selected if the connection type is set to

variable.
The logicals available and their mapping to variables is edited by the

Logicals

item from the

Edit

menu.

Choosing this item will open the Logical Variable Editor dialog.

Figure 6.3.1: Logical Variable Editor Dialog

Within this dialog a list is used for all logicals available. The different columns display the attributes of each
logical. At the bottom of the dialog there are some lists that can be used to change a value of a column of the
selected logical. The columns are used for these attributes:

the Nbr is a used for numbering
Logical shows the name of the logical,

Variable shows the name of the corresponding variable the logical is mapped to. This can be an array.
this case an index must be entered or the Fixed field can be set to “No”. Toggling between “Yes” and
“No” is done by double-clicking the Fixed field.

the data type and storage type of the variable are shown. For variables that are not read-only these at-
tributes can be changed within this list.

Advertising