A.3 global and local variables (scope) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual
Page 283

AĆ11
Element and bit variable names can each be a maximum of 16 characters (AćZ, 0ć9,
and _), not including the delimiter (. or [ ]). Valid ranges for constants used to reference
bits are 0ć15 for integers and 0ć31 for double integers.
I
MPORTANT
You can force only simple variables. You cannot force elementĆindexed or bitĆindexed
variables. For example, you cannot force variables like: vat.13, array_var[11],
array_var[index_name], array_var[11].12 or array_var[index_name].bit_name.
A.3
Global and Local Variables (Scope)
A property of a variable is its scope. A variable's scope can be either local or global.
A.3.1
Local Variables
Local variables are those that can only be used in the program in which they are
defined. No other programs can reference them. If you type in the first letter of a
variable name using lower case, the default scope will be local. The names of local
variables appear in lower case.