Examples of Unsolicited Triggers

Example1: Using One Trigger Tag in a Formula

The following is an example of an event-based calculation with one trigger tag:

Result=CurrentValue("Tag2") + CurrentValue("Tag3")

You can configure Tag1, which is not in the formula, to be the calculation trigger for this example. Tag2 and Tag3 are not trigger tags. Trigger tags do not have to reside in the formula. There is no relation between formula tags and trigger tags. However, if you are planning to use recovery mode, you want all formula tags to be triggers.

Example 2: Using Multiple Trigger Tags in a Formula

The following is an example of an event-based calculation with multiple trigger tags:

Result=CurrentValue("Tag1") + CurrentValue("Tag2")

Configure Tag1 and Tag2 to be the calculation triggers for this example.

Example 3: Creating a Controlled Sequence of Unsolicited Tags Using Trigger Tags

A controlled sequence is a calculation that is based on the result of another calculation. The following is an example of how to create a controlled sequence of unsolicited tags using trigger tags. In this example, you create a calculation tag that is based on the result of another calculation tag.

For CalcTag1, the calculation is as follows:

Result = CurrentValue("TagA") + CurrentValue("TagB")

TagA and TagB are the calculation triggers for CalcTag1:

For CalcTag2, the calculation is as follows:

Result = CurrentValue("CalcTag1") * CurrentValue("TagC")

CalcTag1 is the calculation trigger for CalcTag2.