beckhoff TS6420 — 8.4 Logging of one PLC variable with FB_DBWrite

Samples To use this example, you need to adjust the server name and the authentication in the XML-configuration data. Furthermore, you need to keep in mind that no "TestDB" database is available before you carry out the SQLQuery.sql Script. Configuration example: With the help of the variable "eWriteMode" you can set with which write-mode it should be logged. With a rising edge at the variable "bSTART" the write operation can be started. Table: ADS_TO_DB_APPEND => eWriteAppend -> "tbl_Append" ADS_TO_DB_UPDATE => eWriteUpdate -> "tbl_Update" ADS_TO_DB_RINGBUFFER => eWriteRingBuffer -> "tbl_RingBuffer" TS6420 110 Version:

1.2 Used database type MS SQL Compatible database type ASCII, MS SQL, MS Compact SQL, MS Access, MySQL, PostgreSQL, DB2, Oracle, InterBase/Firebird Used function blocks FB DBWrite _ Integrated libraries "TcDatabase.lib", "TcSystem.lib","TcBase.lib","TcStandard.lib" Download data list FB DBWrite Sample.pro, CurrentConfigDataBase.xml, _ _ SQLQuery.sql