Creating a Data Table

 

  1. To create a table, either:
    - Right-click Data Tables in the Solution Explorer and then click Add Table.
    or
    - Select Data Tables in the Solution Explorer, and then click Add New Table

    Add Data Table

  2. Set the Data Table's Properties.

    Data Table Properties

     

If you assign a Float value to a column, you can determine the location of the decimal point via by right-clicking the column and assigning it.


The Data Table Properties determine the type and structure.

Property Name

Definition

Data Table Name

The Data Table Name appears as a Global Data Tag

Data Table Type

These include

  • LIFO (Stack)

  • FIFO (Queue)

  • Data Table: Indexed

Retained

Select this to back up the Data Table values in case of power-off.

Note that you can initialize these values either by:

  • Selecting the Ribbon option PLC> UniStream Management > Initialize

  • Using the Ladder functions Initialize Data Table, provided for each table type

In most cases, Data Tables values should be initialized after power-up.

Rows

Enter the number of table rows

Struct
(column structure)

The columns of the Data Table are defined by the linked Struct.
Click the drop-down to select a:

- UniLogic struct, such as System Error,
or
- struct that you have created for your application.

Note that you do not have to declare the Struct in order to use it.



Be aware that:

A Data Table and the Struct it is linked to cannot have identical names.

If the names are identical, you will not be able to link the struct members to the parameters of Data Table ladder functions.

Related Topics

Data Tables

Entering/Editing Data Table Values

DT: FIFO Queue

DT: LIFO

Data Table: Indexed (DTI)

Data Table Status Messages