Target system

The TwinCAT 3 EventLogger can be configured on the target system by means of registry entries.

The following keys are usable below HKEY_LOCAL_MACHINE\SOFTWARE\[WOW6432Node\]Beckhoff\TwinCAT3:

Time stamp

\EventLogger\TimestampSource

DWORD

0 = CurPentiumTime [default]
2 = CurSystemTime

\EventLogger\TimestampBase

DWORD

0 = SystemTime [default]
1 = ExternalTimeHard
2 = ExternalTimeMedium
3 = ExternalTimeSoft
For 1 to 3, refer to the documentation Corrected time stamps.

Maximum size of the message cache

\EventLogger\MaxDatabaseSize

DWORD

20 [default]
in MB

On reaching the limit, half of the messages will be discarded.

Message cache location

\EventLogger\DatabaseDir

(From > TwinCAT 3.1 Build 4024.22)

STRING

:memory: = main memory (messages are deleted with the transition to CONFIG and also reboot etc.)

<path> = file system folder for storing the LoggedEvents.db file

If the key is not present, the database is placed in the boot folder.

Under Windows CE this is used to store the database non-persistently.

Save messages in the Windows Error Log

\EventLogger\WindowsEventLog\TypesSupported

DWORD

0 = None [default]
| 0x1 = Messages

| 0x2 = Alarms

| 0x3 = both

\EventLogger\WindowsEventLog\LogLocaleId

DWORD

1033 [default]
0 = current locale

\EventLogger\WindowsEventLog\MinLogLevel

DWORD

0 = Verbose [default]
1 = Info
2 = Warning
3 = Error

Logging TwinCAT system errors
See also

https://infosys.beckhoff.com/index.php?content=../content/1031/tceventlogger/12332566027.html

HKEY_LOCAL_MACHINE\SOFTWARE\[WOW6432Node\]Beckhoff\TwinCAT3\System[LogMessageType]

DWORD

3 = acceptance of the system errors into the Tc3 Eventlogger

4 = acceptance of the system errors into the Tc3 Eventlogger and the error list of the XAE.

If the keys do not exist, they must be created with the specified type.