Historicize data

After the TwinCAT Analytics Storage Provider has been installed, the service running in the background can be configured. For this purpose you can find the TcAnalyticsStorageProvider_Config application in the C:\TwinCAT\Functions\TF3520-Analytics-StorageProvider\WinService folder.

Historicize data 1:

The main part of the topic can be defined in the configuration as well as the comment, which is used for identification if more than one Storage Provider is registered with the message broker.

Historicize data 2:

You can make the message broker settings and decide on a storage type:

At last you can save the configuration and start the service. The next step is to configure the specific recording. For this you should select the Storage Provider Recorder in your development environment.

Historicize data 3:

With the Storage Provider Recorder recording definitions can be created, started and managed. In addition, it is possible to manage the data memories of individual Analytics Storage Providers. All important properties of the found Analytics Storage Providers and historized data are clearly displayed.

Historicize data 4:

Toolbar

Historicize data 5:

1

Add new broker

2

Remove selected broker

3

Display filters (All / Show my active recordings)

4

Select display type (Alias / Topics)

5

Show / Hide Offline Analytics Storage Provider

6

"RecorderAlias" - grouping name of recordings

7

Remove messages from error list

Recorder window setup

First assign a "RecorderAlias". This helps to group the started recordings and to find its self started ones again. The filter can also be used to display recordings started by others.

After that, one or more brokers can be set up. This is done via the already known input mask for MQTT connection properties.

Historicize data 6:

Once a connection to the broker could be established, all Analytics Storage Providers connected to it will be listed.

Create recording definition

To configure the recording, select your target in the Target Browser. Click Live Data and select one or more variables by multiple selection and drag and drop them to the Local Recording Definitions node in the Recorder window.

Historicize data 7:

In the recorder you can add the selected variables or the complete source process image of the variables.

Historicize data 8:

You can also configure recording names and a duration (otherwise the recording will run endlessly until it is stopped manually). A ring buffer can be set by storage or time.

Start recording

There are three different ways to start a recording.

  1. Via the context menu at a local recording definition node. Here you can select the desired Analytics Storage Provider, which should record the data. Only the storage providers that have access to the selected topic are displayed. Historicize data 9:
  2. From the context menu on the Analytics Storage Provider node. The desired recording definition can be selected here. Only the definitions that can also be processed by the Analytics Storage Provider are displayed. Historicize data 10:
  3. Drag and drop the local recording definition node. The desired recording definition can be started on the desired Analytics Storage Provider via drag-and-drop. If the Storage Provider is unable to execute the recording definition, an error message is displayed in the error list.Historicize data 11:

Use historized data

After and also during recording, you can select the historical data as input for your analysis in Target Browser. In the Target Browser, you will find a new control on the right side for the historical data. There you can select the timespan for your data.

Historicize data 12: