Structures Grid

The
Structures
grid of the
Dictionary
enables managing the structures for a project. Tasks to perform from the
Structures
grid are:
Task
Procedure
Create a structure
  1. From the
    Application View
    , access the Dictionary instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Structures
    tab.
  3. In an empty row of the
    Structures
    grid, define the required properties for the structure, and then press
    Enter
    .
    TIP: Structures are only tested to three levels.
Delete a structure
  1. From the
    Application View
    , access the
    Dictionary
    instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Structures
    tab.
  3. In the
    Structures
    grid, right-click the structure to remove, and then click
    Delete
    .
Edit an existing structure
  1. From the
    Application View
    , access the Dictionary instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Structures
    tab.
  3. In the
    Structures
    grid, make the required changes, and then press
    Enter
    .
    TIP:
    • Changing the data type of a structure member may prevent expanding variables to display structure members. Close and then reopen the project to expand variables.
    • Changing the data type of a structure member may cause build errors. Initial values are not reset. Change the data type of the variable and then change the data type back to the original data type.
Sort structures in the grid
  1. From the
    Application View
    , access the Dictionary instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Structures
    tab.
  3. In the
    Structures
    grid, select the required column header.
  4. An arrow showing the current order is displayed on the column header.
  5. Toggle the column header to switch between ascending and descending order.
Filter structures in the grid
Filter structures in
Structures
grid. When filtering, create a view displaying only the structures containing specified characters.
The filter row is the top row of the grid. Filter structures by typing alphabetical and numerical characters in the cells of the filter row. You can also select from the drop-down combo box. Matching structures are automatically displayed.
  1. From the
    Application View
    , access the Dictionary instance for the data types of the project.
  2. From the
    Data Types
    instance, click the
    Structures
    tab.
  3. In the filter row of the
    Structures
    grid, click the required cell, then do one of these:
    • Type the characters to use in the filtering operation
    • Select the required structure from the drop-down combo box
Properties for structures are:
Property
Description
Possible Values
Name
Name of the structure
Limited to 128 characters beginning with a letter or single underscore followed by letters, digits, and single underscores. The last character for a structure name must be a letter or digit; structure names cannot end with an underscore character. Reserved words, defined words, or data types such as, elementary, structures, or arrays, are not valid names. The same type of elements within a scope must have unique names.
Data Type
Type of the structure
BOOL, SINT, USINT, BYTE, INT, UINT, WORD, DINT, UDINT, DWORD, LINT, ULINT, LWORD, REAL, LREAL, TIME, DATE, STRING, User arrays, Structures
Comment
Comment for the structure
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