Samples ADS_to_DB_UPDATE: This option updates the available entries in the database. ADS_to_DB_RINGBUFFER: With this write mode you can limit the count or the age of datasets at databasetables. DB_to_ADS: This communication direction describes the reading of values from the database into the PLC. If the Database Server should be used without the PLC (only logging from PLC variables), the option AutoStart must be set. So the Database Server immediately starts creating the connections to the declared database and ADS-devices after a TwinCAT start. Therefore you have to create a Bootproject from PLCVariableSample.pro. Finally you have to save your DB configuration in the Editor under C:
\TwinCAT\Boot. 4. Configuration test Go to PLC Control and start the PLC, after that create a Bootproject and make a TwinCAT restart. Look for the test database “TestDB” under C:\TwinCAT\TcDatabaseSrv\Samples. This was a small introduction for the Beckhoff Database Server. Have fun with it. Questions? Then write me an email! For professionals follows a small instruction for the configuration of the Database Server from the PLC. 5. DataBaseServer Configuration from the PLC Task: Create a Microsoft Compact SQL database from the PLC Control, add a database connection and insert a new table in your database.
Finally use the write function block with the ring buffer mode “RingBuffer_Count” to write 100 times a variable into the table of your database. TS6420 100 Version: 1.2