beckhoff TS6420 — 8.5 Sample with FB_DBRecordInsert/FB_DBRecordSelect

Samples To use this example, you need to declare the access database "Sample7.mdb" in the XML-configuration data. By generating a positive edge at the variable "bStartstopInsert ", a data set with four PLC values and the timestamp will be attached in the database. The following table structure will be written: Variable declaration (* Declaration *)PROGRAM MAIN VAR eState: E_SQLStatement; NT_GetTime1: NT_GetTime; bTimestart: BOOL; tTime: TIMESTRUCT; FB_FormatStringDateTime: FB_FormatString; sDateTimeString: T_MaxString; TestValue1: REAL := 123.456; TS6420 113 Version:

1.2 Used database type MS Access Compatible database types MS SQL, MS Compact SQL, MS Access, MySQL, PostgreSQL, DB2, Oracle, InterBase/Firebird Used function blocks FB DBRecordInsert, FB DBRecordSelect _ _ Integrated libraries "TcDatabase.lib", "TcSystem.lib","TcBase.lib","TcStandard.lib","TcUtilities.lib" Download data list FB DBRecodInsertSelectSample.pro, CurrentConfigDataBase.xml, _ TestDB Access.mdb _ Column name Data type Timestamp datetime PLC TestValue1 _ float PLC TestValue2 _ float PLC TestValue3 _ float PLC TestValue4 _ String