ASCII-File

Information on configuring ASCII files as databases. The file is generated automatically by the TwinCAT Database Server. A Create Database procedure is not required. The created file can be imported and processed in other spreadsheet programs such as Microsoft Excel.

Declaration in the TwinCAT Database Server Configurator

ASCII file as database

Database Type

Select "ASCII" from the drop-down menu.

ASCII File

Enter the path for the ASCII file. The file is generated automatically by the TwinCAT Database Server.

Value separator

Here you can specify the separator for the values, i.e. for the columns. Default: ";"

Old ASCII DB format

For compatibility reasons you can optionally switch to the old ASCII format used by the TwinCAT Database Server 3.0.x versions. Use the default table structure.

DBValue Type

Only active if Old ASCII DB format is enabled. You can select BYTES or DOUBLE. With DOUBLE the values are in plain text, with BYTES they form a byte stream.

ASCII-File 1:

Functions that are not supported

Automatic ID generation is not supported by this database. If the standard table structure is used in Configure mode, the value of the ID is not set.

ASCII-File 2:

Data type support

WSTRING is not supported by this database. (See WString support)

ASCII-File 3:

Windows CE support

This database is also supported by the Windows CE version of the TwinCAT Database Server. The connection can be established locally.

Notice

Data security

In flash memory devices the number of write access operations is limited. The flash memory devices can fail, with a risk of data loss.

  • Make regular backups of your system. Use the IPC diagnostics in order to determine the status of the flash memory devices.