Rockwell Automation Publication 1756-PM004D-EN-P - September 2012 51
Organizing Tags Chapter 2
Assign an Indirect Address
If you want an instruction to access different elements in an array, use a tag in the
subscript of the array (an indirect address). By changing the value of the tag, you
change the element of the array that your logic references.
The following table outlines some common uses for an indirect address.
When index equals 1, array[index] points here.
array[0] 4500
array[1] 6000
array[2] 3000
array[3] 2500
When index equals 2, array[index] points here.
To Use a tag in the subscript and
Select a recipe from an array of recipes Enter the number of the recipe in the tag.
Load a specific machine setup from an array of possible
setups
Enter the desired setup in the tag.
Load parameters or states from an array, one element at a
time
A. Perform the required action on the first element.
B. Use an ADD instruction to increment the tag value
and point to the next element in the array.
Log error codes
Perform several actions on an array element and then
index to the next element