Additional registry keys

Here you will find an overview of registry keys with which you can statically influence the behavior of the TwinCAT 3 XML Server. Therefore, switching during runtime is not possible; the setting is unique and can only be used after a reboot.

The keys are listed in a table and are all to be created in the following directory:

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Beckhoff\TwinCAT3 Functions\TF6421 XML Server]

Name Reg Key

Type

Default value (Dec)

Description

Priority

DWORD

1

Windows priority of the process (1 (normal), 2 (high), or 3 (real-time)) -
Only has an effect if the priority differs from the default priority of the running process.

NumWorkerThreads

DWORD

10

Specifies the number of worker threads.

AdsBlockSize

DWORD

262,144

Block size in bytes in which the current data is read from the PLC.

XmlIdentSize

DWORD

0

Number of tabs/spaces per xml level.

XmlUseSpaces

DWORD

0

If 1, spaces are used as tabs.

LogLevel

DWORD

1

Specifies the log level: 1, 2 or 3. All types of messages are recorded at level 3.

LogMaxFileSize

DWORD

10,000

Specifies the maximum log file size in bytes.

LogWriteThrough

DWORD

0

If !=0, the internal caching is bypassed and an attempt is made to write directly to the storage medium. 0=off.

XmlTrimStrings

DWORD

0

If !=0, spaces to the left and right of STRING/WSTRING are removed when reading.