Data Table: Indexed (DTI)

Any row in a Data Table: Indexed (DTI) can be accessed via its index number. This enables you to read, write, insert, and remove rows. You can also load a DTI file from an external source, as well as store a DTI to an externally located file.

Use the DTI struct to monitor the function status.

Number of Rows

This is defined in the Data Table Properties

Data Table Indexed Struct

Status

Refer to table below.

 

Code

Error Message

0

OK

1

Insertion in progress.

-3

Request Size Mismatch, Load/Store DTI to/from Array. This occurs when:
- an array is not long enough to contain the DTI data
or
- the request exceeds the number of rows in the DTI, as for example if the table contains 10 rows, and the function requests row # 20

-4

Function in Progress. This means that data is being loaded/stored, in functions involve load/store from/to an SD file.

Relevant for all Data Tables

-5

Insertion queue is full

-38

Array locked by other function

 

DTI Functions

LF: Find Values in DTI Row

LF: Write Row to DTI

LF: Read Row from DTI to Struct

LF: Insert Row to DTI

LF: Insert Row to DTI - Asynchronous

LF: Remove Row from DTI

LF: Clear DTI Row

LF: Find Value in DTI Column

LF: Copy Array to Column in DTI

LF: Copy DTI Column into Array

LF: Write value to DTI Column

LF: Load DTI File to PLC Data Table (SD)

LF: Store DTI to File (SD)

LF: Clear DTI

 

If you are connected to the Internet, you can access this UniLogic tutorial:

UniStream: Using Indexed Data Tables

 

Related Topics

Data Tables

Creating a Data Table

Entering/Editing Data Table Values

Data Table Status Messages