Target system

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

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

Timestamp

\EventLogger\TimestampSource

DWORD

0 = CurPentiumTime
2 = CurSystemTime [default]

The CurPentiumTime provides a precise timestamp for each individual event. This is only required if time intervals are important within a task. The computing time required may increase significantly depending on the number of tasks.

\EventLogger\TimestampBase

DWORD

0 = SystemTime [default]
1 = ExternalTimeHard
2 = ExternalTimeMedium
3 = ExternalTimeSoft
For items 1 through 3, refer to the documentation on corrected timestamps.

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 when transitioning to CONFIG and also during reboot, etc.)

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

If the key is not present, the database is stored in the Boot folder.

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

Save Messages to the operating system error log
Window:
Windows Event Log
(for compatibility reasons, the key \EventLogger\WindowsEventLog\* is also valid here)

TwinCAT/BSD: SysLog

Beckhoff RT Linux®: JournalD or SysLog (see Key BackendSwitch)

\EventLogger\OsEventLog\TypesSupported

DWORD

0 = None [default]
| 0x1 = Messages

| 0x2 = Alarms

| 0x3 = both

\EventLogger\OsEventLog\BackendSwitch (Beckhoff RT Linux® only)

DWORD

0 = Auto (JournalD, if available)

| 0x1 = JournalD

| 0x2 = SysLog

\EventLogger\OsEventLog\LogLocaleId

DWORD

1033 [default]
0 = current locale

\EventLogger\OsEventLog\MinLogLevel

DWORD

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

Logging TwinCAT system errors
See also

https://infosys.beckhoff.com/content/1033/tceventlogger/12332566027.html

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

DWORD

 

3 = transfer of system errors in the Tc3 event logger

4 = transfer of system errors in the Tc3 event logger and the XAE error list.