Arrays Grid

Use the
Arrays
grid of the
Dictionary
to manage the arrays for a project.
Perform these tasks from the Arrays grid:
Task
Procedure
Create an array
  1. From the
    Application View
    , access the
    Dictionary
    instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Arrays
    tab.
  3. In an empty row of the
    Arrays
    grid, define the required properties for the array, and then press
    Enter
    .
Edit an existing array
  1. From the
    Application View
    , access the
    Dictionary
    instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Arrays
    tab.
  3. In the Arrays grid, make the required changes.
Delete an array
  1. From the
    Application View
    , access the
    Dictionary
    instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Arrays
    tab.
  3. In the
    Arrays
    grid, right-click the array to remove, and then click
    Delete
    .
Sort arrays in the grid
  1. From the
    Application View
    , expand the project, controller, and lib nodes, then double-click the
    Data Types
    item.
  2. From the
    Data Types
    instance, click the
    Arrays
    tab.
  3. In the
    Arrays
    grid, select the required column header.
  4. An arrow showing the current order is displays on the column header.
  5. Toggle the column header to switch between ascending and descending order.
Filter arrays in the grid
Filter arrays display on the
Arrays
tab of
Data Types
instance. When filtering, create a view displaying only the arrays containing specified characters.
The filter row is the top row of the grid. Filter arrays by typing alphabetical and numerical characters in the cells of the filter row. Also select from the drop-down combo box. Matching arrays automatically display.
  1. From the
    Application View
    , access the Dictionary instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Arrays
    tab.
  3. In the filter row of the
    Arrays
    grid, click the required cell, and then do one of these:
    • Type the characters to use in the filtering operation
    • Select the required array from the drop-down combo box
Properties for arrays are:
Property
Description
Possible Values
Name
Name of the array
Limited to 128 characters beginning with a letter or single underscore followed by letters, digits, and single underscores. The last character for an array name must be a letter or digit; array names cannot end with an underscore character. Reserved words, defined words, or data types such as, elementary, structures, or arrays are not valid names. Use unique names for the same type of elements within a scope.
Data Type
Type of the array
BOOL, SINT, USINT, BYTE, INT, UINT, WORD, DINT, UDINT, DWORD, LINT, ULINT, LWORD, REAL, LREAL, TIME, DATE, STRING, User arrays, Structures
Dimension
The dimension of the array
Example: [1..10] for a one dimensional array, [1..4,1..7], for a two dimensional array. The dimension is defined as a positive double integer (DINT) value.
TIP:
Dimension
does not apply to function block instances. Avoid setting
Dimension
for function block instances to help prevent unexpected build results.
Comment
Comment for the array
Plain text
String Size
If Data Type is STRING, represents the length
String capacity is limited to 255 characters excluding the terminating null character (0), a byte for the current length of the string, and a byte for the maximum length of the string
Customize the
Dictionary
environment by arranging the columns to display.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal