Skip to main content

User Guide

Captures the value of a tag at a specific event

Sometimes a specific duration of events is of interest and it is necessary to display the duration of a specific event as a new tag in the focus diagram.

Here are 4 ways to display the duration of an event as a new tag.

Create a Tag Builder Formula tag that shows the values (profile) if the event of interest (e.g. a phase) occurs in a discrete/ string tag. 

Formula:

if(a="PHASE2", VALUE, 0) 

Variable mapping:

  • a = discrete/ string tag (no shift);

  • VALUE = analog tag (no shift)

In the example the resulting tag shows the temperature profile during phase 2 in a batch process.

A1_Captures_the_value_of_a_tag_at_a_specific_event.png

Create a Tag Builder Formula that shows the value if the event of interest (e.g. a transition) occurs.

Formula:

if(and(now = "PHASE2", before = "PHASE1"), VALUE, 0)

Variable mapping:

  • now = discrete/ string tag (no shift) 

  • before = discrete/ string tag (shift: 1s) 

  • VALUE = analog tag (no shift) 

In the example the resulting tag shows the start temperature of phase 2 in a batch process. The if-function condition is true, if the data shows a transition from PHASE1 (now) to PHASE2 (before).

B1_Captures_the_value_of_a_tag_at_a_specific_event.png

Create a Tag Builder Formula that shows the values (profile) if the event of interest (e.g. a phase) occurs in an analog tag. 

Formula:

if(and(LEVEL>10, LEVEL<30), VALUE, 0)

Variable mapping:

  • LEVEL = analog level tag (no shift);

  • VALUE = analog tag (no shift)

In the example the resulting tag shows the temperature profile during phase 2 in a batch process.

C1_Captures_the_value_of_a_tag_at_a_specific_event.png

Create a Tag Builder Formula that shows the value if the event of interest (e.g. a transition) occurs. 

Formula:

if(and(LEVEL_now>10, LEVEL_before<10), VALUE, 0)

Variable mapping:

  • LEVEL_now = analog level tag (no shift);

  • LEVEL_before = analog level tag (shift: 1min)

  • VALUE = analog tag (no shift)

In the example the resulting tag shows the start temperature of phase 2 in a batch process. The if-function condition is true, if the data shows a transition from PHASE1 (now) to PHASE2 (before).

D1_Captures_the_value_of_a_tag_at_a_specific_event.png