Step-by-step introduction to configuring the Beckhoff TwinCAT Database Server with the XML Configuration File Editor and from PLC Control.
Beckhoff TwinCAT Database Server can be configured with the XML Configuration File Editor or from PLC Control. This document gives a step-by-step introduction to adding a database, AdsDevice, and Symbolgroup, then testing the configuration.
It also describes communication directions, AutoStart, saving the configuration under C:\TwinCAT\Boot, and PLC function blocks for creating a Microsoft SQL Compact database and writing variables with a ring buffer.
| ASCII database DBType | ASCII |
|---|---|
| DBValueType options | Double or Bytes |
| Communication directions | ADS_to_DB_APPEND, ADS_to_DB_UPDATE, ADS_to_DB_RINGBUFFER, DB_to_ADS |
| Ring buffer count | 100 |
| AutoStart | Starts connections after TwinCAT start when used without PLC |
Set the AutoStart option so it immediately starts creating connections after a TwinCAT start.
Build the PLC project to generate the tpy file.
It limits the count or age of datasets in database tables.
In the Editor under C:\TwinCAT\Boot.