Beckhoff TwinCAT Database Server Step-by-Step Introduction

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 Step-by-Step Introduction - cover page
Brand
Beckhoff
Category
Other software
Document type
User Manual
Language
English
Pages
12
File format
PDF
File size
549 KB
Published
13 November, 2026
Updated
13 November, 2026
MD5 checksum
10FD294667CA8E2F6BED1C86EE8A6BC8

About this manual

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.

What's inside

  • Foreword
  • DataBaseServer Configuration with XML Editor
  • Configuration test
  • DataBaseServer Configuration from the PLC
  • FB_DBCreate
  • FB_DBConnectionAdd
  • FB_DBTableCreate
  • FB_DBWrite

Specifications

ASCII database DBTypeASCII
DBValueType optionsDouble or Bytes
Communication directionsADS_to_DB_APPEND, ADS_to_DB_UPDATE, ADS_to_DB_RINGBUFFER, DB_to_ADS
Ring buffer count100
AutoStartStarts connections after TwinCAT start when used without PLC

Frequently asked questions

How can the Database Server start automatically without a PLC?

Set the AutoStart option so it immediately starts creating connections after a TwinCAT start.

What must be done before configuring a Symbolgroup?

Build the PLC project to generate the tpy file.

What does ADS_to_DB_RINGBUFFER do?

It limits the count or age of datasets in database tables.

Where is the DB configuration saved?

In the Editor under C:\TwinCAT\Boot.

Download PDF (549 KB)

More Beckhoff Manuals


View all Beckhoff manuals →