Value Sets

A Value Set allows you to write pre-configured sets of values into a group of data tags. The Value Sets tree control in the Unified Data Manager enables you to configure sets of values for data tags. Features of Value Sets include:

Each group of tags is represented by a Value Set data tag. ValueSet data tags are organized in a tree structure of folders and Value Set items. Any write to a ValueSet data tag distributes written values to all data tags included in the Value Set; all included data tags will have the same value as the Value Set data tag. ValueSet data tags are organized in a tree structure of folders and Value Set items. Once you have configured Value Sets, they can be accessed from many applications via the appropriate tab in the Unified Data Browser.

Creating a Value Set

To create a new value set:

  1. In the Unified Data Manager, right-click the Value Sets node and select Value Set from the menu.

  2. Enter a unique name In the Name field.

  3. Enter a description in the Description field (optional).

Value Set Properties

  1. Enter any parameters desired assigning them a name, type (number or string), padding alignment (none, left or right), the characters used to pad with (e.g. 0's), and the number of places that the parameter will be padded up to (optional). Parameters are explained in the section below.

  2. Go to the Value Set Tags tab (shown in the figure below) to assign a tag to a value set. A Value Set data tag can contain an unlimited number of data tags. Specify one or more tags that will be included in the Value Set data tag.

ValueSet Tags Tab

      1. Right-click on a tag in the Data Browser and click Enter Up. The tag gets added to the Point Name box.

      2. Continue to add tags. The Point Name box will accumulate the tags you add to it.

      3. Click OK to close the Data Browser and return to the Group Tags tab. All of the accumulated tags will appear on the tab.

Using the Enter Up Option for Adding Multiple Tags

  1. Back in the Value Set Tags tab, you can provide an Alias for each tag. The alias is really just a label for the tag, and is used as the tag's heading in the Value Set Values tab where you will be assigning values for the tag. It serves as a usability feature. If you don't provide an alias, the value in the Tag Name column will be used as the tag's heading in the Value Set Values tab.

  2. Also for each tag, define whether the tag is an array of values, limit the low value, and set the length of the value returned (optional).

  3. Go to the Value Set Values tab to associate a data tag with each Value Set value in the list you create. Note the columns on this tab (as shown below). There is a Value column, and then a Name column. Then there is one additional column for each value set tag. In the example below, these columns are labeled using the tag name; however, if you provided aliases on the Value Set Tags tab, the aliases appear as the column headings instead of the tag names.

ValueSet Values Tab

  1. On the Value Set Values tab, enter the values that are part of the value set that are part of each tag, which is represented by the columns in the grid.

    1. Enter the first Value. By default, the value is used as the Name, too, but you can change the name if you like.

    2. For each value line, specify the corresponding value to be assigned to each data tag.

  2. Click the Apply button to enforce your settings.

Parameters

Parameters are client-driven, and they do not change the number of requested data tags in runtime. Parameters can replace parts of data tag names by values passed in the Value Set data tag name. Each parameter can be an integer or a string data type with optional formatting. Click the Add button to select add a parameter to the list. Once the parameter tag is added to the list, you can click the Remove button to delete the parameter from the list, or you can click the Move Up and Move Down buttons to change the order of the  parameter in the list.

 

Each data tag may support parameters that could modify names of the data tags. Each parameter can be integer or string data type with optional formatting. The table below shows possible formatting for each supported data type. The client application passes configured parameter values as a part of the full data tag name. Parameters are client driven, and they do not change the number of requested data tags in runtime. Parameters can be integer or string values. These values are then formatted using pre configured format data, and then they replace specific parts of a data tag name by values passed in the data tag name. Parameters are delimited with specific characters (e.g. ICONICS .Simulator.1\SimulatePLC\Ramp<<Parameter1>>) in the data tag name.

 

Examples for Working with Values Sets

Below are examples for working with value sets.

Configuring a new Value Set

  1. In the tree-control in the left-hand pane, right-click on Value Sets and select Value Set.
  2. Enter Recipes in the Name field.

Adding a new Value Set

  1. Under the ValueSet Tags tab, you add your tags and their aliases. These will be the tags that will be written to depending on the value sent entered by a client.

NOTE: You do not have to use aliases, but as you will see in the next step, they will help you identify the tags under when on the ValueSet Values tab.

 

Example ValueSet Tags configuration

  1. Select the Value Set Values tab, you define the values that will be written to the tags at the time you select a specific Value of the Value Set item.
  2. Each Column represents one tag. The Value column represents a unique identifier that will be used from your client to define which Value Set to use. The Name column is used as another form of identifying each Value Set. Notice the last four columns in the example shown below match the aliases defined in step 3.

Example ValueSet Values configuration

 

Using the Value Set

  1. Launch GraphWorX64 by going to Start > Programs > ICONICS > GENESIS64 > GraphWorX64 > GraphWorX64.
  2. Place a Process Point on the display, one for each of the ValueSet Tags you configured in the last section.
  3. Insert a Data Entry dynamic and open the Data Browser.
  4. Under OPC Servers > My Server > Value Sets and select the Recipes Value Set we just created.

Selecting a Value Set

  1. Go into Runtime, and write a corresponding value to the Value Set to one that was defined under the Value column in the last section. The other Process Points should update on the display with the configured values.

See also:

Unified Data Manager