Configuration ◦"Manual" => TwinCAT Database Server is active and waiting for function calls from the PLC, with the aid of function blocks from TcDatabase.lib. ◦"AutoStart" => TwinCAT Database Server is active and starts logging of the set symbol groups as soon as the TwinCAT system is in "RUN" mode. PLC programs from which variable values are to be logged must run as boot projects! ErrorLog option: enable the error log mechanism. Any errors that occur are logged to a text file. The logged errors can then be used for error analysis. Additionally, the storage path of this text file can be specified. Impersonate option:
the Impersonate option must be set for network access to file-based databases such as Access databases or SQL Compact databases so that the TwinCAT Database Server can connect to this network drive. For further information see Impersonate [ } 53] . This feature is currently not supported in Windows CE. Database Configuration Dialog All the information required for database communication can be entered in this dialog. Only fields for the necessary entries are enabled. The DBValueType indicates the data type of the "Value" column. PLC structures and strings cannot be logged if the data type is "double". Structures and strings can be logged if the data type is "bytes".
You can choose if the database communication needs an authentication or not. If you want to add authentication information, the fields DBSystemDB , DBUserId and DBPassword will be enable. The field DBSystemDB is needed for Access databases only. In this field you must write the path of the MDW-file. In this file all information like usernames and passwords are saved. DBUserId is the username and DBPassword is the necessary password. configuration of all database types: database-configuration [ } 35] TS6420 17 Version: 1.2