Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 274

Advertising
background image

AĆ2

Variables also have these properties:

D Variables store data according to the data type they are defined as. The

Editor assigns a default data type to variables you enter and provides a

way for you to change the type, so you need not enter the variable type

indicators @, %, and !. For more information, see section A.1.

D Variables have a scope, either global or local. The case of the first letter

of the variable name indicates the scope of the variable. A variable name

beginning with an upperĆcase letter is interpreted by the Editor as a

global variable, while a variable name beginning with a lowerĆcase letter

is interpreted by the Editor as a local variable. For more information, see

section A.3.
You cannot have two variables of different data types or scopes with the same

name.
To configure global variables, you must define them in the Variable Configurator.

D Variables must have a name and can have a description.

An additional characteristic of simple and array variables is the option for you to access

(index into) the data within these variables down to the bit level. For example, within a

simple integer variable you can access each bit with a variable or with a constant. For

more information, see section A.2.

Advertising