Rockwell Automation Publication 1756-PM004D-EN-P - September 2012 37
Organizing Tags Chapter 2
Two-dimension array
ATTENTION: A drill machine can drill one…five holes in a book. The machine requires a value for the position of each hole from the
leading edge of the book. To organize the values into configurations, a two-dimension array is used. The first subscript indicates the
hole that the value corresponds and the second subscript indications how many holes will be drilled (one…five).
In the Tags window, the elements are in the order depicted below.
Subscript of Second Dimension Description
012345
Subscript of
First
Dimension
0
1 1.5 2.5 1.25 1.25 1.25 Position of first hole from leading edge of book
2 8.0 5.5 3.5 3.5 Position of second hole from leading edge of book
3 9.75 7.5 5.5 Position of third hole from leading edge of book
4 9.75 7.5 Position of fourth hole from leading edge of book
5 9.75 Position of fifth hole from leading edge of book
42367
The rightmost dimension increments to its
maximum value then starts over.
This array contains a
two-dimensional grid of
elements,
six elements x six elements.
When the rightmost dimension starts over, the
dimension to the left increments by one.