PLC API 7 PLC API Overview The TcDatabase.lib library contains function blocks for controlling and configuring the TwinCAT database server. Funktionsblцcke TS6420 58 Version:
1.2 Name Description FB GetStateTcDatabase [} 59] _ Call state information FB DBConnectionAdd [} 61] _ Adds database connections to the XML configuration file FB DBAuthentificationAdd [} 81] _ Adds authentication information for database connections to the XML configuration file FB DBOdbcConnectionAdd [} 62] _ Adds ODBC database connections to the XML configuration file FB AdsDeviceConnectionAdd [} 64] _ Adds Ads-device connections to the XML configuration file FB DBReloadConfig [} 60] _ Reloads the XML configuration file FB GetDBXMLConfig [} 65] _ Read all databaseconfiguration out of the XML- configuration file.
FB GetAdsDevXMLConfig [} 66] _ Read all Ads-deviceconfiguration out of the XML- configuration file.
FB DBConnectionOpen [} 66] _ Open a connection to a database FB DBConnectionClose [} 67] _ Close a connection to a database FB DBCreate [} 68] _ Creates a new database FB DBTableCreate [} 69] _ Creates a table with any desired table structure FB DBRead [} 71] _ Reads one value out of the database FB DBWrite [} 72] _ Writes one variable value, with timestamp, into a database FB DBCyclicRdWrt [} 70] _ Starts or stops the logging/writing of variables FB DBRecordSelect [} 83] _ Reads a data record out of a table FB DBRecordSelect EX [} 85] _ _ Reads a data record out of a table (commandlength FB DBRecordArraySelect [} 76] _ Reads some data records out of a table FB DBRecordInsert [} 82] _ Creates a new data record FB DBRecordInsert EX [} 75] _ _ Creates a new data record (commandlength FB DBRecordDelete [} 74] _ Deletes a data record from a table FB DBStoredProcedure [} 78] _ Execute Stored Procedures.
FB DBStoredProcedureRecordReturn [} 86] _ Execute Stored Procedures and return a data record. FB DBStoredProcedureRecordArray [} 79] _ Execute Stored Procedures and return a count of data records.