Iconics Suite - Hyper Historian - single logging data to HH using bit register data trigger [BridgeWorX]

Iconics Suite - Hyper Historian - single logging data to HH using bit register data trigger [BridgeWorX]

This article show how to do single logging data with couple of tags with the same timestamp to Hyper Historian using bit register as data trigger with BridgeWorX transaction

Sample description

In this sample we have 2 machines with 3 tags each one.

Every machine have it's own trigger (bit register in their PLC) which activate the logging transaction of it's own three tags.

Trigger configuration

Configure Data Triggers for every machine. IMPORTANT - keep _1 numeration the same as for the machine e.g. machineName_1 -> triggerName_1

Hyper Historian tag configuration

Tags should be switched off from periodic (Is Collected -> off) logging cause we would like to use trigger logging.

BridgeWorX local variable configuration

Create local variable with additional column MachineNumber (string).

BridgeWorX template configuration

Create new template which will be used for logging to Hyper Historian.
Template should have 3 actions : Real Time Output, Real Time Input, Historical Upload

Real Time Output configuration

In this activity we will read the machine number retrive from the trigger name and put it in BridgeWorX local variable.

Point Name -> bwx:local@MachineNumber.Row[0].Col[1]
Row[0] cause we have only one pair of values in row 0.
Col[1] cause we would like to put data in MachineName column with index 1.

Expression -> substring({{triggerVariable:SourceName}}, indexof({{triggerVariable:SourceName}}, "_")+1, len({{triggerVariable:SourceName}})-indexof({{triggerVariable:SourceName}}, "_"))
In this expression we are looking for machine number which should be located right after "_" (low dash) character. Then we put this machine number into the local variable

Real Time Input

In this activity block is preparing the DataSet of points which values we would like to log in Hyper Historian. We are using the local variable to create dynamic address of tag.

Historical Upload

Please notice that we have to change HDA Tag Point Name to PointName instead of default TagName.

BridgeWorX transaction configuration

Create transaction. It can have the same name as template. Enable transaction and select template to run with this transaction.

Configure triggers to run this transaction.

Our sample have 2 machines that's why we have 2 triggers respectively for every machine.
If we have more machines just create more triggers with keeping name syntax.
    • Related Articles

    • Iconics Suite - Universal sample Display to present Hyper Historian data

      This article contains sample GraphWorX Display which can be used with any Iconics project that use Hyper Historian. This sample let you display Hyper Historian data for any actual Hyper Historian tag in your project. Sample display view Sample ...
    • Iconics Suite - Control separate bits from 16bit register using AssetWorX [Iconics syntax]

      This article show how to control separate bits from 16bit register from separate tags Create tag with data source connected to 16 bit register Using Workbench create first tag in your asset connected to e.g. D register Create tag for bit0 that will ...
    • Iconics Suite - Expressions syntax [Iconics Syntax]

      This articles contains a lot of practical examples of expression syntaxes Strings Enclosed in " " - "Lorem ipsum dolor sit amet" - " as normal character only when string enclosed with $" "$ - $"Text with " " inside"$ Combining text and numbers with ...
    • Iconics Suite - Where to find

      This article list all the basic sources that help You to get familiar with the functionality of Iconics Suite Iconics Suite have the vast of materials on the web that can be directly accessed by the customer without contacting with any ...
    • Iconics Suite - Filtering data with Database DataSource parameter

      This article shows you how to use Data Entry control and Database DataSource parameter to filter data in Table Control In attached files you can find GraphWorX64 display with sample solution. To make it work you have to use Iconics project package - ...