Data Tables
Data Tables reside on an SD card that may be installed in a UniStream panel.
Data Tables enable you to:
-
Organize and manipulate data via Ladder functions
-
Create data logs
-
Create and implement Recipes
-
Import values from Excel
-
Allow users to enter/edit data into Data Tables via the panel, either by including Data Table widgets in your HMI application or via UniApps.
When you create a Data Table, you define its structure via the Properties Window. UniLogic generates a Struct for each table. Each table type has different Struct members.
You can populate a Data Table with values either manually or by importing them from Excel. Note that values are not retained until they are written to the SD Card.
Data Table types include:
DT: FIFO (Queue)
DT: LIFO (Stack)
Data Table: Indexed (DTI)
Data Table Status Messages
You can display them on the HMI screen via the Data Table Widget, an enables you to display WE: Web Data Table
Related Topics
Creating a Data Table
Entering/Editing Data Table Values
Data Sampling
HE: Data Table Widget
WE: Web Data Table
Data Table information and error messages are written to System Data Tags, which are located in System Operands: Data Tables.
Note that the tags are updated after any Data Table function runs.
Data Table System Operand Struct
|
Data Table, Current Function Status (status codes are in the following table)
|
Store Data Table to External File: Success Counter
|
Store Data Table to External File: Failure Counter
|
Load Data Table File to External File: Success Counter
|
Load Data Table to External File: Failure Counter
|
Data Table, Current Function Status codes
|
|
-13
|
Function Failed
|
-12
|
Reserved
|
-11
|
File does not exist/ SD card not present or not formatted
|
-10
|
External File cannot be loaded to PLC Data Table
|
-9
|
PLC Data Table cannot be stored to external file
|
-8
|
Format mismatch: the structure of the Data Table and the external file do not match
|
-7
|
The number of lines to load/store has not been specified within the function
|
-6
|
The file name parameter is empty within the function
|
-5
|
The number of lines specified in the function exceeds the number of lines that are in the Data Table
|
-4
|
The file name exceeds 64 characters
|
-3
|
Reserved
|
-2
|
Previous Data Table function is in progress
|
-1
|
One of the function parameters is in error
|