Rockwell Automation Publication 1756-PM004D-EN-P - September 2012
37
Organizing Tags
Chapter
2
EXAMPLE
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
0
1
2
3
4
5
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.
Summary of Contents for 1756-L65 ControlLogix 5565
Page 4: ...2 Rockwell Automation Publication 1756 PM004D EN P September 2012 Summary of Changes Notes...
Page 8: ...6 Rockwell Automation Publication 1756 PM004D EN P September 2012 Preface Notes...
Page 66: ...64 Rockwell Automation Publication 1756 PM004D EN P September 2012 Chapter 3 Force I O Notes...
Page 88: ...86 Rockwell Automation Publication 1756 PM004D EN P September 2012 Index...
Page 89: ......