beckhoff TS6420 — 6.5.1 Declaration of the different database types

Configuration Mode 2 (StartUp = "Manual") The XML-configuration file loads automatically, when the TcDatabaseSrv.exe starts. Because of the value "Manual" at the tag StartUp, no further function will be executed. After this the Database Server is waiting for commands from the PLC. "FB_DBCyclicRdWrt" All sections of the configuration file are needed for this function block. Create the connection to the databases and the ADS-devices which are declared in the XML-configuration file and the cyclic logging with all symbol groups will be started. All other function blocks only needs the declared databases and ADS-devices of the configuration file. The symbol groups will be ignored.

You can see that at the following function block. "FB_DBWrite" A connection to the selected database (hDBID) and the selected ADS-device (hAdsID) will be created. After this the variable which is indicated at the function block will be read out from the ADS-device and logged into the database. 6.5 Databases 6.5.1 Declaration of the different database types TS6420 35 Version: 1.2 Mircosoft SQL Database [} 38] -DBValueType: If you only log alphanumeric data types and Boolean choose "Double". If you want to log structs and strings too, you must select "Bytes". -DBType: You must choose "MS SQL". →PLC: eDBType Sequal Server. _ _ -DBServer: Insert here the Name of the sql-server. e.g.

("TESTSERVER\SQLEXPRESS") -DBProvider: "SQLOLEDB" or Provider of the SQL Native Clients e.g., "SQLNCLI10". -DBName DBName contains the name of the database. -DBTable: DBTable contains the name of the table. Mircosoft Compact SQL Database [} 40] -DBValueType: If you only log alphanumeric data types and Boolean choose "Double". If you want to log structs and strings too, you must select "Bytes". -DBType: You must choose "MS Compact SQL". →PLC: eDBType Mobile Server. _ _ -DBServer: This option won't be needed. -DBProvider: This option won't be needed. -DBUrl DBUrl contains the path to the SDF-File. e.g. ("C: \TwinCAT\TcDatabaseSrv\Samples\TestDB.sdf") -DBTable:

DBTable contains the name of the table. Microsoft Access Database [} 39] -DBValueType: If you only log alphanumeric data types and Boolean choose "Double". If you want to log structs and strings too, you must select "Bytes". -DBType: You must choose "MS Access". →PLC: eDBType Access. _ -DBServer: This option won't be needed. -DBProvider: For Access 2000 - Access 2003: The provider is "Microsoft.Jet.OLEDB.4.0". For Access 2007: The provider is "Microsoft.ACE.OLEDB.12.0". -DBUrl DBUrl contains the path to the MDB-File. E.g.("C: \TwinCAT\TcDatabaseSrv\Samples\TestDB.mdb") -DBTable: DBTable contains the name of the table.