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 |
|
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: |
-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 |
LF: Read Row from DTI to Struct
LF: Insert Row to DTI - Asynchronous
LF: Copy Array to Column in DTI
LF: Copy DTI Column into Array
LF: Load DTI File to PLC Data Table (SD)
If you are connected to the Internet, you can access this UniLogic tutorial:
UniStream: Using Indexed Data Tables