Configuration By setting a 1 at this key the allowing of DBNull values can be enabled. If NULL values occur and this key is not set, an error is returned to the respective function block. ->[HKEY_LOCAL_MACHINE\SOFTWARE\Beckhoff\TwinCAT Database Server\Configuration] "MaxByteArrayLength" Contains the maximum length of a byte array returned from the database to the PLC. ->[HKEY_LOCAL_MACHINE\SOFTWARE\Beckhoff\TwinCAT Database Server\Configuration] "MaxStringLength" Contains the maximum length of a string returned from the database to the PLC. This function is supported from version 1.0.20. 6.6.3 XML configuration file The TwinCAT DataBase Server is configured via an XML configuration file.
The settings of the configuration file are read once when the TwinCAT Database Server is started. Reading of the configuration can also be triggered from the PLC via a function block during TwinCAT DataBase Server runtime. The configuration contains several sections: DataBases: Configuration of all "databases" including SQL database, ASCII file, ... AdsDevices: Configuration of all ADS devices (e.g. PLC runtime systems) SymbolGroups: Grouping of different "symbols" (e.g. PLC variables) associated with an ADS device into a logical group. A logical group can be configured for transporting data: ◦from a database to an ADS system, ◦from an ADS device to a database.
1 C:\TwinCAT\TcDatabaseSrv Manual tZuYPxhe+G5NKHWLYSZE+NiFAINdlcBgtIUVD+j076ID3geO7FdGzvdfPl0Q09Zb2CKpwj= PwdInfos> 1 C:\TwinCAT\TcDatabaseSrv\Samples\TestDB_CompactSQL.sdf myTable 1 10.1.128.49.1.1 801 2000 1 ADS_to_DB_RINGBUFFER 20 30000 1 1 TS6420 55 Version: 1.2