Historicize data

After the TwinCAT Analytics Storage Provider has been installed, the service running in the background can be configured. You will find the TwinCAT Analytics.StorageProvider.Configurator application in the folder C:\TwinCAT\Functions\TF3520-Analytics-StorageProvider\Tools.

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.

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 Manager in your development environment.

Historicize data 2:

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 3:

Toolbar Manager window ("OVERVIEW")

Historicize data 4:

1

Add new broker

2

Remove selected broker

3

Refresh display

4

Collapse all nodes

5

View switch between dark/light mode

Function Manager window ("OVERVIEW")

First assign a "RecorderAlias". This helps to group the started recordings and to find its self started ones again.

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 5:

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

"Storage" status

Historicize data 6:

1

Storage Online

2

Storage Offline

3

Storage starts

4

Storage starts with error. Still trying to start it

5

Storage is shut down

6

Storage is in the error state

Toolbar Manager window ("CONFIGURATIONS")

Historicize data 7:

1

Create a new pipeline

2

Create a new pipeline with Rule Engine

3

Open Target Browser for connecting simple pipelines

4

Edit a selected pipeline

5

Delete a selected pipeline

6

Start a selected pipeline

Function Manager window ("CONFIGURATIONS")

The window is divided into two tabs. Pipelines and Live Status. Under Pipelines you will find the configurations of your pipelines. You can define new pipelines from here. Edit existing. Delete or start.

Historicize data 8:

To create a new simple pipeline, click the "Create new pipeline" button. The following dialog opens.

Historicize data 9:

You can now drag and drop the symbols you want to record from the Target Browser into the dialog. You also assign a Recording Alias and a Record Name.

Various placeholders are available for the Record Name:

"{AutoID}"

 

"{Topic}"

 

"{SystemID}"

 

"{Layout}"

 

"{CycleTime}"

 

"{SampleSize}"

 

"{RecordStart}"

 

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 according to storage space or time.

The entries are confirmed with OK and a new local recording definition is created.

It is now possible to start this definition directly via the toolbar or the context menu. Historicize data 10:

However, it is also possible to make the definition globally accessible. This can be done via the context menu with the entry "Publish Recording".

The following dialog then opens:

Historicize data 11:

Here you can now select the desired Analytics Storage Provider via which the definition is to be published. In addition, the definition is assigned a Storage and a Data Broker of the selected Analytics Storage Provider. After the selection, the recording definition is confirmed with OK and published to the selected Analytics Storage Provider. This means that it can be found by any Storage Provider Manager that is connected to the MQTT Broker.

After starting a pipeline, the view automatically jumps to the second tab, the Live Status.

Historicize data 12:

All active recordings from all users are listed here. The recordings can be ended in this tab and it is also possible to jump to the resulting record.

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 13: