beautypg.com

Configure an array – Rockwell Automation Logix5000 Controllers I/O and Tag Data Programming Manual User Manual

Page 37

background image

Organize tags

Chapter 2

Configure an array

To create an array, you create a tag and assign dimensions to the data type.

1. In the Controller Organizer, right-click Controller Tags and then click

Edit Tags.

2. In the Tag Editor, from the Scope box, choose a scope for the tag using the

following table as a guide.

If You Use The Tag

Then Choose

In more than one program within the project

The controller name

As a producer or consumer

In any of the seven AXIS data types
In a message
In only one program within the project

Program that uses the tag

This also limits the tag display to only tags with the same scope.

3. In the Name box, type a name for the tag.

4. In the Data Type box, enter the data type the array dimensions. In the

following table, Data_type represents the actual data type you enter.

If the tag is

Then type

Where

One-dimension array

Data_type[x]

Data_type is the type of data that the tag stores.
• X is the number of elements in the first dimension.
• Y is the number of elements in the second

dimension.

• Z is the number of elements in the third dimension.

Two-dimension array

Data_type[x,y]

Three-dimension array

Data_type[x,y,z]

You can also click the Browse button and then in the Select Data Type
dialog box, choose a data type and the array dimensions for the array.

Rock well Automati on Publication 1756- PM004E -EN-P - October 2014

37