Value Sets Overview

A value set in the Unified Data Manager writes preconfigured values to a group of tags in a single write operation. A client writes one identifier to the value set tag, and the Unified Data Manager writes a different, preconfigured value to each tag in the set. Use value sets to switch a group of tags between known states, such as setpoints for low, medium, and high production, from a single control in a GraphWorX display.

Value Set Structure

A value set has the following parts:

  • Value Set Tags—The tags that the value set writes to. You can give each tag an alias, which becomes the column heading for that tag on the Value Set Values tab and makes long tag names easier to work with.

  • Value Set Values—The rows of values that the value set can write. Each row has a Value, which is the identifier a client writes to select the row, an optional Name that describes the row, and one column for each tag with the value to write to it.

  • Parameters—Optional placeholders that a client fills in when it uses the value set. Parameters can replace part of a tag name or part of a value.

For example, a value set named Production writes to three tags with the aliases Load, Pressure, and Temperature:

Value

Name

Load

Pressure

Temperature

33

Low

20

35

50

66

Medium

55.5

50

55

99

High

79

60

70

When a client writes 66 to the value set tag, the Unified Data Manager writes 55.5 to the Load tag, 50 to the Pressure tag, and 55 to the Temperature tag.

Value Modes

Each cell in a value column has a mode that controls what the value set writes to the tag:

  • Static—The value set writes the value as entered.

  • Tag—The value set reads the tag entered as the value and writes that tag's current value.

  • Unset—The value set does not write to this tag for this row. Use Unset to skip a tag temporarily without removing its configuration.

Each cell also has a data type, such as VTR8 for a double-precision floating-point number or <span class="bold">VTBSTR</span> for a string. For the full list, see Value Set Settings.

Write Results

A value set tag is a read/write tag of the string data type. When a client writes to a value set tag, the result shows whether the value set accepted the write:

  • Good—The written value matches a row, and the value set writes that row's values to the tags. A good result does not confirm that each individual tag write succeeded.

  • Bad—The written value does not match a row, and the value set writes nothing.

Parameters

Parameters let one value set serve several sets of identical tags, such as the same equipment on different floors. A parameter has a name and a type, either Number or String. To use a parameter, enclose its name in double angle brackets, such as <<Floor>>, in a tag name on the Value Set Tags tab or in a value on the Value Set Values tab. In runtime, the value set replaces the placeholder with the value that the client passes.

For example, the tag Building.Floor<<Floor>>.Temperature with the parameter value 2 becomes Building.Floor2.Temperature.

A parameter value can be padded to a fixed width. For example, with left alignment, a padding character of 0, and three places, the value 7 becomes 007.

Give parameters short names that contain only letters and numbers. A parameter name can contain any character, including < and >, which makes placeholders hard to read.

Value Set Tags

Value set tags use the valuesets: prefix followed by the folder path and the value set name. Browse for value sets in the Data Browser under Platform Services > ValueSets.

Tag

Description

valuesets:Production

A value set named Production at the top level.

valuesets:Line1.Production

A value set named Production in the Line1 folder.

valuesets:Line1.

The Line1 folder.

valuesets:Line1.Production("north",2)

The Production value set with two parameter values: the string north and the number 2.

Pass parameter values in parentheses after the value set name, in the order the parameters are listed. Enclose string values in double quotation marks.

The legacy format @vset64:Line1.Production.Value is also supported.

What's Next?

Creating a Value Set