Basic settings
To configure the TwinCAT Analytics Logger the user is provided with a dedicated Analytics configuration inside of a XAE project.

To add a data logger choose the respective item in the context menu of this configuration node.

This may either result in the additional Data Logger node alone or subordinate stream nodes in case there already are variables that can be logged.

By double clicking the new Data Logger node the editor window will be open. In the Parameter tab you can make your specific Analytics Logger settings.

- Data Format: Here the user can choose between IOT_FORMAT_FILE and IOT_FORMAT_BINARY. By using the FILE format the Analytics Logger stores the data in local binary files. The files will be stored in C:\TwinCAT\3.1\Boot\Analytics. By using MQTT_BINARY the data will send to the configured MQTT Message Broker.
- Data Compression: Data compression can be switched on and off here.
- Max. Compression Compare Width: Sets the compression mode.
- MQTT Host Name: Provide here the host name or IP address of your native MQTT Message Broker.
- MQTT Tcp Port: Set the Tcp port for the communication here. Default MQTT port: 1883
- MQTT Main Topic: It is possible to provide an own and individual main topic. Sample: Beckhoff/Verl/Production/Drives/Machine5 – the Analytics Logger will add automatically his own specific subtopics: Beckhoff/Verl/Production/Drives/Machine5/Bin/Tx/Data
- MQTT Client ID: The client identifier is an identifier of each MQTT client connecting to a native MQTT Message Broker. It should be unique per Broker.
- MQTT User Name: MQTT allows to send a username for authenticating the client.
- MQTT Password: MQTT also allows to send a password for authenticating the client and authorization.
It is possible to have multiple Logger in one TwinCAT project to communicate data to different MQTT Message Broker or to have partly a storage in a local binary file.
Further Information