beautypg.com

A.4 arrays – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 285

background image

AĆ13

A.4

Arrays

Arrays in ladder programs can have only one dimension. An item within an array is

called an element.

This type of array:

Can have a maximum of:

integer and double integer

65,536 elements

Boolean

16,000 elements

The maximum size of a local array or global array when no Common Memory module is

present is limited by the amount of available application memory. If a Common Memory

module is present, a global array is limited by the amount of memory available on the

module.
The first element within the array is always 0. Therefore, if an array had 65,536

elements, they would be numbered 0ć65,535. You define the size of an array by

entering a value in Maximum Array Index located within the Variable Properties tab.
The maximum array index is the number that represents the last element within an array

variable. When you enter a new array variable in an instruction parameter, the maximum

array index is automatically defined as the element number you entered as part of the

variable. Should you need a larger array, change the Maximum Array Index field of the

variable's property sheet. Remember array elements are numbered starting at 0.