Tc2_Database
Overview
The Tc2_Database library contains function blocks for controlling and configuring the TwinCAT 3 database server.
Function blocks
Name |
Description |
---|---|
Retrieves status information. | |
|
|
Adds database connections to the XML configuration file. | |
Adds authentication information for the respective database connection to the XML configuration file. | |
Adds an ODBC database connection to the XML configuration file. | |
Adds an ADS device to the XML configuration file. | |
|
|
Reloads the XML configuration file | |
Reads all database configurations from the XML configuration file. | |
Reads all ADS device configurations from the XML configuration file. | |
|
|
Opens a connection to a database. | |
Closes a connection to a database. | |
|
|
Creates a new database | |
Creates a table with any desired table structure | |
|
|
Reads one value out of the database | |
Writes one variable value, with timestamp, into a database | |
Starts or stops the logging/writing of variables | |
|
|
Reads a data record out of a table | |
Reads a data record out of a table (command length less than 10,000 characters) | |
Reads several records from a table. | |
Creates a new data record. | |
Creates a new data record. (command length less than 10,000 characters) | |
Deletes a record from a table. | |
|
|
Executes a stored procedure. | |
Executes a stored procedure and returns a record. | |
Executes a stored procedure and returns several records. |
Data Types
Name |
---|
Requirements
Development environment |
Target system type |
PLC libraries to be linked |
---|---|---|
TwinCAT v3.0.0 |
PC or CX (x86) |
Tc2_Database |