Overview

The TwinCAT Database Server enables data exchange between the TwinCAT system and various database systems. For small applications it can be used via a configurator, without intervention in the existing program code. For complex tasks the Database Server offers a large library of PLC function blocks for maximum flexibility. SQL commands such as Insert or Select can be used directly from the PLC, for example. To take load off the PLC, if required, procedures can be stored (Stored Procedures) and then called up from the databases. In this case the parameters transferred by the corresponding PLC function block are used by the database in conjunction with the Stored Procedure, and results can be returned to the controller.

The TwinCAT Database Server supports a wide range or different database systems, MS SQL, MS SQL Compact, MS Access, MySQL, PostgreSQL, DB2, Oracle, Interbase, Firebird, ASCII (e.g. .txt or .csv) and XML files, now also including NoSQL databases, based on support of MongoDB. (See also: Declaration of the different database types)

Components

Principle of operation

Within the TwinCAT system the Database Server communicates via ADS. Externally it links to the respective configured database. Possible network topologies can be found in section "Areas of application and network technologies".

Overview 1: