Configuration
To configure the server for a connection to the EventLogger, you have to create a new configuration file named "TcUaEventLogConfig.xml" in the server directory. This file contains a list of TwinCAT EventLogger devices, which are identified by their AMS NetID. The configuration has the following structure:
<TcUaEventLogConfig>
<EventLoggerDevice Name="LocalEventLogger" AmsAddr="127.0.0.1.1.1"/>
<EventLoggerDevice Name="RemoteEventLogger" AmsAddr="192.168.0.56.1.1"/>
</TcUaEventLogConfig>
The individual device entries are then displayed in the "EventLoggerDevices" folder in the server's namespace.
An OPC UA client can now subscribe to the corresponding object in order to receive events and/or alarms from the respective TwinCAT EventLogger device.
In contrast to an event, an alarm is additionally displayed as a child element by the respective EventLogger device.